body {
    box-sizing: border-box;
    font-family: "Poppins", serif;
    color: #fff;
    background: #1E1450;
}

header {
    text-align: center;
    margin: 20px auto;
}

main {
    background: url("../img/bg.png") 112%/contain no-repeat;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}


@media (min-width: 900px) {
    header {
        margin: 40px auto;
        padding-left: 60px;
        text-align: left;
    }
    
    header img {
        width: 280px;
    }
    
    main {
        background: url("../img/flip-girl.png") -7%/contain no-repeat;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        display: flex;
        justify-content: end;
        align-items: center;
    }
}

#popup {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #00000099;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.popup-bg {
    position: absolute;
    background-image: url("../img/win-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    width: 100%;
    bottom: 0;
    opacity: 0;
    transform: scale(0.5);
    ;
    animation: appearance 0.4s ease-in 0s 1 normal forwards;
}

.popup-content {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    width: 418px;
    height: 261px;
    border: 1px solid #FFFFFF1A;
    background-color: #372873;
    border-radius: 12px;
    margin: 259px auto;
    box-shadow: 0px 4px 116.2px 0px #841AED7A;
    z-index: 4;
}

@keyframes appearance {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content::after {
    content: '';
    background: url("../img/Reel_Frame.png") center/contain no-repeat;
    width: 450px;
    height: 300px;
    position: absolute;
    left: -17px;
    top: -20px;
    z-index: 2;
}

.popup-content::before {
    content: "";
    background: url("../img/girl.png") center/contain no-repeat;
    width: 282.16px;
    height: 235px;
    position: absolute;
    top: -237px;
    z-index: 2;
    left: 68px;
}

.popup-btn {
    width: 372px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFDC41;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    color: #1E1E28;
    margin-top: 30px;
    cursor: pointer;
    z-index: 3;
}

.popup-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

iframe {
    width: 1000px;
    height: 600px;
    overflow-y: hidden;
    position: relative;
    margin-left: 80px;
    margin-right: 80px;
}

.invisible {
    display: none;
}

.yourwin {
    width: 164px;
    height: 36px;
}

.bonus {
    width: 342px;
    height: 36px;
}

.close {
    position: absolute;
    top: -40px;
    right: -40px;
    cursor: pointer;
    z-index: 4;
}

@media (max-width: 1000px) {
    header {
        text-align: left;
        padding-left: 20px;
        display: flex;
        justify-content: center;
        height: 150px;
        flex-direction: column;
    }
    
    header img {
        width: 210px;
    }

    main {
        padding-top: 200px;
        background: url("../img/mob-girl.png") top / 90% no-repeat;
        background-position-x: 140%;
        top: 0;
    }

    iframe {
        width: 100%;
        margin: 0;
        height: 100%;
    }

    .popup-bg {
        background-image: url("../img/win-bg-mob.png");
    }

    .popup-content {
        width: 317px;
        height: 204px;
    }

    .popup-content::after {
        width: 340px;
        height: 227px;
        left: -12px;
        top: -12px;
    }

    .popup-content::before {
        width: 213px;
        height: 204px;
        top: -190px;
    }

    .popup-title {
        font-size: 20px;
        line-height: 24px;
    }

    .yourwin {
        width: 123px;
        height: 28px;
    }
    
    .bonus {
        width: 262px;
        height: 28px;
    }

    .popup-btn {
        width: 280px;
        height: 52px;
        margin-top: 20px;
    }

    .close {
        right: 0;
    }
}