#courseSubcategoryPicker:disabled {
    opacity: 50%;
}

.language-type-choice-container {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.language-type-choice-container > button,
.language-type-choice-container > select {
    flex: 1;
}
.modal.hidden {
    display: none;
}

.language-list {
    height: 200px;
    overflow-y: auto;
}
#languageListContainer {
    height: 300px;
    width: 100%;
    display: flex;
}
#languageList {
    width: 100%;
    overflow: scroll;
    height: 100%;
}
#categoryTree {
    width: 100%;
    display: block;
    height: 300px;
    overflow: scroll;
}

.submit-quiz-container {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    height: fit-content;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
}

.submit-quiz-button {
    padding: 12px 24px;
    font-size: large;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}
.submit-quiz-button:disabled {
    filter: grayscale(1);
    opacity: 0.5;
}

.language-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
}

.language-item:hover {
    background-color: var(--secondary-color);
}


.course-note {
    display: flex;
    flex-direction: column;

    padding: 10px;
    background-color: #ffd7003b;
    border: 1px solid #c8c83d;
    color: #c8c83d;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}
.course-note > span {
    max-width: 90%;
    margin: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    width: 500px;
    max-width: 95%;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--background-color);
    color: var(--text-color);
}

.modal-close {
    float: right;
    color: var(--opposite-of-background-color);
    font-size: large;
    aspect-ratio: 1;
    border: none;
    background-color: transparent;
    margin-left: auto;
}

.category-modal {
    z-index: 999;
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.category-parent {
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.category-child {
    padding-left: 20px;
    cursor: pointer;
}

.category-child:hover,
.category-child.active {
    background: var(--secondary-color);
}

.category-parent {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.category-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.category-children {
    padding-left: 20px;
}

.category-children.collapsed {
    display: none;
}

.category-group.open .category-arrow {
    transform: rotate(90deg);
}

.category-child {
    padding: 4px 0;
    cursor: pointer;
}

.children.collapsed {
    display: none;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 44px;
    font-size: small;
    font-weight: bold;
    color: var(--text-color);
    color: gray;
}

.ad-note {
    display: flex;
    flex-direction: column;

    padding: 10px;
    background-color: #0062ff3b;
    border: 1px solid #3d85c8;
    color: #3d85c8;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}


.category-modal {
    z-index: 999;
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.category-parent {
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.category-child {
    padding-left: 20px;
    cursor: pointer;
}

.category-child:hover,
.category-child.active {
    background: #eee;
}

.category-parent {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.category-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.category-children {
    padding-left: 20px;
}

.category-children.collapsed {
    display: none;
}

.category-group.open .category-arrow {
    transform: rotate(90deg);
}

.category-child {
    padding: 4px 0;
    cursor: pointer;
}

.category-child:hover {
    background: var(--secondary-color);
}
.category-node {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    font-weight: bold;
    margin-bottom: 5px;
    align-items: center;
}
.selected-node {
    background: var(--site-theme-translucent);
    color: var(--site-theme-color);
}
.category-node.selected {
    background: var(--site-theme-translucent);
    color: var(--site-theme-color);
}
.category-node:hover {
    background-color: var(--secondary-color);
}
.selected-node:hover {
    background: var(--site-theme-translucent);
}
.category-node {
    padding: 0.5rem;
}
.category-node > svg {
    margin-left: auto;
}
.node-arrow {
    width: 20px;
    height: 20px;
}

.children.collapsed {
    display: none;
}