/* ==============================
   JSnew STYLES
============================== */

#jsnew-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -9999;
    opacity: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
    cursor: pointer;
}

#jsnew-overlay.active {
    z-index: 9999;
    opacity: 1;
}

#jsnew-container {
    position: fixed;
    width: 60%;
    max-width: 551px;
    min-height: 100px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 10px 10px 60px #555;
    z-index: 10;
}

/* ==============================
   CLOSE BUTTON
============================== */

#jsnew-close {
    position: absolute;
    top: 160px;
    right: 200px;

    transform: translate3d(0,0,0);
    will-change: transform;

    z-index: 9999;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 0, 166);
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

/* hover paleidžia greitą animaciją */

#jsnew-close:hover {
    animation: escapeMove 0.001s linear forwards;
}

/* kryptis tokia pati kaip anksčiau */

@keyframes escapeMove {
    from {
        transform: translate3d(0,0,0);
    }
    to {
        transform: translate3d(25px,25px,0);
    }
}

/* ==============================
   MEDIA QUERIES
============================== */

@media screen and (max-width: 768px) {

    #jsnew-overlay {
        pointer-events: none;
    }

    .adsbygoogle {
        pointer-events: auto;
    }

    #jsnew-container {
        width: 100%;
    }

    #jsnew-close {
        top: 60px;
        right: 175px;
    }

}