﻿.overlay {
     visibility: hidden;
     position: absolute;
     left: 0px;
     top: 0px;
     width:100%;
     height:100%;
     text-align:center;
     vertical-align:center;
     z-index: 1000;
}

.overlay .outer 
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.overlay .inner {
    margin: 100px auto;
    background-color: #fff;
    border:1px solid #000;
    padding:15px;
    text-align:left;
    display: block;
    border-radius: 7px;
    background: #eee;
    background: -moz-linear-gradient(#fff, #ddd);
    background: -webkit-linear-gradient(#fff, #ddd);
    background: -o-linear-gradient(#fff, #ddd);
    text-shadow: 0 1px 0 #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
    width: 500px;
    max-width:100%;
    position: relative;
}

.overlay .inner a.Close 
{
    display: block;
    text-align: center;
    background-color: #000;
    color: White;
    border-radius: 12px;
    background: -moz-linear-gradient(#333, #000);
    background: -webkit-linear-gradient(#333, #000);
    background: -o-linear-gradient(#333, #000);
    text-shadow: 0 1px 0 #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
    text-align: center;
    margin-top: 10px;
    margin-left: 45%;
    margin-right: 45%;
    font-weight: bold;
    text-decoration: none;
    position: absolute;
    width:25px;
    height:20px;
    top: -20px;
    left: 270px;
    padding-top: 5px;
    border: solid #333 2px;
    vertical-align: middle;
}

/* Open modal */
a.openModal {
/* margin: 1em auto; */
display: block;
width: 300px;
max-width:100%;
background: #ccc;
text-align: center;
padding: 3px;
border-radius: 7px;
background: #fff;
background: -moz-linear-gradient(#fff, #ddd);
background: -webkit-linear-gradient(#fff, #ddd);
background: -o-linear-gradient(#fff, #ddd);
text-shadow: 0 1px 0 #fff;
border: 1px solid rgba(0,0,0,0.1);
box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

a.openModal:hover,
a.openModal:focus {
background: -moz-linear-gradient(#fff, #ccc);
background: -webkit-linear-gradient(#fff, #ccc);
background: -o-linear-gradient(#fff, #ccc);
}
