/* Style the list */
ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    background-color: #eee;
}

/* Display list items side by side */
ul.breadcrumb li {
    display: inline;
    font-size: 18px;
}

/* Add a slash symbol (/) before/behind each list item */
ul.breadcrumb li+li:before {
    padding: 8px;
    color: black;
    content: "/\00a0";
}

/* Add a color to all links inside the list */
ul.breadcrumb li a {
    color: #0275d8;
    text-decoration: none;
}

/* Add a color on mouse-over */
ul.breadcrumb li a:hover {
    color: #01447e;
    text-decoration: underline;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    /* This maintains the aspect ratio */
    display: block;
    /* Helps with layout issues */
}

.spacer {
    margin-bottom: 110px;
    border: 1px solid black;
}

.quick-links-section ul {
    list-style-type: none;
    /* Removes default bullet points */
    display: flex;
    padding: 0;
    margin: 10;
    overflow-x: auto;
}

.quick-links-section li a {
    display: block;
    /* Makes the entire link clickable */
    padding: 5px 5px;
    text-decoration: wavy;
    /* Removes default underlines */
    color: #007bff;
    /* Example link color */
}

.quick-links-section li a:hover {
    text-decoration: underline;
    /* Adds underline on hover */
}


.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.result {
    margin-top: 0.6em;
    font-weight: bold;
    font-size: small;
}

.not-long-li {
    overflow-wrap: break-word;
    /* Ensures long words break and wrap */
    margin-bottom: 5px;
    max-width: 800px;
}

#flashcard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    overflow-y: auto;
}

#flashcard-container-for-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    overflow-y: auto;
}

.card {
    width: 250px;
    height: 150px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-front-link,
.card-back-link,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: x-small;
    background: white;
}

.card-front {
    font-size: large;
}

.card-back {
    background: #ffe0b3;
    transform: rotateY(180deg);
}

.card-back-link {
    font-size: medium;
}

.card-front-link {
    font-size: large;
}

.card-back-link {
    background: #ffe0b3;
    transform: rotateY(180deg);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.scrollableDiv {
    height: 400px;
    /* Set a fixed height */
    overflow-y: auto;
    overflow-x: auto;
    /* Enable vertical scrolling */
    border: 1px beige #ccc;
    /* Optional: Add a border for better visibility */
    padding: 10px;
    /* Optional: Add padding for better spacing */
}

.event {
    margin: 8px 0;
    padding: 6px;
    border-left: 4px solid #3498db;
}

.event strong {
    display: block;
}

.month {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
}

.month h2 {
    margin-top: 0;
    font-size: 1.2em;
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* 16:9 aspect ratio (height divided by width: 9 / 16 = 0.5625) */
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quick-links-container {
    width: 200px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: sans-serif;
}

.quick-links-title {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

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

.quick-links-list li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.quick-links-list li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.calc-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.info-text {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 5px;
    line-height: 1.3;
}



#results {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
    background: #f9f9f9;
    border-left: 4px solid #27ae60;
    font-size: 0.95rem;
}

.tax-val {
    font-size: 1.1rem;
    color: #e74c3c;
    font-weight: bold;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: green;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: antiquewhite;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.blink {
    animation: blinker 1s linear infinite;
    color: red;
    /* Example color */
    font-family: sans-serif;
    /* Example font */
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.statement {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.total {
    font-weight: bold;
    border-top: 1px solid #333;
    margin-top: 5px;
}


.positive {
    color: green;
}

.negative {
    color: red;
}

/* 1. Sticky Sidebar Styling */
.toc-sidebar {
    flex: 0 0 280px;
}

.toc {
    position: sticky;
    top: 2rem;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 2. List & Counter Reset */
.toc ol {
    list-style: none;
    padding: 0;
    counter-reset: toc-count;
}

.toc li {
    counter-increment: toc-count;
    margin: 0.5rem 0;
}

/* 3. Dotted Leaders using Flexbox */
.toc-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    color: #1f2937;
}

.toc-link::before {
    content: counter(toc-count) ". ";
    font-weight: bold;
    margin-right: 0.5rem;
    color: var(--primary);
}

.toc-filler {
    flex-grow: 1;
    border-bottom: 1px dotted #9ca3af;
    margin: 0 0.5rem;
}