*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.background img{
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Mobile background */
@media (max-width: 768px) {
    .background img.bg {
        display: none;
    }
    .background {
        background-image: url('./image/MobileBackground.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}
.main-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo{
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 180px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.text{
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 300px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.frame{
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.frame img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.spinitem{
    position: absolute;
    top: 52.4%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 385px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinitem img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}
.middle{
    position: absolute;
    top: 52.4%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.middle img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pointer{
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pointer img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.playButton{
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.playButton img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: zoomInOut 2s ease-in-out infinite;
}

/* Popout Lose Styles */
.popout-lose{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.555);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    gap: 20px;
}
.popout-lose.show{
    display: flex;
}
.img-lose{
    width: 100%;
    max-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-lose img{
    width: 100%;
    height: auto;
    object-fit: contain;
}
.text-lose{
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text-lose img{
    width: 100%;
    height: auto;
    object-fit: contain;
}
.tryagainButton{
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 80px;
}
.tryagainButton img{
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: zoomInOut 2s ease-in-out infinite;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Popout Win Styles */
.popout-win{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.555);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    flex-direction: column;
    gap: 20px;
}
.popout-win.show{
    display: flex;
}
.coin-effect{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.coin-effect img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.img-win{
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}
.img-win img{
    width: 100%;
    height: auto;
    object-fit: contain;
}
.telegramButton{
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    position: relative;
    margin-top: 20px;
}
.telegramButton img{
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: zoomInOut 2s ease-in-out infinite;
}
@media (max-width: 768px) {
    .background {
        background-image: url('./image/MobileBackground.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .pointer{
        top: 32%;
    }
    .playButton{
        top: 90%;
    }
}
@media (max-width: 440px) {
    .frame{
        width: 90%;
    }
    .spinitem{
        width: 75%;
    }
    .middle{
        width: 70%;
    }
    .pointer{
        top: 32%;
        width: 80%;
    }
    .playButton{
        width: 90%;
    }
    .coin-effect{
        top: 44%;
        width: 100%;
        height: 90%;
    }
    .img-win{
        width: 60%;
    }
    .telegramButton{
        width: 50%;
    }
}
@media (max-width: 412px) {
    .pointer{
        top: 33%;
        width: 20%;
    }
    .middle{
        width: 20%;
    }
}
@media (max-width: 360px) {
    .pointer{
        top: 33%;
        width: 20%;
    }
    .middle{
        width: 20%;
    }
    .playButton{
        width: 40%;
    }

}