/* Cribbed from https://www.w3schools.com/howto/howto_css_modals.asp */
/* The Modal (background) */

:root {
    --tnotw-modal-height: 275px;
}

.tnotw-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999999999; /* Sit on top */
    padding-top: 165px; /* Location of the box */
    left: 0;
    top: 0;
    padding-top: 10vh;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); 
}

/* Modal Content */
.tnotw-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 50px auto 0 auto;
    padding: 0;
    border: none;
    height: var(--tnotw-modal-height);
    width: 40%;
    max-width: 550px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;

}

@media screen and (max-width: 790px ) {
    .tnotw-modal-content {
	    width: 90%;
    }
}


/* 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}
}

/* The Close Button */
.tnotw-close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.tnotw-close:hover,
.tnotw-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.tnotw-modal-header {
    padding: 2px 16px;
    background-color: #47b1a9;
    color: white;
}

.tnotw-modal-body  {
    padding: 0;
}

.tnotw-modal-footer {
    padding: 2px 16px;
    background-color: #47b1a9;
    color: white;
}

.tnotw-hide {
    display: none;
}


#newsletter-popup {
    background: #f7f7f7; 
    padding: 28px 35px; 
    text-align: center; 
    line-height: 22px; 
    max-width: 100% !important;
    height: var(--tnotw-modal-height);
    -webkit-box-shadow: -1px 2px 5px -1px rgba(199,197,199,1);
    -moz-box-shadow: -1px 2px 5px -1px rgb(118, 90, 118);
    box-shadow: -1px 2px 5px -1px rgba(199,197,199,1);
}

#newsletter-popup h2 {font-weight: 900;
    line-height: 80px;
    font-size: 2em !important;       
    line-height:1em ;
}

.no-thanks {
    color: #000000 !important; 
    font-size: 16px;
    display: block;
    margin-top: 20px;
    height: 20px;;
}

#tnotw-modal p.message {
    color: #000000 !important;   
    font-size: 12px !important;
    display: block !important;
    margin-top: 20px !important;
    height: 20px !important;
}



a.no-thanks:hover {
    cursor: pointer !important;
}


.tnotw-modal {
	padding-top: 10vh;
}