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

body {
    overflow-x: hidden;
}

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

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

.logo {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 200px;
}

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

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

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

.reward {
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    z-index: 13;
}

.reward img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.frame {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

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

.middle {
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 90px;
    z-index: 14;
}

.middle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rewardfootage {
    position: fixed;
    bottom: -10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
}

.rewardfootage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catoon {
    position: absolute;
    top: 86%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
}

.catoon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@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: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popout-win1 .buttons img {
    width: 200px;
    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: 10%;
    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: cover;
    }

    .frame {
        max-width: 400px;
    }

    .reward {
        max-width: 300px;
    }

    .catoon {
        max-width: 400px;
    }

    .middle {
        max-width: 60px;
    }

    .rewardfootage {
        position: fixed;
        bottom: -7%;
    }
}

@media (max-width: 440px) {
    .reward {
        max-width: 350px;
    }

    .frame {
        max-width: 400px;
    }

    .middle {
        max-width: 60px;
    }
}


@media (max-width: 428px) {
    .text {
        max-width: 280px;
    }

    .frame {
        max-width: 400px;
    }

    .reward {
        max-width: 350px;
    }

    .catoon {
        max-width: 400px;
    }

    .middle {
        top: 53%;
        max-width: 60px;
    }

    .popout-win1 .buttons img {
        width: 170px;
    }

    .popout-win2 .buttons img {
        width: 170px;
    }
}

@media (max-width: 375px) {
    .text {
        max-width: 250px;
    }

    .frame {
        max-width: 350px;
    }

    .reward {
        max-width: 300px;
    }

    .middle {
        top: 53%;
        max-width: 60px;
    }
}

@media (max-width: 360px) {
    .logo {
        max-width: 150px;
    }

    .text {
        top: 20%;
        max-width: 250px;
    }

    .frame {
        max-width: 350px;
    }

    .reward {
        max-width: 300px;
    }

    .middle {
        top: 53%;
        max-width: 60px;
    }
}