div#popup-modal, div#modalbg {
    transition: all 0.4s ease;
}

div#popup-modal {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    width: 50%;
    margin: 0% 25%;
    height: 710px;
    max-height: calc(100vh - 100px);
    border-radius: 5px;
    top: 50px;
    background-color: #eee;
    box-shadow: 2px 2px 15px #44444477;
    z-index: 99999;
    padding: 20px;
}

div#popup-modal>section>.innerbody {
    overflow-y:auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    height: calc(100% - 50px);
    top: 25px;
    position: absolute;
    width: calc(100% - 25px);
    /*box-shadow: 1px 1px 10px 2px rgba(81,81,81,0.5) inset;*/
    /*background-color: #fdfdfd;*/
}

div#popup-modal.open {
    opacity: 1;
    pointer-events: auto;
}

div#modalbg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    background: #333;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
}

div#popup-modal.open + div#modalbg {
    opacity: 0.75;
    pointer-events: auto;
}

#close-popup {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    line-height: 14px;
    top: 6px;
    right: 6px;
}

/* Form styles */
input[type=text], select, textarea, input[type=email], input[type=password] {
    width: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

label {
    padding: 12px 12px 12px 0;
    display: inline-block;
}

input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

input[type=submit]:hover {
    background-color: #45a049;
}

/*.container {*/
/*    border-radius: 5px;*/
/*    background-color: #f2f2f2;*/
/*    padding: 20px;*/
/*}*/

.col-25 {
    float: left;
    /*width: 25%;*/
    margin-top: 6px;
    margin-right: 5px;
}

.col-75 {
    float: left;
    /*width: 75%;*/
    margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}
.text-center {
    text-align: center;
}

.empty-label {
    width: 28px;
}

.hidden {
    visibility: hidden;
}

 /*Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other*/
@media screen and (max-width: 1300px) {
    /*.col-25, .col-75, input[type=submit] {*/
    /*    width: 100%;*/
    /*    margin-top: 0;*/
    /*}*/
    div#popup-modal {
        min-width: 300px;
        margin: 0 5%;
        width: 90%;
    }
}

@media screen and (max-width: 600px) {
    div#popup-modal {
        height: calc(100vh - 100px);
    }

    label, .empty-label {
        width: 300px;
        height: 1px;
    }

    .captcha {
        margin-left: 0 !important;
    }
}
