*{
    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: 550px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.background img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text{
    position: absolute;
    top: 17.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.reward{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 350px;
}
.reward img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.frame{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
}
.frame img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.middle{
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50px;
}
.middle img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.playbutton{
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 200px;
}
.playbutton img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    animation: zoomInOut 2s ease-in-out infinite;
}
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Popup Styles */
.popout-win1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.popout-win1.show {
    display: flex;
}

.image-win1 {
    position: relative;
    width: 90%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-win1 img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win1 .buttons {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popout-win1 .buttons img {
    width: 150px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    animation: zoomInOut 2s ease-in-out infinite;
}

.popout-win1 .buttons img:hover {
    transform: scale(1.05);
}

.popout-win1 .buttons img:active {
    transform: scale(0.95);
}

/* Popup Win 2 Styles */
.popout-win2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.popout-win2.show {
    display: flex;
}

.image-win2 {
    position: relative;
    width: 90%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-win2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win2 .buttons {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popout-win2 .buttons img {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    animation: zoomInOut 2s ease-in-out infinite;
}

.popout-win2 .buttons img:hover {
    transform: scale(1.05);
}

.popout-win2 .buttons img:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupZoom {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .background img{
     width: 100%;
     object-fit: fill;
    }
}
@media (max-width: 440px) {
    .reward{
        max-width: 300px;
    }
}

@media (max-width: 414px) {
    .text{
        max-width: 280px;
    }
    .frame{
        max-width: 350px;
    }
    .reward{
        max-width: 250px;
    }
}

@media (max-width: 375px) {
    .text{
        max-width: 250px;
    }
    .frame{
        max-width: 300px;
    }
    .reward{
        max-width: 210px;
    }
}
@media (max-width: 360px) {
    .frame{
        max-width: 350px;
    }
    .reward{
        max-width: 250px;
    }
}