﻿/************************************************************/
/*                       Modal Popup                        */
/************************************************************/

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: none;
}

    .modalDialog:target {
        opacity: 1;
    }

    .modalClose {
        width: 330px;
        height: auto;
        position: relative;
        padding: 5px 5px 5px 5px;
        background: #fff;
        color: #A0A0A0;
        border-radius: 10px;
        border: 3px dashed #0092ff;
        top: 60px;
    }

        .modalClose p {
            font-size: 15px;
        }

        .modalClose h4 {
            font-size: 2.5rem;
            padding-top: 10px;
            padding-bottom: 5px;
            color: #0092ff;
            font-weight: 700;
        }

        .modalClose h5 {
            font-size: 1.5rem;
        }

    .modalDialog section .tryMeForm {
        display: block;
    }

    .modalDialog .InputGroup {
        font-size: 1.5rem;
    }

    .modalDialog input {
        display: block;
        width: 200px;
        color: black;
    }

    .modalDialog textarea {
        font-size: 1.5rem;
        display: block;
        width: 200px;
        color: black;
    }

}

@media only screen and (max-width: 600px) {
    .modalDialog {
        width: 300px;
    }
}

/************************************************************/
/*                        Demo Popup                         */
/************************************************************/
.panel {
    background-color: #444;
    height: 34px;
    padding: 10px;
}

    .panel a#login_pop, .panel a#join_pop {
        border: 2px solid #aaa;
        color: #fff;
        display: block;
        float: right;
        margin-right: 10px;
        padding: 5px 10px;
        text-decoration: none;
        text-shadow: 1px 1px #000;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
        border-radius: 10px;
    }

a#login_pop:hover, a#join_pop:hover {
    border-color: #eee;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    z-index: 1;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}

    .overlay:target {
        visibility: visible;
        opacity: 1;
    }

.popup {
    background-color: #fff;
    border: 3px solid #fff;
    display: inline-block;
    left: 50%;
    opacity: 0;
    padding: 15px;
    position: fixed;
    text-align: center;
    top: 40%;
    visibility: hidden;
    z-index: 10;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.4) inset;
    -moz-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.4) inset;
    -ms-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.4) inset;
    -o-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.4) inset;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.4) inset;
    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
}

.overlay:target + .popup {
    top: 50%;
    opacity: 1;
    visibility: visible;
}

.close {
    background-color: #0092ff;
    line-height: 25px;
    position: absolute;
    right: 0px;
    text-align: center;
    text-decoration: none;
    top: 0px;
    width: 25px;
    height: 25px;
}

    .close:before {
        color: #ffffff;
        content: "X";
        font-size: 16px;
        text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    }

    .close:hover {
        background-color: #ee3123;
    }

.close-circle {
    background-color: #0092ff;
    border-radius: 50%;
    line-height: 30px;
    position: absolute;
    right: -10px;
    text-align: center;
    text-decoration: none;
    top: -10px;
    width: 30px;
    height: 30px;
}

    .close-circle:before {
        color: #ffffff;
        content: "X";
        font-size: 16px;
        text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    }

    .close-circle:hover {
        background-color: #ee3123;
    }

.popup p, .popup div {
    margin-bottom: 10px;
}

.popup label {
    display: inline-block;
    text-align: left;
    width: 120px;
}

.popup input[type="text"], .popup input[typetype="button"] {
    border: 1px solid;
    border-color: #999 #ccc #ccc;
    margin: 0;
    padding: 2px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

    .popup input[type="text"]:hover {
        border-color: #ff1212;
    }

.submit {
    padding-top: 10px;
}

@media only screen and (max-width: 750px) {
    .popup {
        width: 350px !important;
    }
}
