:root {
    --popup-width: 729px;
    --popup-height: 500px;
    --close-x: 20px;
    --close-y: 25px;
    --text-dist: 13px;
    --submit-width: 199px;
    --submit-height: 39px;
    --submit-radius: 20px;
    --submit-fontsize: 1.0625em;
    --submit-dist: 38px;
    --thanks-button-dist: 28px;
}
#popup-july .popup-content {
    width: var(--popup-width);
    height: var(--popup-height);
    padding: 0 15px;
    background-image: url(../images/hero/popup-back.webp);
    background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x,
            url("../images/hero/popup-back@2x.webp") 2x);
}
#popup-july .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}
#popup-july form {
    margin-top: var(--text-dist);
}
#popup-july .button {
    width: var(--submit-width);
    height: var(--submit-height);
    border-radius: var(--submit-radius);
    font-size: var(--submit-fontsize);
    margin-top: var(--submit-dist);
    padding: 0.2em 0 0;
}
#popup-july .game-text {
    margin-bottom: 30px;
}
#popup-july .scratch-wrapper {
    margin-left: 5px;
    margin-bottom: 73px;
    align-self: flex-end;
}
#popup-july .popup-thanks .button {
    margin-top: var(--thanks-button-dist);
}
#popup-july .thanks-graphic-box {
    left: -182px;
    top: -40px;
}
@media screen and (min-width: 568px) {
}
@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 20px;
        --close-y: 26px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }
    #popup-july .popup-close {
        width: 55px;
    }
    #popup-july .popup-game {
        flex-direction: column;
    }
    #popup-july .game-text {
        margin-bottom: 0;
    }
    #popup-july .scratch-wrapper {
        margin-top: 20px;
        margin-left: 0;
        margin-bottom: 0;
        align-self: auto;
    }
    #popup-july .popup-thanks {
        padding-bottom: 60px;
    }
    #popup-july .thanks-graphic-box {
        left: inherit;
        top: inherit;
        right: -74px;
        bottom: -10px;
    }
}