* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Starry Background */
.starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

/* Star sizes - mix of small and medium */
.star-1, .star-3, .star-5, .star-7, .star-9, .star-11, .star-13, .star-15, .star-17, .star-19,
.star-21, .star-23, .star-25, .star-27, .star-29, .star-31, .star-33, .star-35, .star-37, .star-39,
.star-41, .star-43, .star-45, .star-47, .star-49 {
    width: 2px;
    height: 2px;
}

.star-2, .star-4, .star-6, .star-8, .star-10, .star-12, .star-14, .star-16, .star-18, .star-20,
.star-22, .star-24, .star-26, .star-28, .star-30, .star-32, .star-34, .star-36, .star-38, .star-40,
.star-42, .star-44, .star-46, .star-48, .star-50 {
    width: 1px;
    height: 1px;
}

/* Random positions for stars */
.star-1 { top: 10%; left: 5%; animation-delay: 0s; }
.star-2 { top: 15%; left: 12%; animation-delay: 0.5s; }
.star-3 { top: 8%; left: 20%; animation-delay: 1s; }
.star-4 { top: 25%; left: 8%; animation-delay: 1.5s; }
.star-5 { top: 30%; left: 15%; animation-delay: 0.2s; }
.star-6 { top: 20%; left: 25%; animation-delay: 0.7s; }
.star-7 { top: 12%; left: 35%; animation-delay: 1.2s; }
.star-8 { top: 18%; left: 42%; animation-delay: 1.7s; }
.star-9 { top: 35%; left: 30%; animation-delay: 0.3s; }
.star-10 { top: 40%; left: 18%; animation-delay: 0.8s; }
.star-11 { top: 28%; left: 50%; animation-delay: 1.3s; }
.star-12 { top: 22%; left: 58%; animation-delay: 1.8s; }
.star-13 { top: 45%; left: 45%; animation-delay: 0.4s; }
.star-14 { top: 50%; left: 35%; animation-delay: 0.9s; }
.star-15 { top: 38%; left: 62%; animation-delay: 1.4s; }
.star-16 { top: 32%; left: 70%; animation-delay: 1.9s; }
.star-17 { top: 55%; left: 55%; animation-delay: 0.1s; }
.star-18 { top: 60%; left: 48%; animation-delay: 0.6s; }
.star-19 { top: 48%; left: 72%; animation-delay: 1.1s; }
.star-20 { top: 42%; left: 80%; animation-delay: 1.6s; }
.star-21 { top: 65%; left: 65%; animation-delay: 0.25s; }
.star-22 { top: 70%; left: 58%; animation-delay: 0.75s; }
.star-23 { top: 58%; left: 82%; animation-delay: 1.25s; }
.star-24 { top: 52%; left: 88%; animation-delay: 1.75s; }
.star-25 { top: 75%; left: 75%; animation-delay: 0.35s; }
.star-26 { top: 80%; left: 68%; animation-delay: 0.85s; }
.star-27 { top: 68%; left: 92%; animation-delay: 1.35s; }
.star-28 { top: 62%; left: 95%; animation-delay: 1.85s; }
.star-29 { top: 85%; left: 85%; animation-delay: 0.15s; }
.star-30 { top: 90%; left: 78%; animation-delay: 0.65s; }
.star-31 { top: 78%; left: 12%; animation-delay: 1.15s; }
.star-32 { top: 72%; left: 5%; animation-delay: 1.65s; }
.star-33 { top: 88%; left: 22%; animation-delay: 0.45s; }
.star-34 { top: 82%; left: 28%; animation-delay: 0.95s; }
.star-35 { top: 92%; left: 38%; animation-delay: 1.45s; }
.star-36 { top: 86%; left: 45%; animation-delay: 1.95s; }
.star-37 { top: 95%; left: 52%; animation-delay: 0.55s; }
.star-38 { top: 5%; left: 60%; animation-delay: 1.05s; }
.star-39 { top: 3%; left: 75%; animation-delay: 1.55s; }
.star-40 { top: 7%; left: 85%; animation-delay: 0.05s; }
.star-41 { top: 93%; left: 15%; animation-delay: 0.55s; }
.star-42 { top: 97%; left: 25%; animation-delay: 1.05s; }
.star-43 { top: 6%; left: 90%; animation-delay: 1.55s; }
.star-44 { top: 14%; left: 95%; animation-delay: 0.05s; }
.star-45 { top: 98%; left: 60%; animation-delay: 0.55s; }
.star-46 { top: 96%; left: 72%; animation-delay: 1.05s; }
.star-47 { top: 4%; left: 50%; animation-delay: 1.55s; }
.star-48 { top: 2%; left: 30%; animation-delay: 0.05s; }
.star-49 { top: 99%; left: 40%; animation-delay: 0.55s; }
.star-50 { top: 1%; left: 10%; animation-delay: 1.05s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.view-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-counter:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.view-counter-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.view-counter-number {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 25%,
        rgba(255, 255, 255, 0.8) 50%,
        #fff 75%,
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: shimmer 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.slideshow-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9), 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.15),
        0 0 100px rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    z-index: 10;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 25px 80px rgba(0, 0, 0, 0.9), 
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 0 30px rgba(255, 255, 255, 0.2),
            0 0 60px rgba(255, 255, 255, 0.15),
            0 0 100px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 25px 80px rgba(0, 0, 0, 0.9), 
            0 0 0 1px rgba(255, 255, 255, 0.15),
            0 0 40px rgba(255, 255, 255, 0.3),
            0 0 80px rgba(255, 255, 255, 0.25),
            0 0 120px rgba(255, 255, 255, 0.15);
    }
}

.slide {
    display: none;
    width: 100%;
    height: 700px;
    position: relative;
    animation: fadeIn 0.6s ease-in-out;
    /* Ensure all images fit within the box without cropping or zooming */
    background-size: contain !important;
    background-position: center center;
    background-repeat: no-repeat;
    /* Fallback gradient if image/GIF doesn't load */
    background-color: #0a0a0a;
    /* Ensures animated GIFs play smoothly */
    image-rendering: auto;
    /* Ensure images don't overflow */
    overflow: hidden;
}

/* Fallback gradients for each slide if images are missing */
.slide:nth-child(1) {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.slide.active {
    display: block;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Pause/Play Overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.pause-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.pause-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    user-select: none;
}

.pause-overlay:hover .pause-icon {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

/* Dots indicator */
.dots-container {
    text-align: center;
    padding: 20px;
    margin-top: 15px;
    background: transparent;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dots-container::-webkit-scrollbar {
    display: none;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Volume Control */
.volume-control {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.volume-control:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.volume-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.volume-btn:hover {
    transform: scale(1.1);
}

.volume-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.volume-slider-container {
    width: 100px;
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Discord Section */
.discord-section {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}


.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.discord-link:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.discord-logo {
    width: 20px;
    height: 20px;
    color: #fff;
    transition: all 0.3s ease;
}

.discord-link:hover .discord-logo {
    color: #fff;
    transform: scale(1.1);
}

.discord-text {
    color: #fff;
}

/* Made By Text */
.made-by {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Adjust view counter position if Discord is visible */
@media (min-width: 481px) {
    .view-counter {
        top: 30px;
        right: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
        padding-top: 80px;
    }
    
    .title {
        font-size: 2rem;
        margin-bottom: 20px;
        letter-spacing: 1.5px;
        padding: 0 10px;
    }
    
    .slide {
        height: 400px;
    }
    
    .slideshow-container {
        border-radius: 15px;
        max-width: 100%;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    .slide-counter {
        bottom: 15px;
        right: 15px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .dots-container {
        padding: 15px 10px;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }
    
    .pause-icon {
        font-size: 60px;
    }
    
    .volume-control {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .volume-btn {
        width: 38px;
        height: 38px;
    }
    
    .volume-icon {
        width: 18px;
        height: 18px;
    }
    
    .volume-slider-container {
        width: 90px;
    }
    
    .view-counter {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
    }
    
    .view-counter-label {
        font-size: 12px;
    }
    
    .view-counter-number {
        font-size: 14px;
    }
    
    .discord-section {
        bottom: 15px;
        right: 15px;
    }
    
    .discord-link {
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
    }
    
    .discord-logo {
        width: 16px;
        height: 16px;
    }
    
    .discord-text {
        display: none;
    }
    
    .made-by {
        bottom: 15px;
        left: 15px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-top: 70px;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        letter-spacing: 1px;
        padding: 0 5px;
    }
    
    .slide {
        height: 300px;
    }
    
    .slideshow-container {
        border-radius: 12px;
        max-width: 100%;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .prev {
        left: 8px;
    }
    
    .next {
        right: 8px;
    }
    
    .slide-counter {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .dots-container {
        padding: 12px 5px;
    }
    
    .dot {
        height: 7px;
        width: 7px;
        margin: 0 3px;
    }
    
    .pause-icon {
        font-size: 50px;
    }
    
    .volume-control {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .volume-btn {
        width: 32px;
        height: 32px;
    }
    
    .volume-icon {
        width: 16px;
        height: 16px;
    }
    
    .volume-slider-container {
        width: 80px;
    }
    
    .volume-slider {
        height: 3px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    
    .discord-section {
        bottom: 10px;
        right: 10px;
    }
    
    .discord-link {
        padding: 6px 10px;
        font-size: 0;
        gap: 0;
    }
    
    .discord-logo {
        width: 20px;
        height: 20px;
    }
    
    .discord-text {
        display: none;
    }
    
    .made-by {
        bottom: 10px;
        left: 10px;
        font-size: 10px;
    }
    
    .view-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
    }
    
    .view-counter-label {
        font-size: 11px;
    }
    
    .view-counter-number {
        font-size: 13px;
        min-width: 25px;
    }
}
