html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* Logo Animation Styles */
#logo-animation-container {
    position: relative;
    display: inline-block;
    /* Allow container to size based on content */
    vertical-align: middle;
    /* Align with surrounding text */
}



.logo-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    z-index: 10;
}

.grid-cell {
    background-color: #ffffff;
    /* Match the navbar background */
    opacity: 1;
    transition: opacity 1s ease-in-out;
    /* Animation transition */
}

/* Show dropdown on hover */
.nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
    /* remove the gap so it doesn't close */
}

/* --- Intro Popup Styles --- */
#intro-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Ensure it's on top of everything */
    opacity: 0;
    /* Start hidden */
    visibility: hidden;
    /* Start hidden */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#intro-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

#intro-popup-content {
    background-color: transparent !important;
    /* Black background for the popup content */
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    /* Neon glow effect */
    position: relative;
    width: fit-content;
    max-width: 90vw;
    height: auto !important;
    overflow: hidden;
    /* Hide overflow for marquee */
    text-align: center;
    transform: scale(0.7);
    /* Start smaller for animation */
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
}

#intro-popup-overlay.show #intro-popup-content {
    transform: scale(1);
}

#intro-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #0ff;
    /* Neon color */
    cursor: pointer;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff;
    transition: text-shadow 0.3s ease;
    z-index: 10;
    /* Ensure close button is on top */
}

#intro-popup-close:hover {
    text-shadow: 0 0 8px #0ff, 0 0 15px #0ff, 0 0 25px #0ff;
}

/* Neon Marquee Container */
.neon-marquee-container {
    white-space: nowrap;
    /* Keep content on one line */
    overflow: hidden;
    /* Hide anything outside the container */
    margin: 0 !important;
    padding: 10px 0;
    background-color: #1a1a1a;
    /* Darker background for the marquee strip */
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    /* Subtle glow */
    width: 0;
    /* Force width to be ignored for parent calculation */
    min-width: 100%;
    /* But fill the available space */
}

/* Neon Marquee Content */
.neon-marquee-content {
    display: inline-block;
    /* Make content scrollable */
    animation: marquee 15s linear infinite;
    /* Marquee animation */
    font-family: 'Arial Black', Gadget, sans-serif;
    /* A bold font */
    font-size: 2em;
    color: #fff;
    /* White base color for neon */
    text-shadow:
        0 0 5px #0fa,
        /* Greenish neon */
        0 0 10px #0fa,
        0 0 20px #0fa,
        0 0 40px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa,
        0 0 100px #0fa,
        0 0 150px #0fa;
    padding: 0 20px;
    /* Padding to ensure text is visible at start/end */
}

/* Marquee Animation Keyframes */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Optional Image in Popup */
.popup-image {
    max-width: 100%;
    max-height: 80vh;
    /* Leave space for marquee and padding */
    width: auto;
    height: auto;
    object-fit: cover !important;
    /* Ensure image is not distorted */
    margin-top: 0 !important;
    border-radius: 0;
}