/* --- EVERYTHING ABOVE THIS IS DESKTOP STYLE --- */
/* --- COMBINED MOBILE FIXES (Place at the very bottom) --- */
@media (max-width: 768px) {
    /* 1. Video Fix */
    .video-wrapper {
        width: 85vw !important;
        height: 60vh !important;
    }
    #splash-video {
        object-fit: cover;
    }
    #load-number {
        font-size: 2.5rem;
    }

/* NEW: Pushes the main text down to avoid the fixed navbar */
    .hero-content {
        margin-top: 80px; 
    }

    /* Fix for the cut-off header */
    .glitch {
        font-size: 10vw; 
        letter-spacing: 0px; 
        line-height: 1; 
        padding: 0 10px; 
    }
    #countdown {
        font-size: 1.6rem !important;
        margin-top: 20px;
        letter-spacing: 2px;
        display: block;
    }
    .highlight-glow span {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* 3. Spine & Layout Fix */
    .narrow-swiper, 
    .guest-list-section .category-grid,
    .split-container,
    .menu-display-section .menuSwiper {
        width: 92% !important;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
/* 1. DO NOT HIDE the links, instead reposition them */
    .nav-links {
        display: flex !important; /* Bring them back */
        gap: 15px; /* Tighter gap for small screens */
        position: absolute;
        top: 60px; /* Moves them below the D18 logo */
        left: 50%;
        transform: translateX(-50%); /* Centers the menu */
        width: 100%;
        justify-content: center;
    }

    /* 2. Adjust the logo position so it doesn't overlap */
    .navbar {
        flex-direction: column; /* Stack logo and links vertically */
        padding: 15px 0;
        height: 100px;
        mix-blend-mode: normal; /* Better visibility on mobile */
        background: rgba(0, 0, 0, 0.8); /* Slight dark fade for readability */
        backdrop-filter: blur(5px);
    }

    .nav-logo {
        margin-bottom: 5px;
        font-size: 1.2rem;
    }

    /* 3. Make the nav items smaller so they fit on one line */
    .nav-item {
        font-size: 0.6rem !important; /* Tiny, elegant text */
        letter-spacing: 1.5px;
        padding: 5px;
    }
/* Move RSVP box to the bottom left */
    #floating-rsvp {
        top: auto; /* Removes the top positioning from desktop */
        bottom: 20px; 
        left: 20px;
        width: calc(50% - 25px); /* Takes up just under half the screen */
    }

    /* Move Chat box to the bottom right */
    #floating-chat {
        bottom: 20px;
        right: 20px;
        width: calc(50% - 25px); /* Takes up just under half the screen */
    }

    /* Shrink the header text slightly so it fits side-by-side nicely */
    .rsvp-header, .chat-header {
        font-size: 0.65rem;
        padding: 12px 10px;
        letter-spacing: 1px;
    }

    /* When a box is OPENED, make it stretch across the entire screen */
    #floating-rsvp:not(.rsvp-collapsed),
    #floating-chat:not(.chat-collapsed) {
        width: calc(100% - 40px);
        z-index: 9999; /* Brings the opened box above everything else */
    }	
/* --- ENLARGE TOGGLE ICONS (CHAT & RSVP) --- */
#chat-toggle-icon, 
#rsvp-toggle-icon {
    font-size: 1.5rem;      /* Makes the + and - much larger */
    line-height: 0.5;       /* Prevents the large icon from making the header too tall */
    padding: 0 5px;         /* Adds extra invisible clickable space around the icon */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Optional: Adds a tiny pop effect when hovered */
#chat-toggle-icon:hover, 
#rsvp-toggle-icon:hover {
    transform: scale(1.2);
}	
}
.section-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
	
.input-row {
        flex-direction: column;
    }	
/* Guest List Grid Layout */
.guest-list-header, .guest-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Name gets more space */
    text-align: center;
    border-bottom: 1px solid rgba(163, 29, 29, 0.2);
    padding: 10px 0;
    align-items: center;
}

.guest-list-header {
    font-weight: bold;
    color: #a31d1d;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.guest-item {
    font-size: 0.9rem;
}

.guest-email {
    grid-column: 1 / span 3; /* Email spans the whole row below the columns */
    font-size: 0.75rem;
    color: #777;
    text-align: left;
    padding-left: 5px;
    margin-top: -5px;
    margin-bottom: 5px;
}

.status-check {
    color: green;
    font-weight: bold;
}

.status-x {
    color: #a31d1d;
    font-weight: bold;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .guest-list-header, .guest-item {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.75rem;
    }
}	