body {
    min-height: 100%;
}
.modalDialog {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.6);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000, endColorstr=#7f000000)\9;
    z-index: 90000;
}
.modalDialog:target {
    opacity:1;
    pointer-events: auto;
    z-index: 91000;
}
.modalDialogInner {
    width: 40%;
    height: auto;
    position: relative;
    margin: 175px auto 0px auto;
    padding: 0px;
    color: #fff;
    font-family: Raleway, Helvetica, sans-serif;
    border: 20px solid #e2e3e5;
    background: #e2e3e5;
    z-index: 92000;
    pointer-events: auto;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
}
.modalDialogKey {
    border: 3px solid #9b9c9e;
}
.modalDialogInner a {
    color: #002c5b;
    text-decoration: none;
    font-weight: bold;
}
.modalDialogInner h2 {
    color: #002c5b;
    font-size: 3.85em;
    margin: 10px 10px 0px 10px;
    text-align: center;
    font-weight: 500;
}
.modalDialogInner p {
    color: #000;
    font-size: 2em;
    text-align: center;
    margin: 10px 10px;
    clear: left;
}
.modalTextInner {
    margin: 5px;
}
.modalTextInner p {
    color: #000;
    font-size: 2.6em;
    clear: left;
    margin: 0px 10px;
}
#buttonrow {
    width: 100%;
    margin: 0px auto 10px auto;
    vertical-align: middle;
    text-align: center;
}
#buttonrow a {
    color: #FFF;
    font-size: 1em;
}
.buttonleft {
    display: inline-block;
    text-align: center;
    padding: 10px;
}
.buttonleft div {
    width: 200px;
    height: 100%;
    text-align: center;
    background: #31631c;
    font-size: 2.25em;
    font-weight: bold;
    padding: 10px;
    margin:0 auto;
}
.buttonright {
    display: inline-block;
    text-align: center;
    padding: 10px;
}
.buttonright div {
    width: 200px;
    height: 100%;
    text-align: center;
    background: #31631c;
    font-size: 2.25em;
    font-weight: bold;
    padding: 10px;
    margin:0 auto;
}
.buttoncenter {
    width: 100%;
    display: inline-block;
    text-align: center;
}
.buttoncenter div {
    width: 55%;
    height: 100%;
    padding: 10px;
    text-align: center;
    background: #31631c;
    margin: 0 auto 20px auto;
    font-size: 1.8em;
}
.modalDialogInner p:empty {
    display: none;
}
.modalImg {
    vertical-align: top;
    max-width: 375px;
    width:100%;
    height: auto;
    float: left;
    margin-right: 10px;
}
.modalImg img {
    float: left;
    width: 100%;
    height: auto;
    font-size: 0;
    line-height: 0;
    vertical-align: top;
    border: none;
}
.modalText {
    vertical-align: top;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.nowrap{
    white-space: nowrap;
}
#close {
    color: #FFFFFF;
    position: absolute;
    right: -30px;
    text-align: center;
    top: -75px;
    text-decoration: none;
    font-family: Arial;
    font-weight: normal;
    font-size: 35px;
    z-index: 93000;
}
#close:hover{
    color: #c1dcf9;
    cursor:pointer;
}
.content {
    margin: 30px;
}
a {
    cursor: pointer;
}
/* Add Animation */
@-webkit-keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}
.exit{
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}
@media only screen and (max-width:740px) {
    .modalDialogInner {
        width: 65% !important;
        margin:45px auto 0px auto !important;
    }
    .modalImg {
        display:none;
    }
    .modalDialogInner h2 {
        margin:10px 10px 0px 10px;
        font-size:3em;
        font-weight: bold;
    }
    .modalDialogInner p {
        font-size: 1.55em;
        margin: 5px 10px;
    }
    .modalTextInner {
        margin: 0px;
    }
    .modalTextInner p {
        font-size: 1.95em;
        margin: 5px 5px;
    }
    .buttonleft, .buttonright, .buttoncenter {
        padding: 5px 5px;
    }
    .buttonleft div {
        width: 150px;
        font-size: 1.65em;
    }
    .buttonright div {
        width: 150px;
        font-size: 1.65em;
    }
    .buttoncenter div {
        font-size:1.25em;
    }
    #buttonrow {
        width: 100%;
        margin: 0px auto;
        vertical-align: middle;
        text-align: center;
    }
}
@media only screen and (max-width:966px) and (min-width:740px) {
    .modalDialogInner {
        max-width: 375px;
        width: 60%;
    }
}
