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

html,
body {
    height: 100%;
    overflow: hidden;
}

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

.background {
    width: 600px;

    overflow: hidden;
    position: relative;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.spin {
    position: absolute;
    top: 70.7%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 4s linear infinite;
}

.spin img {
    width: 410px;
    height: 410px;
    object-fit: contain;
}

.pointer {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pointer img {
    width: 80px;
    height: 250px;
    object-fit: contain;
}

.middle {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.middle img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}



/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: popup-slide-in 0.3s ease-out;
    z-index: 1001;
}

.popup-banner {
    width: 100%;
    margin-bottom: 20px;
}

.popup-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: zoom-in-out 0.3s ease-in-out infinite;
}

.popup-button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}



.download-btn {
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    max-width: 320px;
    margin: 0 auto;
    /* center horizontally */
    animation: glow-highlight 1.8s ease-in-out infinite;
    filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
}

.download-btn:hover {
    filter: brightness(1.2) drop-shadow(0 0 25px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.7));
    animation-play-state: paused;
    transform: scale(1.05);
}

.img-link {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    animation: glow-highlight 1.8s ease-in-out infinite;
    filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
}

.img-link:hover {
    filter: brightness(1.2) drop-shadow(0 0 25px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.7));
    animation-play-state: paused;
    transform: scale(1.05);
}

.img-link:active {
    transform: scale(0.95);
    animation-play-state: paused;
    filter: brightness(0.9) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.download-btn:active {
    transform: scale(0.95);
    animation-play-state: paused;
    filter: brightness(0.9) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

/* Glowing highlight animation for image */
@keyframes glow-highlight {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
    }

    50% {
        filter: brightness(1.15) drop-shadow(0 0 30px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.7));
    }
}

.download-btn:active {
    transform: scale(0.95);
    animation-play-state: paused;
}

/* Zoom in-out animation */
@keyframes zoom-in-out {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Popup Animation */
@keyframes popup-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Show popup */
.popup.show {
    display: block;
}

/* Responsive for tablets and phones */
@media (max-width: 768px) {
    .spin {
        top: 70.7%;
    }

    .pointer {
        top: 54%;

    }

    .middle {
        top: 70.7%;
    }

    .spin img {
        width: 450px;
        height: 450px;
    }

    .pointer img {
        width: 60px;
    }

    .middle img {
        width: 200px;

    }

    .popup-content {
        width: 90%;
        max-width: 480px;
    }

    .download-btn {
        width: 300px;
    }

    .img-link-container {
        position: absolute;
        z-index: 100;
        bottom: 1%;
        left: 40%;
        transform: translateX(-50%);
        width: 70%;
        max-width: 300px;
    }

    .img-link {
        width: 100%;
        height: auto;
        display: block;
    }

    .img-link {
        width: 250px;
        max-width: 85%;
        height: auto;
        display: block;
        margin: 0 auto;
        animation: glow-highlight 1.8s ease-in-out infinite;
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
    }

}

@media (max-width: 430px) {
    .spin img {
        width: 350px;
        height: 350px;
    }

    .pointer img {
        width: 80px;

    }

    .middle img {
        width: 160px;

    }

    .popup-content {
        width: 90%;
        max-width: 420px;
    }

    .download-btn {
        width: 250px;
    }

    .img-link-container {
        position: absolute;
        z-index: 100;
        bottom: 1%;
        left: 35%;
        transform: translateX(-50%);
        width: 70%;
        max-width: 250px;
    }

    .img-link {
        width: 220px;
        max-width: 85%;
        height: auto;
        display: block;
        margin: 0 auto;
        animation: glow-highlight 1.8s ease-in-out infinite;
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
    }
}

@media (max-width: 390px) {
    .spin {
        top: 70%;
    }

    .pointer {
        top: 55%;
    }

    .middle {
        top: 71.7%;
    }

    .spin img {
        width: 275px;
        height: 275px;
    }

    .pointer img {
        width: 120px;
    }

    .middle img {
        width: 150px;

    }

    .popup-content {
        width: 90%;
        max-width: 420px;
    }

    .download-btn {
        width: 180px;
    }

    .img-link {
        width: 200px;
        max-width: 85%;
        height: auto;
        display: block;
        margin: 0 auto;
        animation: glow-highlight 1.8s ease-in-out infinite;
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
    }
}

@media (max-width: 360px) {
    .spin {
        top: 71%;
    }

    .pointer {
        top: 55%;
    }

    .middle {
        top: 71%;
    }

    .spin img {
        width: 280px;
    }

    .pointer img {
        width: 80px;
    }

    .middle img {
        width: 120px;
        height: 120px;
    }

    .download-btn {
        width: 220px;
    }

    .img-link-container {
        position: absolute;
        z-index: 100;
        bottom: 2%;
        left: 35%;
        transform: translateX(-50%);
        width: 70%;
        max-width: 200px;
    }

    .download-btn {
        width: 180px;
    }

    .img-link {
        width: 180px;
        max-width: 85%;
        height: auto;
        display: block;
        margin: 0 auto;
        animation: glow-highlight 1.8s ease-in-out infinite;
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
    }
}