/***** POPUP *****/
.em-popup-overlay {
    width: 100vw;
    height: 100vh;
    z-index: 8888;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  z-index: -9999;
  opacity: 0;
}

body .em-popup-overlay.em-active {
    z-index: 8888;
    opacity: 1;
}

.em-popup {
    background-size: cover!important;
    background-repeat: no-repeat;
    background-position: center!important;
    background: #fff;
    padding: 40px;
    max-width: 870px;
    position: relative;
}

.em-popup h2 {
    margin: 0;
    color: #222;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.em-popup-trigger {
    cursor: pointer;
}

.em-popup-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 99999;
    transition: all 0.4s ease;
    opacity: 0.25;
}

.em-popup-close:hover {
    cursor: pointer;
    opacity: 1;
}

.em-popup .button {
    margin: 0 auto;
}

.em-popup label {
    width: 100%;
    text-align: left;
}

.em-popup-content {
    text-align: center;
    /* padding: 60px; */
}

.em-popup-content.em-content-scroll {
    overflow-y: scroll;
    max-height: 70vh;
}

@keyframes popupIn {
    0% { 
    z-index: -999999;
    opacity: 0;
    display: none;
    }
    
    1% { 
    z-index: 99999;
    opacity: 0;
    display: flex;
    }
    
    100% {
    z-index: 99999;
    opacity: 1;
    display: flex;
    left: 0;
    top: 0;
    }
}

.em-popup-close:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 767px){
    .em-popup {
        width: 85vw;
    }
    
    .em-popup h1 {
        font-size: 2.6rem;
    }
    
    .em-popup-bg {
/*         background-image: url(https://hotlogic.com/images/welcome-back-photos/hl-popup-bg-mobile.jpg); */
        padding: 41px;
    }
}
