:root {
    --theme-first-color: #363945;
    --theme-second-color: #EFE1CE;
}

.noOverflow {
    overflow: hidden;
}
body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--theme-first-color);
}
* {
    box-sizing: border-box;
}
:where(h1) {
    margin-block: 0.67em;
    font-size: 2em;
}
  
.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.quiz-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px #36394554;
    max-width: 800px;
    flex-basis: 800px;
}

.header-section {
    text-align: center;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.header-section button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--theme-second-color);
    color: var(--theme-first-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    fill: var(--theme-first-color);
}
.header-section button:hover {
    background-color: var(--theme-first-color);
    color: var(--theme-second-color);
}

.header-section,
.question-section,
.choices-section,
.navigation-section,
.feedback-section {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.header-section {
    padding-top: 0;
}
.choices-section {
    min-height: 200px;
}

#question-text {
    font-weight: 500;
    min-height: 100px;
    font-size: 1.1em;
    border-radius: 5px;
    margin: 0;
}
.loading {
    background: linear-gradient(90deg, #EFE1CE24, var(--theme-second-color), #EFE1CE24);
    background-size: 200%;
    animation: loading infinite ease 2s;
}
@keyframes loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

.choices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.choices-list li {
    padding: 5px;
}

.choice-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, outline 0.3s ease;
    outline: none;
    border: none;
    min-height: 35px;
    font-size: 1em;
    text-decoration: none;
    color: var(--theme-first-color);
}

.choice-button.choice-active:hover {
    /* outline: 2px solid var(--theme-first-color); */
    cursor: pointer;
    scale: 1.01;
    transform-origin: center;
    background-color: var(--theme-second-color);
}
.choice-button.choice-active.selected:hover {
    outline: none;
    cursor: pointer;
    background-color: var(--theme-first-color);
    scale: 1.01;
}

.choice-button.choice-inactive {
    opacity: 0.1;
}

/* Optional: Style for when a choice is selected (you'll likely add a 'selected' class with JavaScript) */
.choice-button.active.selected,
.choice-button.selected {
    background-color: var(--theme-first-color);
    color: white;
    border-color: var(--theme-second-color);
    scale: 1.01;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.noDisplay {
    display: none;
}
.hidden {
    visibility: hidden;
}
.blur {
    filter: blur(5px);
}

.navigation-section {
    display: flex;
    flex-direction: column;
    position: relative;
}
.flex-space-between {
    display: flex;
    justify-content: space-between;
}
#submit-buttons {
    display: flex;
    justify-content: center;
}

.navigation-section button,
.bloom-section button,
.feedback-section button,
.setup-section button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--theme-second-color);
    color: var(--theme-first-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease,
        scale 0.3s ease; /* Added scale transition */
    fill: var(--theme-first-color);
}
.topic-section button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: var(--theme-first-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease,
        scale 0.3s ease; /* Added scale transition */
}
.topic-section button.close-topic-button {
    padding: 10px 15px;
    background-color: var(--theme-second-color);
}
.topic-section button.close-topic-button:hover {
    background-color: var(--theme-first-color);
    color: var(--theme-second-color);
    outline: none;
}

.navigation-section button:hover,
.bloom-section button:hover,
.feedback-section button:hover,
.header-section button:hover,
.setup-section button:hover {
    background-color: var(--theme-first-color);
    color: var(--theme-second-color);
    opacity: 1 !important;
    fill: var(--theme-second-color);
    outline: none;
}

.feedback-section {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    border-bottom: none;
    padding-bottom: 0;
}
#feedback-correct > strong {
    color: #00c400;
}
#feedback-incorrect > strong {
    color: #d00000;
}
#feedback-text {
    padding: 0 5px;
}
.feedback-section button {
    align-self: flex-end;
    opacity: 0.3;
}
.new-tab {
    height: 15px;
    width: 30px;
    vertical-align: middle;
}

.flag-button {
    scale: 0.6;
    transform-origin: center right;
}
.flag-button:hover {
    scale: 1;
}


/* Topic Selection Section */
.topic-selection-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.topic-list {
    list-style: none;
    padding: 0;
}

.topic-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.topic-list input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.topic-list label {
    font-size: 1em;
    cursor: pointer;
}

.topic-container,
.bloom-container,
.setup-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #36394587;
}

.topic-section,
.bloom-section,
.setup-section {
    max-width: 700px;
    background-color: white;
    overflow: hidden;
    height: 95%;
    border-radius: 8px;
    padding: 10px 5px;
    padding: 20px;;
    box-shadow: 0px 0px 5px #36394554;
    display: flex;
    flex-direction: column;
    flex-basis: 700px;
    margin: 0 10px;
}

.topic-title,
.bloom-title,
.setup-title {
    text-align: center;
}
.tab-topic-selection {
    display: flex;
    justify-content: space-around;
}
.tab-topic-selection > h3 {
    padding: 10px;
    margin: 0;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}
.tab-active {
    opacity: 1;
    background-color: var(--theme-first-color);
    color: var(--theme-second-color);
    outline: 5px solid var(--theme-first-color);
    transition: all 0.3s ease;
}
.tab-inactive {
    opacity: 0.5;
    outline: 3px solid var(--theme-first-color);
}
.tab-inactive:hover {
    opacity: 1;
    outline: 5px solid var(--theme-first-color);
    background-color: var(--theme-second-color);
}

.topic-descriptions,
.bloom-descriptions,
.setup-descriptions {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    margin-bottom: 10px;
    border-top: 5px solid var(--theme-first-color);
    border-bottom: 5px solid var(--theme-first-color);
}
.topic-descriptions li,
.topic-descriptions li > span {
    padding: 5px;
    border-radius: 5px;
}
.topic-SubArea .flex > ul {
    padding: 0;
}
.topic-SubArea li {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.topic-descriptions ul li,
.topic-BloomLevels div,
.adaptive-setup-choices div {
    list-style: none;
    font-weight: 500;
}
.topic-ContentArea {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-bottom: 3px solid var(--theme-first-color);
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 10px white;
    /* box-shadow: 0 10px white,
        0px 10px 20px -20px var(--theme-first-color); */
    padding-top: 20px;
}
.topic-BloomLevels div,
.adaptive-setup-choices div {
    display: flex;
    justify-content: center;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    min-width: 80px;
    flex-wrap: wrap;
}
.topic-Bloom {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-bottom: 3px solid var(--theme-first-color);
    background-color: white;
    box-shadow: 0 10px white;
    padding: 20px 0 5px 0;
}
.adaptive-setup-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-bottom: 3px solid var(--theme-first-color);
    background-color: white;
    box-shadow: 0 10px white;
    padding: 20px 0 5px 0;
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 10px white;
    box-shadow: 0 10px white, 0px 10px 20px -20px var(--theme-first-color);
}
.adaptive-setup-choices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 5px;;
}
.adaptive-setup-header h3,
.topic-Bloom h3,
.topic-ContentArea h3 {
    justify-self: flex-start;
    margin: 0;
}
.topic-BloomLevels,
.adaptive-setup-info {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
}
.topic-BloomLevels {
    flex-direction: row;
    padding: 20px 0 40px 0;
}
.adaptive-setup-info {
    flex-direction: column;
    margin: 10px 10px 20px 10px;
    padding: 10px 0 20px 10px;
    border-left: 3px solid var(--theme-second-color);
    border-bottom: 3px solid var(--theme-second-color);
    border-radius: 0 10px;
    width: 98%;
}
.topic-button-select-all,
.topic-button-deselect-all {
    margin-bottom: 5px;
    margin-top: 5px;
    font-weight: bold;
}
.topic-section button {
    padding: 5px;
}
.topic-SubArea {
    display: flex;
    flex-direction: column;
}
.topic-SubArea-lists {
    border-left: 3px solid var(--theme-second-color);
    border-bottom: 3px solid var(--theme-second-color);
    margin: 0 0 10px 20px;
    padding: 5px 20px 5px 5px;
    border-radius: 0 10px;
}
.topic-SubArea-lists > ul {
    padding: 0;
    margin: 0;
    width: 100%;
}
.topic-SubArea .flex-row div {
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}
.active,
.topic-ContentArea button.active {
    background-color: var(--theme-second-color);
    color: var(--theme-first-color);
    outline: 2px solid var(--theme-second-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: small;
}
.inactive {
    background-color: white;
    color: var(--theme-first-color);
    outline: 2px solid var(--theme-second-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: small;
    font-weight: 500;
}

.adaptive-setup-choices .active:hover,
.adaptive-setup-choices .inactive:hover,
.topic-section button:hover,
.topic-SubArea .active:hover,
.topic-SubArea .inactive:hover {
    outline: 4px solid var(--theme-first-color);
}

.topic-button-select-all {
    margin-left: auto;
}
.topic-footer,
.bloom-footer,
.setup-footer {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
dl {
    margin-top: 0;
    margin-bottom: 20px;
}
dt {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 20px 0 10px 10px;
    margin: 0;
    position: sticky;
    top: 0;
    background-color: white;
    border-radius: 10px;
}
dt.bloom-active {
    background-color: var(--theme-second-color);;
}
dd {
    padding-bottom: 20px;
    padding-left: 30px;
    margin: 0;
    margin-left: 10px;
    border-left: 3px solid var(--theme-second-color);
    border-bottom: 3px solid var(--theme-second-color);
    border-radius: 0 10px;
}
dd > p {
    margin: 0;
    padding: 1em 0;
}
ul li {
    padding: 5px 0;
}

.wide {
    display: inline;
}
.narrow {
    display: none;
}
/* Responsive adjustments */
@media (max-width: 820px) {
    .quiz-container {
        width: 100%;
        margin: 10px;
        padding: 20px;
    }

    /* .navigation-section {
        flex-direction: column;
        align-items: stretch;
    } */

    .navigation-section button {
        margin-bottom: 5px;
    }
    .topic-section,
    .bloom-section,
    .setup-section {
        padding: 10px 5px;
    }
    .wide {
        display: none;
    }
    .narrow {
        display: inline;
    }
}