:root {
    --bbn-primary: rgb(179, 0, 0);
    --bbn-primary-initial-pulse: rgba(128, 0, 0, 0.6);
    --bbn-primary-active-pulse: rgba(128, 0, 0, 0.9);
    --bbn-primary-shadow: rgba(128, 0, 0, 0.7);
    --bbn-secondary: navy;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;

    /* Ensure smooth scrolling when clicking category links */
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;

    display: block;
}

code {
    color: lime !important;
}

.code {
    color: lime !important;
}

.ta-tall {
    min-height: 125px !important;
}

.ta-json {
    min-height: 175px !important;
}

#htmlPreview {
    /* Match the look of your actual rules pages */
    line-height: 1.6;
    background-color: #1a1a1a; /* Your site's background */
}

/* Ensure images in preview don't break the layout */
#htmlPreview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
}

#main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.navbar {
    padding-top: 3px;
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 0px;
}

/*main {
    padding-top: 85px;
}*/

a {
    text-decoration: none;
    color: var(--bs-white);
    cursor: pointer;

}

a:hover {
    text-decoration: wavy;
    color: var(--bs-secondary);
}

/* Index */
/* Style to create decorative box underneath navigation for index */
.headerBox {
    width: 95%;
    height: 5vh;
    position: relative;
    z-index: 0;
    border-radius: 25px;
    margin-bottom: 100px;
}

/* Style to position logo under navigation for index */
.mainLogo {
    position: absolute;
    
    /* Horizontal Centering */
    left: 50%;
    transform: translateX(-50%);
    
    /* Vertical Floating */
    top: -80px;
    width: 238px;
    height: 200x;
    z-index: 10; /* Ensure it stays above the box borders */
}

.rule-title {
    font-size: large;
    font-weight: bold;
}

.category-title {
    font-size: x-large;
    font-weight: bold;
}

.sub-rule-container {
    margin-left: 0.2rem;
}

.edit-term {
    right: 25px !important;
}

.del-term {
    right: 50px !important;
}

ul.dashed-list {
    list-style: none; /* Removes the default circle/square */
    padding-left: 1rem; /* Ensures there is space for your custom dash */
}

li.dashed-item::before {
    content: "-"; /* The dash character */
    font-weight: bold;
    display: inline-block; 
    width: 1em; /* Space between the dash and the text */
    margin-left: -1em; /* Positions the dash in the padding area */
}

/* Desktop: */
@media (min-width: 550px) {
    .mainLogo {
        width: 238px;
        height: 200px;
        top: -80px;
    }

    .navbar {
        padding-top: 7px;
        padding-left: 7px;
        padding-right: 7px;
        padding-bottom: 0px;
    }

    .inf-form-container {
        width: 90%;
    }

    .sub-item-container {
        margin-left: 2rem;
    }

    .map-frame {
        width: 600px;
        height: 450px;
    }

    .cohort-sheet {
        width: 855px;
        height: 364px;
    }
}

.cohort-sheet {
    width: 342px;
    height: 146px;
}

.bg-obsidian {
    background-color: #0d0d0d;
}

/* Primary style color classes */
.bbn-text-primary {
    color: var(--bbn-primary);
}

.bg-bbn-primary {
    background-color: var(--bbn-primary);
}

.border-bbn-primary {
    border: 2px solid var(--bbn-primary);
}

.text-bbn-primary {
    color: var(--bbn-primary) !important;
}

.btn-bbn-primary {
    background-color: var(--bbn-primary);
    color: white;
}

.btn-bbn-primary:hover {
    border-color: var(--bbn-primary);
    color: white;
}

.btn-outline-bbn-primary {
    border-color: var(--bbn-primary);
    color: white;
}

.btn-outline-bbn-primary:hover {
    background-color: var(--bbn-primary);
    color: white;
}

.border-side-bbn-primary {
    border-left: 2px solid var(--bbn-primary);
    border-right: 2px solid var(--bbn-primary);
}

.border-bottom-bbn-primary {
    border-bottom: 4px solid var(--bbn-primary) !important;
}

.border-glow-bbn-primary {
    border: 4px solid var(--bbn-highlight) !important;
    /* h-offset v-offset blur spread color */
    box-shadow: 0 4px 10px -2px var(--bbn-primary-shadow);
    position: relative;
    z-index: 1;
}

/* Add a subtle pulse to the glow */
.border-glow-bbn-primary.pulse {
    animation: primaryPulse 2s infinite ease-in-out;
}

@keyframes primaryPulse {
    0% { box-shadow: 0 4px 10px -2px var(--bbn-primary-zero-pulse); }
    50% { box-shadow: 0 4px 15px 0px var(--bbn-primary-active-pulse); }
    100% { box-shadow: 0 4px 10px -2px var(--bbn-primary-initial-pulse); }
}

/* Secondary style color classes */
.bbn-text-secondary {
    color: var(--bbn-secondary);
}

.bg-bbn-secondary {
    background-color: var(--bbn-secondary);
}

.border-bbn-secondary {
    border: 2px solid var(--bbn-secondary);
}

.text-bbn-secondary {
    color: var(--bbn-secondary) !important;
}

.border-side-bbn-secondary {
    border-left: 2px solid var(--bbn-secondary);
    border-right: 2px solid var(--bbn-secondary);
}

.btn-bbn-secondary {
    background-color: var(--bbn-secondary);
    color: white;
}

.btn-bbn-secondary:hover {
    border-color: var(--bbn-secondary);
    color: white;
}

.btn-outline-bbn-secondary {
    border-color: var(--bbn-secondary);
    color: white;
}

.btn-outline-bbn-secondary:hover {
    background-color: var(--bbn-secondary);
    color: white;
}

#btn-back-to-top {
    background-color: var(--bbn-primary) !important;
    color: white;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, visibility 0.5s ease;

    /* Centering Logic */
    display: none;
    justify-content: center;
    align-items: center;

    /* Start hidden */
    opacity: 0;
    visibility: hidden;
}

#btn-back-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#btn-back-to-top.show:hover {
    background-color: var(--bbn-secondary) !important;
}

/* Rules pages iFrame size management for responsive display */
.doc-embed {
    width: 100%;
    height: 100vh;
}

/* Schedule page address */
#location-address {
    text-align: center;
}

/* Map embed */
.map-frame {
    width: "100%";
    height: "240px";
}

.search-highlight {
    background-color: var(--bbn-primary);
    color: white;
}
/* End map embed */

/* Style for field descripton on forms  */
.field-description {
    padding: 10px 5px 10px 15px;
}

/* --- Modifies Bootstrap floating-label functionality --- */
.form-floating > label {
    transition: opacity .15s ease-in-out, transform .15s ease-in-out, color .15s ease-in-out;
    transform: translateX(0.75rem);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.75rem);
    font-weight: 700;
}
/* --- End modification of Bootstrap floating-label functionality --- */