/* Bootstrap 5 overrides and specific quiz styling */

:root {
    --primary-color: #04AA6D;
    /* Keeping the W3Schools green as primary */
}

body {
    background-color: #f8f9fa;
}

/* Sidebar for course navigation */
.sidebar {
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    z-index: 100;
    padding: 48px 0 0;
    /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #fff;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Quiz Block Styling */
.quiz-container {
    background-color: #282A35;
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.quiz-container input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: inherit;
    font-size: 1.1em;
    width: 100px;
    outline: none;
    text-align: center;
}

.result-msg {
    margin-top: 10px;
    font-weight: bold;
}

.correct {
    color: #198754;
}

.wrong {
    color: #dc3545;
}

/* Navbar customization */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: #059862;
    border-color: #059862;
}

/* Ensure images within chapter content are responsive */
.chapter-body img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}