﻿.main {
    background: #aaa url(../images/bg.jpg) no-repeat;
    width: 800px;
    height: 600px;
    margin: 50px auto;
}

.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 {
    position: absolute;
    display: inline-block;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    opacity: 1;
    z-index: 998;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: default;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}

    /*.overlay:target {
        visibility: visible;
        opacity: 0.5;
    }*/

textarea {
    width: 90%;
    height: 50%;
}
input {
    width: 220px;
}

.popup {
    width: 75%;
    height: 80%;
    background-color: #fff;
    border: 3px solid #fff;
    display: inline-block;
    opacity: 0;
    padding: 15px;
    position: fixed;
    text-align: left;
    visibility: hidden;
    z-index: 999;
    left: 50%;
    -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 2px rgba(0, 0, 0, 0.4) inset;
    -moz-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -ms-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -o-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    box-shadow: 0 1px 1px 2px 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;
}

.popuptext {
    padding: 4px;
    height: 250px;
    overflow: auto;
}

/*.overlay:target + .popup {
    top: 50%;
    opacity: 1;
    visibility: visible;
}*/

.overlayHM {
    background-color: rgba(0, 0, 0, 0.6);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    visibility: hidden;
    z-index: 1;
    -webkit-transition: opacity .2s;
    -moz-transition: opacity .2s;
    -ms-transition: opacity .2s;
    -o-transition: opacity .2s;
    transition: opacity .2s;
}

    .overlayHM:target {
        visibility: visible;
        opacity: .2;
    }

.popupHM {
    width: 0;
    height: 230px;
    top: 50px;
    background-color: #383838;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
 /*  border: 3px solid #969696; */
    display: block;
    left: 0%;
    opacity: 0;
    padding: 15px;
    position: absolute;
    text-align: left;
    display: block;
    overflow: hidden;
    visibility: hidden;
    z-index: 10;
    -webkit-transform: translate(0%,0%);
    -moz-transform: translate(0%,0%);
    -ms-transform: translate(0%,0%);
    -o-transform: translate(0%,0%);
    transform: translate(0%,0%);
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
    border-radius: 0px;
    /*   -webkit-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -moz-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -ms-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    -o-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
    box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
     */
    -webkit-transition: width .2s;
    -moz-transition: width .2s;
    -ms-transition: width .2s;
    -o-transition: width .2s;
    transition: width .2s;
}

    .popupHM h2 {
        color: #969696;
    }

    .popupHM h3 {
        color: #969696;
    }

    .popupHM p {
        color: #969696;
    }


.popuptextHM {
    padding: 4px;
    height: 250px;
    overflow: hidden;
}

/*.overlayHM:target + .popupHM {
    top: 50px;
    opacity: 1;
    width: 200px;
    height: 400px;
    overflow: hidden;
    visibility: visible;
}
*/

.close {
    background-color: rgba(0, 0, 0, 0.8);
    height: 30px;
    line-height: 30px;
    position: absolute;
    right: 0;
    text-align: center;
    text-decoration: none;
    top: 0;
    width: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
    visibility: visible;
}

    .close:before {
        color: rgba(255, 255, 255, 0.9);
        content: "X";
        font-size: 24px;
        text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    }

    .close:hover {
        background-color: rgba(64, 128, 128, 0.8);
    }


.popup p, .popup div {
    margin-bottom: 10px;
}

.popup label {
    display: inline-block;
    text-align: left;
    width: 120px;
}

.popup input[type=text], .popup input[type=password] {
    border: 1px solid;
    border-color: #999 #ccc #ccc;
    margin: 0;
    padding: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
}

    .popup input[type=text]:hover, .popup input[type=password]:hover {
        border-color: #555 #888 #888;
    }
