html {
    font-size: 14px;
}

.h2, h2 {
    font-size: 1.75rem !important;
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 600px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* remove the gap so it doesn't close */
        right:0;
    }
}

.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 {
    margin-bottom: 60px;
}

.help-container #help-toggle {
    z-index: 100;
}


.help-container #help-content {
    margin-top: 1rem;
    max-width: 300px;
    background-color: var(--bs-body-bg);
    z-index: 101;
}

#apps-content {
    margin-top: 1rem;
    max-width: 300px;
    background-color: var(--bs-body-bg);
    z-index: 101;
}

.app-icon {
    width: 1.5em;
    fill: white;
}

.todocategory {
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

.handle {
    cursor: move;
}

.spiciness-indicator {
    position: absolute;
    font-size: 0.6rem;
    transform: translateY(-100%);
}
.strikethrough {
text-decoration: line-through;
}

.progress-00 {
    background: var(--bs-body-bg) !important;
}
.progress-10 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 10%, var(--bs-body-bg) 10%, var(--bs-body-bg) 100%) !important;
}
.progress-20 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 20%, var(--bs-body-bg) 20%, var(--bs-body-bg) 100%) !important;
}
.progress-30 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 30%, var(--bs-body-bg) 30%, var(--bs-body-bg) 100%) !important;
}
.progress-40 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 40%, var(--bs-body-bg) 40%, var(--bs-body-bg) 100%) !important;
}
.progress-50 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 50%, var(--bs-body-bg) 50%, var(--bs-body-bg) 100%) !important;
}
.progress-60 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 60%, var(--bs-body-bg) 60%, var(--bs-body-bg) 100%) !important;
}
.progress-70 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 70%, var(--bs-body-bg) 70%, var(--bs-body-bg) 100%) !important;
}
.progress-80 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 80%, var(--bs-body-bg) 80%, var(--bs-body-bg) 100%) !important;
}
.progress-90 {
    background: linear-gradient(to right, var(--bs-tertiary-color) 0%, var(--bs-tertiary-color) 90%, var(--bs-body-bg) 90%, var(--bs-body-bg) 100%) !important;
}
.progress-100 {
    background: var(--bs-tertiary-color) !important;
}
@media (max-width: 1200px) {
    /* Define the grid for the first unordered list in the collapsed menu */
    .navbar-collapse .navbar-nav:first-of-type {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Adjust number of columns as needed */
        gap: 10px; /* Gap between the grid items */
        padding: 10px;
    }

    /* Style each menu item in the first unordered list as a square button */
    .navbar-nav:first-of-type .nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        border-width: 2px !important;
        width: 100px; /* Adjust width for square size */
        height: 100px; /* Adjust height for square size */
    }

        .navbar-nav:first-of-type .nav-item .nav-link {
            display: flex; /* Use flexbox for centering */
            align-items: center; /* Center vertically */
            justify-content: center; /* Center horizontally */
            width: 100%;
            height: 100%;
            text-align: center;
            padding: 0;
        }

    /* Make the menu float downwards from the navbar */
    .navbar-collapse {
        position: absolute;
        right:10px;
        top: 100%; /* Align with the bottom of the navbar */
        width: 100%; /* Make sure the menu takes the full width of its container */
        max-width: 230px;
        background-color: var(--bs-body-bg); /* Set an appropriate background color */
        z-index: 1000; /* High z-index to ensure it's above other content */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better separation from content */
    }
}


/* Custom styling for the two-line language selector dropdown */
.choices__item--choice .language-native-bold {
    font-weight: bold;
    line-height: 1.2;
}

.choices__item--choice .language-english-italic {
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.2;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-overlay-content {
    background-color: var(--bs-body-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bs-border-color);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--bs-body-color);
}

.loading-longer-text {
    display: none;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    margin-top: 1rem;
}

.loading-cancel-btn {
    display: none;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1.5rem;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.loading-cancel-btn:hover {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
    opacity: 0.8;
    transform: translateY(-1px);
}

.loading-cancel-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .loading-overlay-content {
        padding: 1.5rem;
        max-width: 85%;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .loading-text {
        font-size: 1rem;
    }

    .loading-cancel-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
}