:root {
    --transition-speed: 0.3s;
    font-size: 1rem !important;
}

html {
    scroll-behavior: smooth;
}

summary{
    font-weight: 600;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}

/* Language */
.language-selector {
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 145px;
    margin-left: 15px;
}

/* Cookie Banner */
.cookies-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 0.5px solid var(--pico-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 300px;
    text-align: left;
    padding: 1rem;
    z-index: 1000;
}
  
.cookies-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

button#accept-button {
    padding: 0.5rem;
    width: 100%;
    font-size: 0.9rem;
}

/* Theme Switcher */
#themeSwitcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: transform var(--transition-speed) ease-in-out;
}

#themeSwitcher svg {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity var(--transition-speed) ease-in-out;
}

#themeSwitcher .sun {
    color: #181c25;
    opacity: 1;
}

#themeSwitcher .moon {
    opacity: 0;
}

[data-theme="dark"] #themeSwitcher .sun {
    opacity: 0;
}

[data-theme="dark"] #themeSwitcher .moon {
    opacity: 1;
}

/* Burger menu visibility */
#burgerMenu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
    color: var(--contrast);
}

/* Responsive Styles */
@media (max-width: 768px) {
    #burgerMenu {
        display: block;
    }

    #navItems {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack items vertically when visible */
        gap: 0; /* No extra space between items */
        background-color: var(--pico-form-element-background-color); /* Pico's light/dark background */
        color: var(--container-foreground); /* Text color based on the theme */
        border: 0.5px solid #ccc;
        padding: 0.3rem; /* Smaller padding for compactness */
        border-radius: 0.3rem;
        position: absolute; /* Overlay the nav menu */
        right: 1.2rem;
        top: 5rem; /* Position below the header */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for card effect */
        z-index: 100; /* Ensure it overlays other content */
        min-width: 175px; /* Enforce a minimum width */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth animation */
        opacity: 0; /* Start hidden */
        transform: translateY(-10px); /* Slide up when hidden */
    }

    #navItems.visible {
        display: flex; /* Show when burger is toggled */
        opacity: 1; /* Fully visible */
        transform: translateY(0); /* Reset slide-up effect */
    }

    /* Individual List Item Styles */
    #navItems li {
        text-align: left; /* Align text to the left */
        margin: 0.2rem; /* Remove any default margins */
        padding: 0.2rem; /* Remove extra padding for tighter layout */
        width: 100%; /* Ensure items fill the available width */
        display: flex;
        justify-content: flex-start; /* Ensure the links are aligned to the left */
    }

    #navItems li a {
        display: block;
        width: 100%;
        margin-left: 0.2rem;
        text-align: left;
        color: var(--contrast);
    }
}

/* ALERTS */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    text-align: center;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert button {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    float: right;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.alert-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.alert-list li {
    margin-bottom: 1rem;
}