/* Lightbox styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.lightbox-overlay[style*="display: flex"] {
    display: flex !important;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}
.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: #222;
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.close-lightbox:hover {
    background: #ffd700;
    color: #222;
}
.spin-3d {
    animation: spin3d 1s cubic-bezier(.4,2,.6,1);
}

@keyframes spin3d {
    0% {
        transform: rotateZ(-20deg) rotateY(-25deg) scale(1.05);
    }
    100% {
        transform: rotateZ(-20deg) rotateY(335deg) scale(1.05);
    }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    min-height: 100vh;
    perspective: 1200px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
}

/* Rain effect */
.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    top: -10px;
    width: 1px;
    height: 15px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: rain-fall linear infinite;
}

.raindrop:nth-child(1) { left: 5%; animation-duration: 1.2s; animation-delay: 0s; width: 1px; height: 18px; }
.raindrop:nth-child(2) { left: 10%; animation-duration: 1.5s; animation-delay: -0.3s; width: 1.5px; height: 20px; }
.raindrop:nth-child(3) { left: 15%; animation-duration: 1.3s; animation-delay: -0.6s; width: 1px; height: 15px; }
.raindrop:nth-child(4) { left: 20%; animation-duration: 1.4s; animation-delay: -0.9s; width: 1.2px; height: 22px; }
.raindrop:nth-child(5) { left: 25%; animation-duration: 1.6s; animation-delay: -0.2s; width: 1px; height: 16px; }
.raindrop:nth-child(6) { left: 30%; animation-duration: 1.1s; animation-delay: -0.5s; width: 1.3px; height: 19px; }
.raindrop:nth-child(7) { left: 35%; animation-duration: 1.7s; animation-delay: -0.8s; width: 1px; height: 14px; }
.raindrop:nth-child(8) { left: 40%; animation-duration: 1.3s; animation-delay: -0.1s; width: 1.4px; height: 21px; }
.raindrop:nth-child(9) { left: 45%; animation-duration: 1.2s; animation-delay: -0.4s; width: 1px; height: 17px; }
.raindrop:nth-child(10) { left: 50%; animation-duration: 1.8s; animation-delay: -0.7s; width: 1.2px; height: 18px; }
.raindrop:nth-child(11) { left: 55%; animation-duration: 1.4s; animation-delay: -1s; width: 1px; height: 15px; }
.raindrop:nth-child(12) { left: 60%; animation-duration: 1.1s; animation-delay: -0.3s; width: 1.5px; height: 23px; }
.raindrop:nth-child(13) { left: 65%; animation-duration: 1.5s; animation-delay: -0.6s; width: 1px; height: 16px; }
.raindrop:nth-child(14) { left: 70%; animation-duration: 1.3s; animation-delay: -0.9s; width: 1.3px; height: 20px; }
.raindrop:nth-child(15) { left: 75%; animation-duration: 1.6s; animation-delay: -0.2s; width: 1px; height: 14px; }
.raindrop:nth-child(16) { left: 80%; animation-duration: 1.2s; animation-delay: -0.5s; width: 1.4px; height: 19px; }
.raindrop:nth-child(17) { left: 85%; animation-duration: 1.7s; animation-delay: -0.8s; width: 1px; height: 17px; }
.raindrop:nth-child(18) { left: 90%; animation-duration: 1.4s; animation-delay: -0.1s; width: 1.2px; height: 21px; }
.raindrop:nth-child(19) { left: 95%; animation-duration: 1.1s; animation-delay: -0.4s; width: 1px; height: 15px; }
.raindrop:nth-child(20) { left: 8%; animation-duration: 1.8s; animation-delay: -0.7s; width: 1.5px; height: 18px; }
.raindrop:nth-child(21) { left: 18%; animation-duration: 1.3s; animation-delay: -1s; width: 1px; height: 16px; }
.raindrop:nth-child(22) { left: 28%; animation-duration: 1.2s; animation-delay: -0.3s; width: 1.3px; height: 22px; }
.raindrop:nth-child(23) { left: 38%; animation-duration: 1.5s; animation-delay: -0.6s; width: 1px; height: 14px; }
.raindrop:nth-child(24) { left: 48%; animation-duration: 1.4s; animation-delay: -0.9s; width: 1.4px; height: 20px; }
.raindrop:nth-child(25) { left: 58%; animation-duration: 1.6s; animation-delay: -0.2s; width: 1px; height: 17px; }
.raindrop:nth-child(26) { left: 68%; animation-duration: 1.1s; animation-delay: -0.5s; width: 1.2px; height: 19px; }
.raindrop:nth-child(27) { left: 78%; animation-duration: 1.7s; animation-delay: -0.8s; width: 1px; height: 15px; }
.raindrop:nth-child(28) { left: 88%; animation-duration: 1.3s; animation-delay: -0.1s; width: 1.5px; height: 23px; }
.raindrop:nth-child(29) { left: 12%; animation-duration: 1.2s; animation-delay: -0.4s; width: 1px; height: 16px; }
.raindrop:nth-child(30) { left: 22%; animation-duration: 1.8s; animation-delay: -0.7s; width: 1.3px; height: 18px; }
.raindrop:nth-child(31) { left: 32%; animation-duration: 1.4s; animation-delay: -1s; width: 1px; height: 14px; }
.raindrop:nth-child(32) { left: 42%; animation-duration: 1.1s; animation-delay: -0.3s; width: 1.4px; height: 21px; }
.raindrop:nth-child(33) { left: 52%; animation-duration: 1.5s; animation-delay: -0.6s; width: 1px; height: 17px; }
.raindrop:nth-child(34) { left: 62%; animation-duration: 1.3s; animation-delay: -0.9s; width: 1.2px; height: 20px; }
.raindrop:nth-child(35) { left: 72%; animation-duration: 1.6s; animation-delay: -0.2s; width: 1px; height: 15px; }
.raindrop:nth-child(36) { left: 82%; animation-duration: 1.2s; animation-delay: -0.5s; width: 1.5px; height: 19px; }
.raindrop:nth-child(37) { left: 92%; animation-duration: 1.7s; animation-delay: -0.8s; width: 1px; height: 16px; }
.raindrop:nth-child(38) { left: 3%; animation-duration: 1.4s; animation-delay: -0.1s; width: 1.3px; height: 22px; }
.raindrop:nth-child(39) { left: 13%; animation-duration: 1.1s; animation-delay: -0.4s; width: 1px; height: 14px; }
.raindrop:nth-child(40) { left: 23%; animation-duration: 1.8s; animation-delay: -0.7s; width: 1.4px; height: 18px; }
.raindrop:nth-child(41) { left: 33%; animation-duration: 1.3s; animation-delay: -1s; width: 1px; height: 17px; }
.raindrop:nth-child(42) { left: 43%; animation-duration: 1.2s; animation-delay: -0.3s; width: 1.2px; height: 21px; }
.raindrop:nth-child(43) { left: 53%; animation-duration: 1.5s; animation-delay: -0.6s; width: 1px; height: 15px; }
.raindrop:nth-child(44) { left: 63%; animation-duration: 1.4s; animation-delay: -0.9s; width: 1.5px; height: 20px; }
.raindrop:nth-child(45) { left: 73%; animation-duration: 1.6s; animation-delay: -0.2s; width: 1px; height: 16px; }
.raindrop:nth-child(46) { left: 83%; animation-duration: 1.1s; animation-delay: -0.5s; width: 1.3px; height: 19px; }
.raindrop:nth-child(47) { left: 93%; animation-duration: 1.7s; animation-delay: -0.8s; width: 1px; height: 14px; }
.raindrop:nth-child(48) { left: 7%; animation-duration: 1.3s; animation-delay: -0.1s; width: 1.4px; height: 23px; }
.raindrop:nth-child(49) { left: 17%; animation-duration: 1.2s; animation-delay: -0.4s; width: 1px; height: 17px; }
.raindrop:nth-child(50) { left: 27%; animation-duration: 1.8s; animation-delay: -0.7s; width: 1.2px; height: 18px; }

@keyframes rain-fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px));
        opacity: 0;
    }
}

.main-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    padding: 0 5vw;
    gap: 2vw;
}

.image-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 0;
}

.menu-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
        height: auto;
        width: 100vw;
        padding: 2vw 2vw;
        gap: 2rem;
    }
    .image-side {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    .menu-side {
        align-items: center;
        width: 100%;
        gap: 1.2rem;
    }
    .centered-image {
        max-width: 75vw !important;
        max-height: 30vh !important;
        transform:
            rotateZ(-10deg)
            rotateY(-15deg)
            scale(0.9);
    }
}

@media (max-width: 600px) {
    .main-layout {
        padding: 1vw 0.5vw;
        gap: 1rem;
    }
    .menu-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .centered-image {
        max-width: 60vw !important;
        max-height: 22vh !important;
        transform:
            rotateZ(-5deg)
            rotateY(-10deg)
            scale(0.8);
    }
    .lightbox-content {
        max-width: 98vw;
        max-height: 60vh;
    }
    .lightbox-video {
        max-height: 50vh;
    }
    .close-lightbox {
        top: -30px;
        font-size: 1.5rem;
        padding: 0 0.7rem;
    }
}

.menu-btn {
    background: #181818;
    color: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    margin: 0;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.menu-btn:hover {
    background: #333;
    color: #ffd700;
    border-color: #ffd700;
    transform: translateX(-6px) scale(1.05);
    }
}

/* Music Player Controls in Navigation */
.music-controls-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.music-controls-nav .control-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    gap: 4px;
}

.music-controls-nav .control-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.05);
}

.play-icon {
    font-size: 20px;
    line-height: 1;
}

.music-text {
    font-size: 0.75rem;
    font-family: inherit;
    text-align: center;
    line-height: 1.2;
    opacity: 0.9;
}

body {
    /* ...existing code... */
    perspective: 1200px;
}


.centered-image {
    display: block;
    max-width: 90vw;
    max-height: 66vh;
    margin: 0 auto;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.7), /* main shadow */
        20px 0 40px -10px rgba(0,0,0,0.5), /* right shadow for depth */
        0 20px 40px -10px rgba(0,0,0,0.4); /* bottom shadow for depth */
    transform:
        rotateZ(-20deg)
        rotateY(-25deg)
        scale(1.05);
    border-radius: 6px;
    border: 2px solid #222;
    background: #111;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    position: relative;
    z-index: 10;
}

.centered-image:hover {
    transform:
        rotateZ(-20deg)
        rotateY(-10deg)
        scale(1.12);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.8),
        30px 0 60px -10px rgba(0,0,0,0.6),
        0 30px 60px -10px rgba(0,0,0,0.5);
}
header {
    background: #222;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
footer {
    text-align: center;
    color: #888;
    padding: 1rem;
    font-size: 0.9rem;
}

/* New Game Badge */
.new-badge {
    display: inline-block;
    background: #ff4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(255, 68, 68, 0.5);
    }
}
