/* Generic PopUps */

#modal
 {
    position: fixed;
    /* Stay in place */
    z-index: 6000 !important;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black w/ opacity */
}
#modal {
    z-index: 10000 !important;
}
.gen-modal {
    background-color: #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    height: auto !important;
    width: 50vw;
    /* Could be more or less, depending on screen size */
    box-sizing: border-box;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    padding: 0px;
    border: 8px solid #fff;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.8);
    transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
}
.gen-modal {
    word-break: break-word !important;
}

/* Welcome & Login popup
   ========================================================================== */
/**-- Share inputs w icons --**/
.input-group{
    position: relative;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    border-collapse: separate;
    background-color: #fff;
    background-image: none;
    border: 1px solid #d3d3d3;
    width: 303px;
    color: #000;
    margin: 0px auto 15px;
    border-radius: 2px;
    padding: 8px 5px 4px 5px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.08);
    -webkit-box-shadow: 0 0 4px 1px rgba(0,0,0,0.08);
    -moz-box-shadow: 0 0 4px 1px rgba(0,0,0,0.08);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control {
    display:flex;
    width: 100%;
    height: 28px;
    padding: 4px 5px 4px 5px;
    font-size: 1rem;
    box-sizing: border-box;
    line-height: 1.42857143;
    color: #000;

}
.input-group .form-control{
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 0;
    padding: 2px 0px 2px 5px !important;
    border: 0px;
}
.input-group-addon{
    position: absolute;
    top: -7px;
    padding:0px 5px;
    font-size: .775rem;
    font-weight: normal;
    line-height: 1;
    color: var(--myblue);

    background-color: #fff;
    white-space: nowrap;
}

#login-msg .copy{
    padding: 40px 20px 30px !important;
    box-sizing: border-box;
}
#login-msg {
    width: 25vw;
    min-height: 320px !important;
}
#login-content {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}
#login-content input{
    display: inline-block;
}


/* General popup styles
   ====================== */

#modal .mod-flex,
#login-msg .mod-flex{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}
.mod-flex-item:nth-child(1),
.mod-flex-item:nth-child(3) {
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}
.mod-flex-item:nth-child(2) {
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}
.gen-modal .modal-header {
    position: relative;
    background-color: #0d6fae;
    text-transform: uppercase;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-weight: bold;
    border-bottom: 3px solid #136d8c;
    line-height: 22px;
    color: #fff;
    padding: 10px 20px 10px;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
}

.gen-modal .modal-header h3 {
    margin: 0px;
    font-size: 16px;
    font-size: calc(16px + 4 * ((100vw - 320px) / 960));
    color: #fff !important;
    text-align: center;
    font-weight: 400;
    text-shadow: -1px 1px 1px rgba(0, 0, 0, 0.5);
}
.gen-modal .modal-header svg {
    float: right;
}
.gen-modal .modal-footer {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-top: 1px solid #e7e7e7;
    border-radius: 0 0 8px 8px;
    padding: 10px 20px 10px !important;
    color: #555;
    text-align: center;
    background: #dfdfdf;
    min-height: 50px;
}

.gen-modal .modal-footer input {
    margin-bottom: 0px;
}
.gen-modal h4 {
    font-size: 16px;
    font-size: calc(16px + 4 * ((100vw - 320px) / 960));
    color: #000;
    margin-bottom: 0px;
}
.gen-modal h5 {
    margin-bottom: 10px;
}
.gen-modal .copy {
    padding: 20px;
    box-sizing: border-box;
    color: #555;
    font-size: 1em;
    font-size: calc(1em + .1 * ((100vw - 20em) / 960));
    background: #fff;
    word-break: break-word;
}

#modal .copy a,
#login-msg .copy a{
    color: #00a99d;
    text-decoration: none;
    display: inline-block;
}
.copy label {
    display: inline-block;
    margin-right: 20px;
    min-width: 120px;
    text-align: right;
}
.gen-modal .copy p {
    word-break: break-word;
    margin-bottom: 15px;
}

.gen-modal .mod {
    color: #fff;
    background-color: #444;
}
.gen-modal .btn {
    display: inline;
    margin-bottom: 5px;
    min-width: 100px;
    line-height: 160% !important;
    box-sizing: border-box;
}
.gen-modal .modal-content {
    background: #3d6771;
    position: relative;
    box-sizing: border-box;
    z-index: 20;
    border-radius: 5px;
    color: #555
}

.modal-footer .btn.accent-color-2:hover,
.modal-footer .btn.accent-color-5:hover,
.modal-footer .btn.accent-color-6:hover{
    background-color: var(--mygreen) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
}
#close {
    position: absolute;
    top: 50%;
    right: 1%;
    font-size: 1em;
    font-weight: bold;
    -webkit-transform: translate(-1%, -50%) !important;
    -moz-transform: translate(-1%, -50%) !important;
    -ms-transform: translate(-1%, -50%) !important;
    -o-transform: translate(-1%, -50%) !important;
    transform: translate(-1%, -50%) !important;
    z-index: 5000;
    cursor: pointer;
}
.gen-modal a#close {
    padding: 5px;
    color: #fff;
    background-color: #2dbbaf;
    border-radius: 50%;
    font-size: 1em;
    font-weight: normal;
    width: 20px;
    height: 20px;
    text-align: center;
    vertical-align: middle;
}

.gen-modal a#close:hover {
    color: #F68A33;
    background-color: #fff;
    cursor: pointer;
}
.gen-modal .overlay {
    background-color: #000;
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10
}

@media screen and (max-width: 61.25em){
    .input-group{
        width: 90%;
    }
}
@media screen and (max-width: 61.25em) and (min-height: 30em){
    #login-msg{
        width: 60vw;
    }

    #login-content div {
        text-align: center;
    }
    .gen-modal .modal-footer input {
        margin-top: 5px !important;
        padding: 10px 0px;
        margin-bottom: 5px;
        box-sizing: border-box;
    }
    .gen-modal .copy {
        padding: 10px;
        color: #555;
        font-size: 16px !important;
    }
    .gen-modal .modal-header {
        padding: 10px 20px 5px;
    }

}
@media screen and (max-height: 30em){
    .input-group{
        width: 90% !important;
    }
}
@media screen and (max-width: 24em) {
    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin: 0px;
    } 
}
@media only screen and (max-width: 90.625em) {
    #login-msg{
        width:95vw !important;
       max-width: 400px !important;
    }
    .gen-modal .modal-footer input {
        margin-top: 5px !important;
        margin-bottom: 0px;
    }
    .gen-modal .copy {
        color: #555;
    }
    .gen-modal .modal-footer {
        padding: 10px 10px 10px !important;
    }
}
/** Heights **/
@media screen and (max-height:40em){
   .gen-modal{
        position: absolute;
        top: 50%;
        left: 50%;
    }  
    #login-msg{
        width: 30vw;
        min-height: 300px !important;
    }
    #login-msg .copy{
        padding: 30px 20px 20px !important;
        box-sizing: border-box;
    }
}
@media screen and (min-height: 67.5em){
    .gen-modal{
        position: absolute;
        top: 30%;
        left: 50%;
    }
}