/* General List Styling */
.list, .chapter-list, .exercise-list, .small-list, .links, .specific-question-list {
    font-family: "Roboto Mono", monospace, sans-serif;
    list-style-type: none;
}

.list {
    font-size: 2rem;
    padding: 2rem;
    position: relative;
}

.chapter-list {
    font-size: 1.2rem;
    padding: 1rem;
    margin-left: 3rem;
}

.exercise-list, .small-list {
    font-size: 1rem;
    padding: 1rem;
}

.exercise-list {
    margin-left: 2rem;
}

.links {
    padding: 1rem;
    position: relative; /* Add this to ensure the tooltip is positioned relative to the .links element */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.specific-question-list {
    list-style: lower-alpha;
    padding-left: 20px;
}

/* Container Styling */
.container {
    display: flex;
    max-width: 500px;
    justify-content: flex-start;
}

.exercise-container {
    margin: 0 auto;
    max-width: 650px;
    font-family: "Roboto Mono", monospace, sans-serif;
}

.question-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

/* Question Styling */
.questions {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    margin-bottom: 10px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Question-Math Styling */
.questions-math {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover effect shared between both */
.questions:hover, .questions-math:hover {
    background-color: lightyellow;
}

/* Right Icon for Questions */
.right-icon {
    margin-left: auto;
    position: absolute;
    right: 10px;
}

/* Toggle Icon Styling */
.toggle-icon {
    margin-right: 10px;
    vertical-align: middle;
}

/* Styling for Hover Effects */
.question-list {
    padding: 0.4rem;
    transition: transform 0.2s ease;
}

.question-list:hover {
    transform: scale(1.1);
}

/* Highlight Solution when Question is Hovered */
.questions:hover + h4,
.questions:hover + h4 + .solution-code {
    background-color: lightyellow;
}

/* Specific Highlight for First Question */
.specific-question-list li:first-child:hover + h4,
.specific-question-list li:first-child:hover + h4 + .solution-code {
    background-color: lightyellow;
}

/* Solution Container */
.solution-container {
    display: none;
    margin-top: 10px;
    padding: 8px;
}

/* Solution Code Styling */
.solution-code {
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    background-color: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Miscellaneous Styling */
.qed {
    text-align: right;
}

.image-container {
    text-align: center;
}

.button-container {
    margin: 1rem;
}

.move-buttons {
    padding-top: 0.6rem;
}

.box {
    margin: 1rem;
}

/* Link Styling */
a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: transform 0.3s ease;
}

a:hover {
    color: rgb(0, 0, 0);
    background-color: rgb(202, 253, 255);
    text-decoration: underline;
}

/* Media Query for Smaller Screens */
@media (max-width: 600px) {
    .solution-code {
        font-size: 12px;
    }
}

.h2-title-container {
    top: 0; /* Stick to the top of the viewport */
    background-color: white; /* Ensure the background matches the page */
    padding: 1rem;
    z-index: 1000; /* Ensure it stays on top */
    text-align: center;
    font-family: "Roboto Mono", monospace, sans-serif;
    font-weight: 600;
    width: 50%; /* Adjust the width slightly larger than the content */
    max-width: 600px; /* Optional: limit the max width */
    margin: 0 auto; /* Center the element */
    border-bottom: 1px solid #ddd; /* Subtle border */
}


html {
    scroll-behavior: smooth;
}


