/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    font-family: var(--ff);
    color: var(--surface);
    overflow: hidden; 
}

a{
    text-decoration: none;
    color: var(--surface);
}

.download-btn{
    color: white !important;

    a{
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        font-size: .85em !important;
    }
    
}

/* Presentation Container & Scroll Snapping */
#presentation {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative; 
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

#presentation::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Individual Slide Section */
.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Fit image without cropping */
.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

/* --- UI Bars Fixed & Hover Styles --- */
.ui-bar {
    position: fixed;
    left: 0;
    right: 0;
    padding: calc(var(--gap)*1.5) calc(var(--gap)*0);
    display: flex;
    align-items: center;
    z-index: 100;
    /* Reduced opacity state */
    opacity: 0.25; 
    transition: opacity 0.3s ease;

    .container{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

/* Full opacity on hover */
.ui-bar:hover {
    opacity: 1;
}

/* Top Bar */
#top-bar {
    top: 0;
    background: linear-gradient(to bottom, var(--background) 5%, hsl(from var(--background) h s l / .25) 80%, transparent 100%);
}

/* Bottom Bar */
#bottom-bar {
    bottom: 0;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(to top, var(--background) 5%, transparent 100%);
}


/* Navigation Arrows */
.nav-btn {
    border: none;
    font-size: 24px;
    padding: 0 15px;
}

.nav-btn:hover {
    transform: scale(1.2);
}

#slide-indicator {
    font-size: 1em;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .ui-bar { padding: 15px; opacity: 0.6; /* Slightly more visible on mobile by default */ }
    button, .download-btn { padding: 8px 15px; font-size: 14px; }
}

/* --- Editable Slide Indicator Styles --- */
#slide-indicator-container {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

#slide-input {
    background: hsl(from var(--surface) h s l / .25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: .25rem;
    padding: .125rem;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    width: 3.5ch; 
    outline: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: border-bottom 0.3s ease;
}

#slide-input:focus {
    border-bottom: 1px solid #fff;
}

/* Hide the native up/down arrows inside the number input */
#slide-input::-webkit-outer-spin-button,
#slide-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#slide-input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}