:root {
    --popup-width: 700px;
    --popup-height: 500px;
    --close-x: 23px;
    --close-y: 22px;
    --text-dist: 24px;
    --submit-width: 207px;
    --submit-height: 36px;
    --submit-radius: 18px;
    --submit-fontsize: 1.3125em;
    --submit-dist: 7px;
    --thanks-button-dist: 30px;
}
#popup-april {
    --white: #ffffff;
    --green: #79cfdc;
}
#popup-april .popup-content {
    width: var(--popup-width);
    height: var(--popup-height);
    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-april .popup-inner {
    padding: 0 15px;

} 
#popup-april .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}
#popup-april form {
    margin-top: var(--text-dist);
}
#popup-april .button {
    width: var(--submit-width);
    height: var(--submit-height);
    border-radius: var(--submit-radius);
    font-size: var(--submit-fontsize);
    margin-top: var(--submit-dist);
    color: var(--black);
    padding: 0.2em 0 0;
}
#popup-april .popup-thanks .button {
    width: 220px;
    margin-top: var(--thanks-button-dist);
}
#popup-april .popup-game {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../images/hero/game-back.jpg);
    background-image: -webkit-image-set(url("../images/hero/game-back.jpg") 1x,
            url("../images/hero/game-back@2x.jpg") 2x);

}
#popup-april .game-text {
    transform: translateY(-20%);
    margin-right: -5%;
}
#popup-april .scratch-wrapper {
    margin-top: 38px;
}
#popup-april .popup-thanks .egg-left {
    top: 45px;
    left: -56px;
}
#popup-april .popup-thanks .egg-right {
    bottom: 24px;
    right: -40px;
}
@media screen and (min-width: 568px) {
}
@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 168px;
        --submit-height: 30px;
        --submit-radius: 15px;
        --submit-fontsize: 1em;
        --submit-dist: 8px;
        --thanks-button-dist: 25px;
    }
    #popup-april .popup-content {
        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-april .popup-close {
        width: 47px;
    }
    #popup-april .popup-form {
        width: 100%;
    }
    #popup-april .popup-game {
        background-image: url(../images/hero/game-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/game-back-m.jpg") 1x,
                url("../images/hero/game-back-m@2x.jpg") 2x);
        flex-direction: column;
        align-items: flex-end;
    }
    #popup-april .game-text {
        transform: none;
        margin-right: inherit;
        margin-bottom: -10px;
    }
    #popup-april .scratch-wrapper {
        width: 246px;
        margin-top: 0;
    }
    #popup-april .popup-thanks {
        padding-bottom: 50px;
    }
    #popup-april .popup-thanks .button {
        width: 169px;
    }
    #popup-april .popup-thanks .egg-left {
        top: inherit;
        bottom: 83px;
        left: -35px;
    }
    #popup-april .popup-thanks .egg-right {
        bottom: 12px;
        right: -26px;
    }
}