:root {
    --color1: #51ae54;
    --color2: #222628;
    --color3: #5a646e;
    --color4: #B6B7B8;
}

* {
    font-family: "Noto Sans", sans-serif;
    color: var(--color1);
}

code {
    font-family: "Noto Sans Mono", monospace;
    color: var(--color1);
}

.acc_head {
    color: var(--color1);
}

#nav {
    margin: auto;
    width: 30%;
}

body {
    background-color: var(--color2);
}

.accordionjs {
    margin: auto;
}

.accordionjs h4 {
    color: var(--color1);
}

#content {
    border: 1px solid var(--color1);
    max-width: 75%;
    height: 90vh;
    max-height: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: .4fr .6fr;
}

#hte-header {
    text-align: center;
    margin-top: 10px;
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#accordion-header {
    height: 50px;
    border: 1px solid var(--color1);
    padding: 10px;
    margin: 10px;
    margin-bottom: 0;
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 25px #72bd74;
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}

#lesson-area {
    border: 1px solid var(--color1);
    margin: 10px;
    margin-left: 0;
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

#lesson-area > * {
    margin-left: 10px;
    margin-right: 10px;
}

#lesson-name {
    margin-top: 10px;
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#markdown * {
    color: var(--color4);
    font-family: "Noto Serif", sans-serif;
}

.lesson-subheader {
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#lesson-content {
    color:var(--color1);
}

#course-accordion {
    grid-column-start: 1;
    grid-row-start: 2;
}

#quiz-area h5 {
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#quiz-area p {
    color: var(--color4);
}

#quiz-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#quiz-correct {
    margin: 0 10px 10px 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

button {
    width: 50%;
    transition: all 0.5s;
    background-color: #00000000;
    color: var(--color1);
    border: 1px solid var(--color1);
    padding: 10px 5px 10px 5px;
    margin: 10px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--color1), inset 0 0 10px var(--color1);
}

button:hover {
    letter-spacing: 1px;
    box-shadow: none;
    font-weight: bold;
}

button:hover::before {
    content: "[";
    margin-right: 10px;
}


button:hover::after {
    content: "]";
    margin-left: 10px;
}

button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid var(--color3);
    color: var(--color3);
}

button:disabled:hover {
    letter-spacing: normal;
    box-shadow: none;
    font-weight: normal;
}

button:disabled::before {
    content: "";
    margin-left: 0;
}

button:disabled::after {
    content: "";
    margin-right: 0;
}

hr {
    border: 1px solid var(--color3);
}

#quiz-question {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color1);
    padding: 10px;
}

#quiz-question label * {
    cursor: pointer;
}

#quiz-question label:not(:last-of-type) {
    margin-bottom: 5px;
}

#quiz-question label:last-of-type {
    margin-bottom: 10px;
}

#quiz-progress {
    position: absolute;
    top: 10px;
    left: 10px;
}

.fa-chevron-left,
.fa-arrow-right {
    color: #93cc94;
    filter: drop-shadow(0 0 5px #72bd74);
}

#quiz-question label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
}

#quiz-question label:has(input[type="radio"]:checked) span {
    font-weight: bold;
}

input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color1);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

input[type="radio"]:checked::after {
    content: "✓";
    position: absolute;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color1);
}

#quiz-results {
    border: 1px solid var(--color1);
    width: 75%;
    height: 90vh;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: .4fr .6fr;
}

#quiz-results h3 {
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#quiz-results h4 {
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#quiz-results #results-left-header {
    margin: 10px 0 0 10px;
    padding: 10px;
    border: 1px solid var(--color1);
    border-bottom: none;
}

#quiz-results #results-left {
    margin: 0 0 10px 10px;
    padding: 10px;
    border: 1px solid var(--color1);
    
}

#quiz-results #breakdown {
    margin: 0 10px 10px 10px;
    padding: 10px;
    border: 1px solid var(--color1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#quiz-results #results-right-header {
    margin: 10px 10px 0 10px;
    padding: 10px;  
    border: 1px solid var(--color1);
    border-bottom: none;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
}

.breakdown-item:not(:last-of-type) {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color1);
}

.breakdown-item * {
    font-family: "Noto Serif"
}

.breakdown-item h6 {
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

#quiz-restart {
    width: initial !important;
    padding: 10px 20px 10px 20px !important;
}

#ask-ai-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: initial !important;
    padding: 10px 20px 10px 20px !important;
}

#quiz-restart {
    margin-left: 0;
}

#summary h6 {
    font-family: "Sixtyfour", monospace;
    color: #93cc94;
    text-shadow: 0 0 40px #72bd74;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--color2);
}

::-webkit-scrollbar-thumb {
    background: #316832;
}

::-webkit-scrollbar-thumb:hover {
    background: #265127;
}