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

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

.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: cover;
}

.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-content.hidden {
    opacity: 0;
    visibility: hidden;
}

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

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

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

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

.frame {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

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

.box {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    gap: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 400px;
}

.box2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 400px;
}

.box1 img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: lightGlow 2s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.box1 img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: lightSweep 3s infinite;
    pointer-events: none;
}

.box1 img:nth-child(1) {
    animation-delay: 0s;
}

.box1 img:nth-child(1)::after {
    animation-delay: 0s;
}

.box1 img:nth-child(2) {
    animation-delay: 0.3s;
}

.box1 img:nth-child(2)::after {
    animation-delay: 1s;
}

.box1 img:nth-child(3) {
    animation-delay: 0.6s;
}

.box1 img:nth-child(3)::after {
    animation-delay: 2s;
}

.box1 img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    transform: scale(1.1);
}

.box2 img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: lightGlow 2s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.box2 img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: lightSweep 3s infinite;
    pointer-events: none;
}

.box2 img:nth-child(1) {
    animation-delay: 0.2s;
}

.box2 img:nth-child(1)::after {
    animation-delay: 0.5s;
}

.box2 img:nth-child(2) {
    animation-delay: 0.5s;
}

.box2 img:nth-child(2)::after {
    animation-delay: 1.5s;
}

.box2 img:nth-child(3) {
    animation-delay: 0.8s;
}

.box2 img:nth-child(3)::after {
    animation-delay: 2.5s;
}

.box2 img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    transform: scale(1.1);
}

@keyframes lightGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.4));
    }
}

@keyframes lightSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.popout-lose {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.8); */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    gap: 20px;
}

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

.popout-lose .banner {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popout-lose .banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-lose .text {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    transform: none;
    top: auto;
    left: auto;
}

.popout-lose .text img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-lose .image-lose {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.popout-lose .buttons {
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.popout-lose .buttons img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.8); */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    gap: 20px;
}

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

.popout-win .banner {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popout-win .banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win .text {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    transform: none;
    top: auto;
    left: auto;
}

.popout-win .text img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win .prize {
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popout-win .prize img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win .image-win {
    margin-top: -100px;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.popout-win .buttons {
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.popout-win .buttons img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .popout-lose .banner {
        max-width: 200px;
    }

    .popout-lose .text {
        max-width: 200px;
    }

    .popout-lose .image-lose {
        max-width: 300px;
    }
}
@media (max-width: 440px) {
    .frame {
        top: 60%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .frame img {
        max-width: 450px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
}
@media (max-width: 430px) {
    .text {
        top: 18%;
    }
    .text img {
        max-width: 350px;
    }
    .frame {
        top: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .frame img {
        max-width: 450px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
    .box {
        top: 50%;
    }
}
@media (max-width: 414px) {
   .frame {
    top: 57%;
   }
   .frame img {
    max-width: 400px;
    width: auto;
    margin: 0 auto;
    display: block;
   }
   .box {
    top: 57%;
   }
   .box1 {
    gap: 20px;
   }
   .box1 img {
    width: 70px;
   }
   .box2 {
    gap: 20px;
   }
   .box2 img {
    width: 70px;
   }
   .popout-win .prize {
    max-width: 150px;
    margin-bottom: 30px;
    z-index: 10;
   }
   .popout-win .image-win {
   width: 300px;
   z-index: 10;
   }
}

@media (max-width: 390px) {
    .frame {
        top: 55%;
    }
    .frame img {
        max-width: 400px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
    .box {
        top: 55%;
    }
    .box1 {
        gap: 20px;
    }
    .box1 img {
        width: 70px;
    }
    .box2 {
        gap: 20px;
    }
    .box2 img {
        width: 70px;
    }
}
@media (max-width: 375px) {
    .logo {
        top: 5%;
    }
    .logo img {
        max-width: 160px;
    }
    .text {
        top: 18%;
    }
    .text img {
        max-width: 300px;
    }
    .frame {
        top: 55%;
    }
    .frame img {
        max-width: 350px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
}
@media (max-width: 360px) {
    .frame {
        top: 55%;
    }
    .frame img {
        max-width: 350px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
}