* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

.background {
    position: relative;
    width: 550px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    object-fit: cover;
}

.backframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.backframe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward {
    position: absolute;
    top: 50%;
    left: 95%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease;
}

/* Spin animation */
@keyframes spinReel {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spinning {
    animation: spinReel 1s linear infinite;
}

.reward img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    object-fit: cover;
}

.frame {
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buttonPlay {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttonPlay img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    object-fit: cover;
    cursor: pointer;
}
/* Popup styles */
.popoutwin1 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.popoutwin1.active {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

.image-win {
    width: 100%;
    max-width: 500px;
    margin-top: 220px; /* Shift content down */
    text-align: center;
}

.image-win img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 130px;
}

.buttons img {
    width: 200px;
    cursor: pointer;
}
/* Popoutwin2 style */
.popoutwin2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.popoutwin2.active {
    display: flex;
}
@media (max-width: 430px) {
    .reward img{
        max-width: 390px;
    }
    .buttonPlay img{
        max-width: 250px;
    }
}
@media (max-width: 414px) {
    .reward img{
        max-width: 380px;
    }
}
@media (max-width: 390px) {
    .reward img{
        max-width: 350px;
    }
}
@media (max-width: 360px) {
    .reward img{
        max-width: 320px;
    }
}
  