.flashcards-study-container {
    display: flex;
    position: relative;
}

.flashcards-study-container.collapsed .flashcards-panel {
    display: none;
}

.flashcards-panel {
    background: #f8f8f8;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: scroll;
    flex: 3;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.flashcards-panel-bottom {
    align-self: flex-end;
    width: 100%;
    margin-top: auto;
    text-align: center;
}

html[data-theme="dark"] .flashcards-panel {
    background: #15252d !important;
}

#flashcards-app #study-area {
    flex: 8;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    position: relative;
    overflow-y: scroll;
}

.card-box {
    width: 100%;
    max-width: 900px;
    padding: 1rem;
}

.card-box h3 {
    margin-top: 0;
}

.card-buttons {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card-buttons button {
    flex: 1 1 20%;
    min-width: 80px;
    padding: .5rem;
}

.panel-menu {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1000;
    cursor: pointer;
}

.settings-input {
    width: 100%;
    min-height: 4rem;
}

.flashcards-panel-bottom {
    margin-top: auto;
    text-align: center;
}

#flashcards-app button {
    box-shadow: none;
    border: none;
    font-size: 90%;
    border-radius: 5px;
    background: #d1d1d1;
    color: black;
    margin: 0 0.1rem;
}

html[data-theme="dark"] #flashcards-app button {
    background: #264250;
    color: white;
}

.flashcards-explore-container {
    display: flex;
    position: relative;
}

.flashcards-explore-container.collapsed .flashcards-panel {
    display: none;
}

#flashcards-app #viz-wrapper {
    flex: 8;
    height: 85vh;
    position: relative;
}

#flashcards-app #viz {
    width: 100%;
    height: 100%;
}


#flashcards-app #tooltip {
    position: absolute;
    pointer-events: none;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 3px;
    display: none;
    z-index: 10;
}

.panel-menu {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1000;
    cursor: pointer;
}

.settings-input {
    width: 100%;
    min-height: 4rem;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    color: var(--hl-color, #333);
    height: 85vh;
}

#flashcards-app {
    height: 85vh;
}

.loading-spinner {
    margin-bottom: 1rem;
    width: 50px;
    height: 50px;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

html[data-theme="dark"] .loading-spinner {
    border: 6px solid rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.5);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.selected-path {
    display: inline-block;
    padding: 2px 6px;
    margin-bottom: 10px;
    background: #ddd;
    border-radius: 4px;
}

html[data-theme="dark"] .selected-path {
    background-color: #000;
}

.fuzzy-suggestions {
    list-style: none;
    margin: 0;
    padding: 0.1rem;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    font-size: 75%;
    color: #2698ba;
}

html[data-theme="dark"] .fuzzy-suggestions {
    background: #000;
}

@media only screen and (max-width: 600px) {
    .flashcards-explore-container {
        flex-direction: column-reverse;
    }

    .flashcards-study-container {
        flex-direction: column-reverse;
    }

    #flashcards-app #viz {
        height: 66vh;
    }

    #study-area {
        min-height: 66vh;
    }
}
