/* general */
div#modal-window h1,
div#modal-window h2,
div#modal-window h4,
div#modal-window h5,
div#modal-window h6 { text-align: center; margin-bottom: 5px; }

/* overlay */
div#overlay {
    position: absolute;
    background: #000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: alpha(opacity=50);
    opacity: .5;
    z-index: 500;
    cursor: pointer;
}

div#overlay.hide { display: none; }

/* modal window */
div#modal-window {
    font-family: Helvetica, Arial, sans-serif;
    position: absolute;
    top: -2px;
    left: 50%;
    z-index: 1000;
    background: #fefefe;
    padding: 10px 20px;
    box-shadow: 0 0 10px #333;
    -webkit-transition: top .4s ease-in-out;
    -moz-transition: top .4s linear;
    -o-transition: top .4s linear;
    -ms-transition: top .4s linear;
    transition: top .4s linear;
    width: 400px;
/*    border: 2px solid #333;*/
    color: #333;
    height: 300px;
    border-radius: 0px 0px 9px 9px;
}

div#modal-window h3{
    text-align: center;
}

div#modal-window.hide { top: -1000px; display: block; }

/* close button */
div#modal-window .button {
    margin-top: 30px;
    margin-left: 120px;
    cursor: pointer;
    text-decoration: none;
    font-size: 30px;
    padding: 4px 10px 4px;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background: #1F48A3;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 150px;
    height: 40px;
    text-align: center;
}

@media screen and (max-width: 960px) {
    div#modal-window { width: 90%; }
    div#modal-window .button { position: absolute; top: 10px; right: 10px; }
}
