:root {
    --popup-width: 704px;
    --popup-height: 498px;
    --close-x: 32px;
    --close-y: 34px;
    --text-dist: 38px;
    --submit-width: 206px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.125em;
    --submit-dist: 6.5px;
    --thanks-button-dist: 35px;
}

.scrollock-on {
    overflow: hidden;
}

body.scrolllock-on {
    top: unset !important;
}

#popup-may {
    --blue: #2a3b74;
    overflow: hidden;
}

#popup-may .popup-content {
    width: 700px;
    height: 500px;
    padding: 0;
}

#popup-may .popup-default,
#popup-may .popup-thanks {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    background-image: url(../images/hero/popup-back.jpg);
    background-image: -webkit-image-set(url("../images/hero/popup-back.jpg") 1x,
            url("../images/hero/popup-back@2x.jpg") 2x);
}

#popup-may .frogger-game {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    background-image: url(../images/hero/back.jpg);
    background-image: -webkit-image-set(url("../images/hero/back.jpg") 1x,
            url("../images/hero/back@2x.jpg") 2x);
}

#popup-may .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}

#popup-may form {
    margin-top: 20px;
}

#popup-may .button {
    width: 10.5em;
    height: 2em;
    border-radius: 1em;
    font-size: 1.2em;
    margin-top: 1.5em;
    padding: 0.2em 0 0;
    margin: 0 auto;
}

#popup-may .form-action {
    justify-content: center;
    display: flex;
}

#popup-may .popup-thanks .button {
    margin-top: var(--thanks-button-dist);
}

#popup-may .bg-video-game {
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}

#popup-may .popup-flower {
    width: 19em;
    height: 16em;
    bottom: 1em;
    left: 10em;
    cursor: pointer;
}

#popup-may .close2 {
    filter: invert(1);
}

.frogger-gameboard {
    width: 513px;
    height: 684px;
    border: 15px solid #8ac43e;
}

.frogger-game {
    top: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 2em;
}

#popup-may .button,
#popup-may .button:visited,
#popup-may .button:active,
#popup-may .button:focus,
#popup-may .button:hover {
    color: white;
    text-decoration: none;
    border: none;
}

#popup-may .frog {
    bottom: -46px;
    left: -11px;
}

.popup-close1 img {
    filter: invert(1) !important;
}

#popup-may .popup-close1 {
    padding: 20px;
}

@media screen and (max-width: 1100px) {
    .game-text {
        width: 30em;
    }

    .frogger-game {
        gap: 0;
    }
}

@media screen and (max-width: 911px) {
    .game-text {
        width: 17em;
    }
}

@media screen and (max-width: 767px) {
    #popup-may .popup-content {
        width: 100%;
        height: 100%;
    }

    .frogger-game {
        width: 100%;
        height: 100%;
        flex-direction: column;
        top: 0;
        transform: unset;
        transform: translateX(-50%);
    }

    .frogger-gameboard {
        width: 417px;
        height: 556px;
    }

    .game-text {
        width: 28em;
        margin-bottom: -2em;
        z-index: 1;
    }

    .keys {
        bottom: -41em;
        width: 27em;
    }


}

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }

    #popup-may form {
        margin-top: 21px;
        width: calc(100% - 50px);
    }

    #popup-may .popup-default,
    #popup-may .popup-thanks {
        background-image: url(../images/hero/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.jpg") 1x,
                url("../images/hero/popup-back-m@2x.jpg") 2x);
    }

    #popup-may .frogger-game {
        background-image: url(../images/hero/back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/back-m.jpg") 1x,
                url("../images/hero/back-m@2x.jpg") 2x);
    }

    #popup-may .thanks {
        width: 90%;
        margin-top: -17%;
    }

    #popup-may .form-text {
        width: 75%;
    }

    #popup-may .game-text {
        margin-top: 13%;
        width: 90%;
    }

    #popup-may .popup-form,
    #popup-may .popup-inner {
        width: 100%;
    }

    .frogger-game.active-mobile {
        position: relative;
        margin-bottom: 5em;
    }

    .may-inner.active-mobile {
        position: absolute !important;
    }

    .frogger-gameboard {
        width: 365px;
        height: 487px;
    }

    .game-text {
        width: 22em;
        margin-bottom: -1em;
        margin-top: 1em;
    }



    #popup-may .frog {
        width: 50%;
        bottom: 1%;
        left: 1%;
    }

    #popup-may .button {
        padding: 0;
        padding-top: 2px;
    }
}

@media screen and (max-width: 375px) {
    .frogger-gameboard {
        width: 320px;
        height: 427px;
    }

    .game-text {
        width: 19em;
    }
}