/* 
    Styles manually added by me (with a little help from ai)
*/

.logo-container {
    padding-top: 24px;
}

.back-to-top {
    float: right;
}

#appendix {
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #ccc; /* A subtle separator from the main content */
}

#appendix h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}


/* Styling for the glossary section */
#glossary {
    margin-bottom: 30px;
}

#glossary h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #555;
}

/* Styling for the definition list */
#glossary dl {
    display: grid;  /* Use CSS Grid for layout */
    grid-template-columns: minmax(200px, 30%) 1fr; /* Term takes up to 30%, definition the rest */
    gap: 10px 20px; /* Gap between rows and columns */
}

#glossary dt {
    font-weight: bold;
    /* color: #007bff; A distinctive color for terms (adjust as needed) */
    grid-column: 1; /* Place terms in the first column */
}

#glossary dd {
    grid-column: 2; /* Place definitions in the second column */
    margin: 0;  /* Remove default margins */
    padding-left: 0; /* Remove default padding */
    margin-bottom: 10px; /* Add spacing between definitions */
    line-height: 1.6; /* Improve readability */
}




/* Overall FAQ Section Styling */
#faq {
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #eee; /* A subtle separator */
}

#faq h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    text-align: center; /* Center the FAQ title */
}


/* Individual Question/Answer Group Styling */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Ensure content doesn't overflow the rounded corners */
}

/* Question Styling */
.faq-question {
    background-color: #f8f9fa; /* Light background for the question */
    padding: 15px;
    cursor: pointer; /* Indicate it's clickable */
    position: relative; /* For the expand/collapse icon */
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #555;
}


/* Expand/Collapse Icon */
.faq-question::after {
    content: '\25BC'; /* Down arrow Unicode character */
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #888;
    transition: transform 0.2s ease-in-out; /* Smooth animation */
}

/* Rotate the icon when the answer is visible (use JavaScript to add/remove 'open' class) */
.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(-180deg); /* Up arrow */
}


/* Answer Styling (Initially Hidden) */
.faq-answer {
    padding: 15px;
    display: none; /* Hide initially */
    background-color: #fff;
    border-top: 1px solid #ddd; /* Separator between question and answer */
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}


/* Make Answer Visible When FAQ Item Has 'open' Class */
.faq-item.open .faq-answer {
    display: block;
}


/* Optional: Add a subtle hover effect to questions */
.faq-question:hover {
    background-color: #f1f3f5;
}

/* Basic Table of Contents Styling */
#contents {
    background-color: #f8f9fa; /* Light background */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px; /* Space below the TOC */
    font-size: 1.2em;  /* Increases font size by 20% */
}

#contents h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}


/* Unordered List Styling (if not using a CSS framework's "list-unstyled") */
#contents ul {
    list-style: none; /* Remove bullets */
    padding-left: 0; /* Remove default padding */
}

/* List Item Styling */
#contents li {
    margin-bottom: 8px;
}

/* Link Styling */
#contents a {
    color: #007bff; /* Standard link color */
    text-decoration: none; /* Remove underline */
    transition: color 0.2s ease; /* Smooth transition for hover effect */
}

#contents a:hover {
    color: #0056b3; /* Darker color on hover */
    text-decoration: underline; /* Add underline on hover */
}


/* Styling for nested lists (if applicable) */
#contents ul ul {
    margin-left: 20px; /* Indent nested items */
}

#contents ul ul li {
    font-size: 0.95em; /* Slightly smaller font for sub-items */
}


/* Add a visual separator between top-level and sub-level items (optional) */

#contents ul li > ul {
  border-left: 2px solid #eee;
  padding-left: 15px;
}



/* Styling for strongly emphasized text (if used in links) */
#contents strong {
  font-weight: 600; /* Adjust as needed for your chosen font */
}

/* Add a class for active links (if you're using JavaScript to highlight the current section) */
#contents a.active {
    font-weight: bold;
    color: #0056b3; /* Highlight color for the active link */
}

/* Basic Tip Box Styling */
.tip-box {
    background-color: #e9ecef; /* Light gray background */
    border-left: 5px solid #007bff; /* Blue left border for emphasis */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Optional: Icon inside the tip box (requires including an icon font or SVG) */
/* Example using Font Awesome:  You'll need to include the Font Awesome CSS */
/*
.tip-box i {
    margin-right: 8px;
    color: #007bff;
}
*/

/* Styling for the title (optional) */
.tip-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #343a40; /* Dark gray title */
}

/* Styling for the content paragraphs */
.tip-box p {
    margin: 0; /* Remove default paragraph margins */
    line-height: 1.6;
    color: #495057;
}

/* Optional: Alternative styling - different color scheme */
/*
.tip-box.tip-box-alt {
    background-color: #fff3cd;
    border-left-color: #ffc107; /* Yellow border * /
}

.tip-box.tip-box-alt i {
    color: #ffc107;
}
*/




/* Responsiveness (adjust breakpoints as needed) */
@media (max-width: 768px) {
    #glossary dl {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
    }

    #glossary dt, #glossary dd {
        grid-column: 1; /* Both terms and definitions in the first column */
    }

    #glossary dt {
        margin-bottom: 5px; /* Add some spacing between term and definition */
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-question::after {
        font-size: 1em;
    }

    #contents {
        padding: 15px;
        margin-bottom: 15px;
    }

    #contents h2 {
        font-size: 1.3em;
    }

    .tip-box {
        padding: 12px;
    }

    .tip-box h3 {
        font-size: 1.2em;
    }

}

