html {
    height: 100%;
    font-family: "Crimson Text", serif;
    background: rgb(249 249 249);
    scrollbar-width: none;
}

body {     
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

a:link, a:visited, a:active {
    color: inherit;
}

input:focus {
    outline: none;
}

/* ----- LEFT PANEL - DECKS/TRANSCRIPTS ----- */


#panel-left {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 500;
    flex: 0 1 17%;
    background-color: #dce0e3;
    border-right: 1px solid #bcbcbc;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 15vh;
    box-sizing: border-box;
    transition: flex-basis .5s ease, padding .5s ease;
    will-change: transform;
}

#panel-left.is-collapsed {
  flex-basis: 0;
  padding: 0;
  pointer-events: none;
}


#panel-left-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

}

#panel-left-close-icon {
    width: 33px;
    height: 33px;
    stroke: #ababab;
    stroke-width: 2px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    transition: stroke-width 0.3s ease, stroke 0.3s ease;
}

#panel-left-close-icon:hover {
    stroke-width: 3px;
    stroke: #9d9d9d;
}

#panel-left-open {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    align-items: center;
    justify-content: center;
}

#panel-left-open-icon {
    width: 33px;
    height: 33px;
    stroke: #ababab;
    stroke-width: 2px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    transition: stroke-width 0.3s ease, stroke 0.3s ease;
}

#panel-left-open-icon:hover {
    stroke-width: 3px;
    stroke: #9d9d9d;
}


.folder {
    position: relative;
    font-family: 'Crimson Text';
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    border: 1px solid #bcbcbc;
    border-radius: 5px;
}

#folder-decks {
    display: none;
}

.folder-heading {
    font-size: 0.9rem;
    color: #595959;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    display: flex;
    align-items: center;
    padding: 9px 10px 7px 10px;
    border-bottom: 1px solid #bcbcbc;
}

.folder-contents {
    padding: 10px;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    background-color: white;
}

.folder-entry {
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #1e1e1e;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 8px;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: color 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.folder-entry:hover {
    border-color: #bcbcbc;
}

.folder-entry.selected {
    color: darkblue;
    border-color: darkblue;
}

.folder-entry-text {

}

.folder-entry-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 10px;

}

.folder-entry-delete {
    stroke: transparent;
    height: 13px;
    cursor: pointer;
    transition: stroke 0.3s ease, border 0.3s ease;
}

.folder-entry:hover .folder-entry-delete {
    stroke: #8e8e8e;
}

.folder-entry:hover .folder-entry-delete:hover {
    stroke: darkred;
}

/* when delete hovered, don't darken card */
.folder-entry:hover:has(.folder-entry-delete:hover) {
    background: transparent;
    border-color: darkred;
    color: darkred;
}



/* ----- CENTER PANEL - MAIN EDITOR/VIEWER ----- */

#panel-center {
    padding-top: 5vh;
    padding-bottom: 50px;
    display: flex;
    width: 53%;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    box-sizing: border-box;
    transition: width 500ms ease, padding 500ms ease;
}

#panel-center.full-width {
    width: 80%;
    padding-right: 10%;
}

#panel-center.noleft {
    width: 70%;
    padding-left: 5%;
}

#panel-center.full-width.noleft {
    width: 100%;
    padding-left: 0%;
    padding-right: 0%;
}

#editor-window-wrapper {
    position: relative;
    width: 90%;
    max-width: 900px;
    min-height: 90vh;
    box-sizing: border-box;
    background: white;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    transition: left 300ms ease, transform 300ms ease;
}

#editor-window-wrapper.full-width {

}

textarea, #editor-text-input {
    font-family: "Crimson Text", serif;
    width: 100%;
    height: 100%;
    font-size: 1.2em;
    box-sizing: border-box;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    background: transparent;
}

#editor-clear-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    font-size: 0.7rem;
    color: #656262;
    background: transparent;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: monospace;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease, background-color 0.3s ease;
}

#editor-clear-button:hover {
    color: #552424;
    background: rgb(255 200 200);
}


#editor-text-input {
    padding: 75px;
}

#editor-text-input div {
    margin: 0 0 15px 0;
}

#editor-text-input:empty:before {
  content: attr(placeholder);
  color: #aaa;
  pointer-events: none;
  position: absolute;
  font-style: italic;
}

#editor-text-input.view-mode {
    cursor: default;
}

.word {
    border-bottom: 1px solid transparent;
}

.word.view-mode {
    transition: border-bottom-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.word.view-mode::after {
    content: ' ';
    width: 0.125em;
    transition: background-color 0.3s ease;
}

.word.view-mode:hover {
    border-bottom-color: black;
}

.word.selected {
    background: brown;
    color: white;
}

.word.selected.exceeds-limit {
    background: rgb(255, 200, 200);
    color: black;
}

/* ----- RIGHT PANEL - CARD EDITOR AND OTHER TOOLS ----- */

#panel-right {
    position: fixed;
    height: 100vh;
    width: 30%;
    z-index: 250;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    background: #ffffff;
    padding-left: 2%;
    box-sizing: border-box;
    border-left: 1px solid #d9d9d9;
    transform-origin: right center;
    transform: scaleX(1.0);
    transition: transform 500ms ease, opacity 500ms ease;
    will-change: transform;
}

#panel-right.is-collapsed {
  transform: scaleX(0);
  pointer-events: none;
}

#panel-right-close {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    align-items: center;
    justify-content: center;

}

#panel-right-close-icon {
    width: 25px;
    height: 25px;
    stroke: #ababab;
    stroke-width: 2px;
    padding: 5px;
    box-sizing: border-box;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: stroke-width 0.3s ease, stroke 0.3s ease;
}

#panel-right-close-icon:hover {
    stroke-width: 3px;
    stroke: #9d9d9d;
}

#panel-right-open {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    align-items: center;
    justify-content: center;
}

#panel-right-open-icon {
    width: 30px;
    height: 30px;
    stroke: #ababab;
    stroke-width: 3px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    transition: stroke-width 0.3s ease, stroke 0.3s ease;
}

#panel-right-open-icon:hover {
    stroke-width: 4px;
    stroke: #9d9d9d;
}


#card-stack-wrapper {
    width: 95%;
    height: 90vh;
    margin-top: 5vh;
    max-width: 400px;
    display: none;
    flex-direction: column;
    align-items: end;
    border-radius: 8px;
    background: #dce0e3;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.10);
    border: 1px solid #bcbcbc;
    overflow: scroll;
    scrollbar-width: none;
}

#card-stack-wrapper-inner {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

#card-active {
    width: 100%;
    min-height: 300px;
    background: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #bcbcbc;
}

#card-active-front{
    border-bottom: 1px solid #ddd;
}

.card-active-side {
    width: 80%;
    min-height: 150px;
    padding: 30px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-textarea {
    text-align: center;
    height: auto;
    min-height: 45px;
    font-size: 1.0em;
}

.card-textarea::placeholder {
    font-size: 1.3rem;
    font-style: italic;
    color: #aaa;
}

.card-textarea::placeholder {
    font-size: 1.0em;
}

#card-add-button {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 0.6rem;
    background-color: #d4efd4;
    color: #737373;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.5s ease;
}

#card-add-button:hover {
    background: #a9d0a9;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

#card-add-button.edit-mode {
    background: #999dd2;
    color: white;
    font-size: 0.6rem;
}

#card-add-button.edit-mode:hover {
    background: #7479bc;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

#card-translate-button {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 0.6rem;
    background-color: #d4deef;
    color: #737373;
    text-transform: uppercase;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.5s ease;
}

#card-translate-button:hover {
    background-color: #b8c1c9;
}

#card-clear-button {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    font-size: 0.6rem;
    color: #656262;
    background: transparent;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: monospace;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

#card-clear-button:hover {
    color: #552424;
    text-decoration-color: #552424;
}

#deck-control-panel {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 100%;
    padding: 0 0 0px;
    box-sizing: border-box;
    background: white;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom: 1px solid #bcbcbc;
}

.deck-control-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
}

.deck-control-row-settings {
    display: none;
    padding: 0 10px 0 23px;
}

#deck-control-default {
    justify-content: space-between;
}

#deck-control-name {
    width: 40%;
    border: none;
    font-family: monospace;
    font-size: 0.7rem;
    border-radius: 5px;
    padding: 5px 12px;
    margin-left: 10px;
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.3s ease;
}

#deck-control-name:hover {
    border: 1px solid #bcbcbc;
}

#deck-control-buttons {
    height: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    padding-right: 10px;
}

.deck-control-button {
    cursor: pointer;
    height: 60%;
    border: 2px solid transparent;
    margin: 0 5px;
}

.deck-control-icon-wrapper {
    width: 27px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}

.deck-control-icon {
    height: 21px;
    width: 21px;
    cursor: pointer;
    background: transparent;
    border-radius: 50px;
    stroke: #656262;
    transition: height 0.3s ease, width 0.3s ease, background-color 0.3s ease;
    padding: 3px;
    box-sizing: border-box;
}

.deck-control-icon:hover {
    height: 24px;
    width: 24px;
    stroke: #4d4a4a;
    background: rgba(255, 255, 255, 0.253);
}

#export-option-preset {
    border: none;
    font-family: monospace;
    font-size: 0.7rem;
    color: #7d7d7d;
    border: 1px solid #bcbcbc;
    border-radius: 4px;
    padding: 4px 8px;
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
    scrollbar-width: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

#export-option-preset:hover {
    background: #f0f0f0;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

.export-option-format {
    font-size: 0.7rem;
    font-family: monospace;
    color: #656262;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #bcbcbc;
}

.export-option-format:hover {
    background: #f0f0f0;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

.export-option-format.selected {
    background: #e1e1e1;
    border: 1px solid black;
}

.deck-control-label {
    font-size: 0.7rem;
    font-family: monospace;
    color: #656262;
    margin-right: 10px;
}

#format-option-delimeters {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    border-right: 1px solid #c7a6a6;
}

#format-option-header {
    margin-left: 10px;
}

#working-deck {
    display: none;
    width: 100%;
    min-height: 50px;
    max-height: 430px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: scroll;
    padding: 5px 10px;
    scrollbar-width: none;
    box-sizing: border-box;
    border-radius: 5px;
    scrollbar-width: none;
    margin-top: 25px;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    background: white;
    border: 1px solid #bcbcbc;
}

#working-deck:empty {
  justify-content: center;
}

#working-deck:empty:before {
  content: attr(placeholder);
  color: #aaa;
  pointer-events: none;
  font-style: italic;
}

.stacked-card {
    width: 100%;
    min-height: 35px;
    background: #ffffff;
    color: #676767;
    font-style: italic;
    border-radius: 5px;
    margin: 5px 0;
    padding: 5px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.stacked-card:hover {
    background: #f0f0f0;
    border-color: #bcbcbc;
}

.stacked-card.selected {
    border: 1px solid darkblue;
    color: darkblue;
}

.card-front-preview, .card-back-preview {
    padding: 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    width: 35%;
}

.card-divider {
    padding: 0 10px;
}

.card-delete-button {
    stroke: transparent;
    right: 7px;
    height: 14px;
    cursor: pointer;
    padding-bottom: 2px;
    transition: stroke 0.3s ease, border 0.3s ease;
}

/* when card hovered, show delete button */
.stacked-card:hover .card-delete-button {
    stroke: #855d5d;
}

.stacked-card:hover .card-delete-button:hover {
    stroke: darkred;
}

/* when delete hovered, don't darken card */
.stacked-card:hover:has(.card-delete-button:hover) {
    background: white;
    border-color: darkred;
    color: darkred;
}


/* ----- SETTINGS BAR ----- */

#settings-bar {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    box-sizing: border-box;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 900;
}

#settings-user-menu {
    font-size: 0.9rem;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Edu VIC WA NT Hand';
}


#user-preview {
    cursor: pointer;
    color: #653c1b;
    border-radius: 20px;
    padding: 1px 15px;
    margin-bottom: 5px;
    border-radius: 20px;
    transition: color 0.6s ease, background-color 0.6s ease;
}

#user-preview.active {
    color: #a17070;
}

.user-option {
    display: none;
    padding: 1px 10px;
    cursor: pointer;
    color: #653c1b;
    background: #ffffff;
    margin-bottom: 5px;
    border-radius: 20px;
    box-shadow: 0 0 7px 0 rgba(0,0,0,0.05);
    transition: color 0.6s ease, background-color 0.6s ease;
}

.user-option:hover {
    background: #e9d8d2;
}


/* ----- FOOTER BAR & LOGO ----- */


#logo-main {
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Edu VIC WA NT Hand', cursive;
    font-size: 2.0rem;
    color: #e1cfcf;
    cursor: pointer;
    font-weight: 400;
}


#footer-text {
    position: fixed;
    bottom: 10px;
    left: 20px;
    font-family: 'Crimson Text', serif;
    font-size: 0.7rem;
    color: #868383;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

#warning-text {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: #552424;
    margin: 0;
    padding: 2px 10px;
    background: rgb(255 200 200);
    border-radius: 4px;
    display: none;
    z-index: 1000;
}


/* ----- LOGIN MODAL ----- */


.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#login-modal-content {
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    position: relative
}

.close-button {
    cursor: pointer;
    color: #653c1b;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    margin: 3px;
    border-radius: 50px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.close-button:hover {
    color: #552424;
    background-color: lightgray;
}

#login-form {
    display: flex;
    flex-direction: column;
}

.login-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 10px;
    font-family: 'Crimson Text';
    font-size: 0.9rem;
    width: 100%;
    height: 35px;
    box-sizing: border-box;
}

#login-password-confirm, #login-display-name {
    display: none;
}

.submit-button {
    height: 35px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #653c1b;
    color: #653c1b;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.submit-button:hover {
    background: #f0f0f0;
    border-color: #552424;
}

.submit-button.active {
    background: #653c1b;
    border-color: #653c1b;
    color: white;
}

.submit-button.active:hover {
    background: #552424;
}

#auth-error {
    color: darkred;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}


/* ----- SUBSCRIPTION MODAL ----- */


#subscriptions-modal {
    display: none;
}

#subscriptions-modal-content {
    max-width: 90%;
    background: white;
    padding: 4%;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    position: relative;
}

#subscriptions-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
}

.subscription-option {
    width: 250px;
    margin: 0 10px;
    padding: 25px 25px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 0 7px 0 rgba(0,0,0,0.15);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.subscription-option.selected {
    background-color: #f3f3f3;
}

.subscription-option:hover {
    background-color: #f3f3f3;
}

.subscription-option.selected:hover {
    cursor: default;
}

.subscription-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
}

.subscription-subtitle {
    height: 40px;
    font-size: 0.9rem;
}

.subscription-details {
    height: 125px;
    font-size: 0.9rem;
    color: darkgray;
}

.subscription-detail {
    margin: 0 0 7px 0;
}

.subscription-detail::marker {
    font-size: 0.8em;
}

.subscription-price {
    height: 30px;
    font-size: 0.9rem;
    margin: 0;
}

.dollar-amount {
    font-weight: bold;
    font-size: 1.3rem;
}

.subscription-button {
    border-radius: 2px;
    background: #e5e5e5;
    height: 35px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-button.selected {
    background: black;
    color: white;
}

.subscription-info {
    font-size: 0.9rem;
    text-align: center;
}

#subscription-renew-info {
    display: none;
    margin-top: 40px;
    color: #000000;
    font-style: italic;
}

#subscription-manage-cancel {
    display: none;
    margin-top: 10px;
    color: rgb(58, 58, 58);
    cursor: pointer;
}

#subscription-manage-cancel:hover {
    color: rgb(124, 28, 28);
}


/* ----- TOOLTIPS ----- */


.tooltip {
    position: absolute;
    z-index: 750;
    background: white;
    border-radius: 4px;
    display: none;
}

#tooltip-overwrite {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    font-family: monospace;
    text-transform: uppercase;
    border: 1px solid rgb(24 43 133);
    box-shadow: 0 3px 1px rgba(24, 43, 133, 0.8);
}

.tooltip-overwrite-option {
    font-size: 0.7rem;
    color: black;
    background: white;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
}

#tooltip-overwrite-add:hover {
    background-color: #dee9df;
}

#tooltip-overwrite-replace:hover {
    background-color: #e7e0e0;
}



/* ----- CONTROL PANEL ----- */


#editor-control-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    background: #dce0e3;
    box-sizing: border-box;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

#editor-controls-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#editor-controls-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#editor-toggle {
    text-transform: uppercase;
    font-family: monospace;
    display: flex;
    flex-direction: row;
}

#editor-toggle div {
    font-size: 0.7rem;
    color: #656262;
    background: transparent;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease, background-color 0.3s ease;
}

#editor-toggle div:hover {
    text-decoration-color: #656262;
}

#editor-toggle div.selected {
    background: white;
}

.editor-control-spacer {
    width: 15px;
    height: 20px;
}

#spacer-1 {
    border-right: 1px solid #b7b7b7;
}

#editor-generate-button {
    color: #656262;
    background: #b6c7c1;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: monospace;
    display: flex;
    flex-direction: row;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#editor-generate-button:hover {
    background-color: #97bdb0;
}

#editor-generator-settings {
    display: none;
    align-items: center;
    justify-content: start;
}

.generator-option {
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-family: monospace;
    text-transform: uppercase;
    color: #656262;
    font-size: 0.7rem;
    background: white;
    appearance: none;
    cursor: pointer;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}


#settings-languages {
    border-radius: 25px;
}

.lang-dropdown {
    border: none;
    border-radius: 4px;
    padding: 2px 7px;
    font-family: monospace;
    text-transform: uppercase;
    color: #656262;
    font-size: 0.7rem;
    background: transparent;
    appearance: none;
    cursor: pointer;
    width: 100px;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    &::-webkit-scrollbar {
        display: none;
    }
}

#lang-dropdown-divider {
    color: #656262;
}


/* ----- GENERATE SUB-PANEL ----- */

#generator-panel {
    position: relative;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    background: #dce0e3;
    box-sizing: border-box;
    font-family: monospace;
    border-top: 1px solid #b6c7c1;
    border-left: 10px solid #b6c7c1;
    border-bottom: 1px solid #b6c7c1;
}

#generator-controls-left {
    display: flex;
    flex-direction: row;;
    align-items: center;
    justify-content: flex-start;
}

#generator-controls-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.generator-label {
    font-size: 0.7rem;
    color: #656262;
    background: transparent;
    padding: 5px 10px;
    font-family: monospace;
}

.generator-input {
    font-size: 0.7rem;
    color: #656262;
    background: white;
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    font-family: monospace;
}

.generator-input:focus {
    border-color: transparent;
}

#generator-text-type {
    width: 150px;
}

#generator-text-topics {
    width: 150px;
}

.generator-button {
    color: #656262;
    background: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: monospace;
    display: flex;
    flex-direction: row;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generator-button:hover {
    background-color: #97bdb0;
}

#generator-create-button {
    margin-left: 15px;
}


.loading-dots {
    display: none; 
    gap: 10px; 
    align-items: flex-end; 
    height: 10px; 
}

.loading-dots span {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  background: lightgray; 
  display: inline-block;
  animation: b 1.0s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .30s; }

@keyframes b {
  40% { transform: translateY(-10px); opacity:5; }
}


#generator-loading-dots {
  position: absolute;
  top: calc(100% + 85px);
  inset-inline: 0;
  width: max-content;
  margin-inline: auto;
}



/* ---------- FORMATTING FOR NARROW SCREENS ---------- */

@media only screen and (max-width: 1400px) {

    #panel-left {
        position: fixed;
        width: 275px;
        transition: width .5s ease, padding .5s ease;
    }

    #panel-left.is-collapsed {
        width: 0;
    }

    #panel-center, #panel-center.noleft, #panel-center.full-width, #panel-center.full-width.noleft {
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }

    #panel-right {
        width: 90%;
        max-width: 450px;
    }

}


@media only screen and (max-width: 950px) {


}
