body {
    background-color: var(--primary-light);
}

#main {
    position: relative;
    padding: 10px 100px;
    margin-top: -30px;
}
h1 {
    text-align: left;
    padding-left: 20px;
}


/* path */
p#path {
    font-size: 18px;
    font-family: var(--font-text-secondary);
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-dark);
}
span.orange {
    color: var(--accent);
    padding: 0 10px;
}


/* quiz mode */
#quiz-mode, #chapter-selector {
    display: inline-block;
    position: absolute;
    right: 100px;
    top: 70px;
    width: fit-content;
}
#quiz-mode p, #chapter-selector p {
    font-family: var(--font-text-secondary);
    font-weight: 400;
    padding: 10px 15px;
}
#quiz-mode-selector {
    display: flex;
    flex-flow: row nowrap;
}
#quiz-mode-selector div {
    padding: 10px 40px;
    border-radius: 30px;
    background-color: var(--primary-saturated);
    color: var(--text-light);
    font-family: var(--font-text-secondary);
    font-weight: 400;
    opacity: 0.4;
    cursor: pointer;
}
#quiz-mode-selector div:first-child {
    margin-right: -30px;
}
#quiz-mode-selector div.active {
    opacity: 1;
    z-index: 1;
}
#quiz-mode-selector div:hover {
    opacity: 0.7;
}
#quiz-mode-selector div.active:hover {
    opacity: 1;
}
/* chapter selector */
#chapter-selector {
    left: 120px;
}
#chapter-select {
    width: 250px;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    background-color: var(--primary-saturated);
    color: var(--text-light);
    font-family: var(--font-text-secondary);
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    transition: background-color 0.3s ease;
}
#chapter-select:hover {
    background-color: var(--accent-light);
}
#chapter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-light);
}
#chapter-select option {
    background-color: var(--bg);
    color: var(--text-dark);
    font-weight: 400;
}

/* quiz-container */
#quiz-container {
    display: grid;
    grid-template-columns: 25% 60% 1fr;
    margin-top: 100px;
    margin-bottom: 100px;
}
#quiz-container img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}


/* quiz */
#quiz {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 330px;
    text-align: center;
    border-radius: 30px;
    padding: 50px 50px 0 50px;
}
#quiz p {
    font-family: var(--font-text-secondary);
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg);
    border-radius: 30px;
    margin-bottom: 20px;
    padding: 50px 40px;
}
#quiz p#question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}
/* timebar */
#time-bar {
    height: 10px;
    min-height: 10px;
    width: 100%;
    background-color: var(--grey-blue);
    border-radius: 30px;
    overflow: hidden;
}
#time-consumed {
    width: 0;
    height: 100%;
    background-color: var(--accent-light);
    transition: width 0.1s;
}
/* quiz answer */
#quiz #answer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
}
/* direct answer */
#quiz #answer #direct {
    width: 30%;
}
#quiz #answer input {
    outline: none;
    border: none;
    border-radius: 30px;
    background-color: #eeeeee;
    color: var(--text-dark);
    padding: 15px 30px;
    margin-right: 20px;
    margin-top: 20px;
    font-family: var(--font-text-secondary);
    font-weight: 400;
    font-size: 16px;
    text-align: center;
}
#quiz input::placeholder {
    color: #a6a6a6;
    opacity: 0.8;
}
/* mcq answer */
#quiz #answer #mcq {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
    display: none;
}
#quiz #answer #mcq .choice {
    width: 80%;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    background-color: #eeeeee;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 16px;
    font-family: var(--font-text-secondary);
    cursor: pointer;
}
#quiz #answer #mcq .choice:hover {
    background-color: var(--accent-light);
    color: var(--text-light);
}


/* next */
button#next {
    display: none;
    position: absolute;
    right: 100px;
    top: 75%;
    padding: 10px 40px;
    border-radius: 30px;
    border: none;
    background-color: var(--accent-light);
    color: var(--text-light);
    font-weight: 400;
    font-size: 16px;
    font-family: var(--font-text-secondary);
    cursor: pointer;
}
button#next:hover {
    background-color: var(--accent);
}


/* case: no quizzes */
#no-quizzes-error {
    display: none;
    text-align: center;
    margin-top: 100px;
}