/*|===| COLORS & THEMES |===|*/
:root {
    --black: #2E3440;
    --oxford: #3B4252;
    --space: #434C5E;
    --yin: #4C566A;
    --white: #fafafa;
}

.theme__green {
    --black: #0E1C26;
    --oxford: #13232C;
    --space: #172A32;
    --yin: #1C3139;
    --white: #cfcfcf;
}
.theme__black {
    --black: #121212;
    --oxford: #242424;
    --space: #373737;
    --yin: #373737;
    --white: #b8b6b6;
}
.theme__slate {
--black: #2C2831;
--oxford: #373240;
--space: #423B4F;
--yin: #4D455E;
--white: #E8E6EC;
}
.theme__dust {
--black: #1E252B;
--oxford: #29323A;
--space: #343F47;
--yin: #404B54;
--white: #DEE3E7;
}
.theme__olive {
--black: #2A2D25;
--oxford: #353A30;
--space: #40453B;
--yin: #4A5045;
--white: #E6E9E1;
}
.theme__gruvbox {
--black: #1D2021;
--oxford: #282828;
--space: #3C3836;
--yin: #504945;
--white: #BDAE93;
}

/*|===| GENERAL |===|*/
* {
    padding: 0;
    margin: 0;
}

html { 
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;

    background-color: var(--black);
    color: var(--white);

    font-family: "Inter", sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

/*|===| PLACEMENT |===|*/
.flex { display: flex; }
.flex__center { display: flex; justify-content: center; align-items: center; }
.center { display: block; margin-left: auto; margin-right: auto; }

/*|===| EDITOR WRAPPER |===|*/
.editor-wrapper {
    width: 100vw;
    height: 100vh;
}

.book-nav {
    width: 300px;
    height: 100vh;
    overflow-y: scroll;
    background-color: var(--space);
}

.book-nav__icons {
    width: 75px;
    height: 100vh;

    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    background-color: var(--black);
}
.book-nav__icons img {
    width: 40px;
    margin-bottom: 50px;
    padding-top: 25px;
}
.book-nav__icons a {
    color: var(--white);
    text-decoration: none;
    font-size: 28px;
    text-align: center;
}
.book-nav__icons a:hover {
    color: var(--yin);
}
.book-nav__icons a:not(:first-child) {
    margin-top: 25px;
}

.bn__icons__nav, .bn__icons__save {
    flex-direction: column;
}
.bn__icons__save {
    padding-bottom: 25px; 
}

.book-nav__chapter { width: 225px; }
.bn__chapter__title { text-align: center; line-height: 50px; }

.bn__chapter__add_chapter {
    width: 225px; height: 50px;
}
.add-chapter {
    border: none;
    background-color: var(--oxford);
    color: var(--white);
    width: 150px;
    line-height: 40px;
    font-weight: 400;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.bn__chapter__section__load { cursor: pointer; }

.bn__chapter__section {
    margin-top: 25px;
}

.bn__chapter__section__title {
    width: 225px; height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--oxford);
}

.bn__chapter__section__content {
    width: 225px;
    line-height: 40px;
    background-color: var(--yin);
    text-decoration: none;
    color: var(--white);

    justify-content: space-between;
    flex-direction: row;
}
.bn__chapter__section__content i {
    padding-right: 10px;
}
.bn__chapter__section__content a {
    color: var(--white);
    text-decoration: none;
}

.bn__chapter__save {
    height: 100px;
}
.bn_load_chapter_btn { width: calc(100% - 30px); }
.bn_chapter_menu { width: 30px; }

.bn__chapter__save button {
    width: 225px;
    line-height: 50px;

    border: none;
    background-color: var(--oxford);

    color: var(--white);
    font-size: 16px;
    cursor: pointer;
}
.bn__chapter__save button:hover {
    background-color: var(--yin);
}

.bn__chapter__nav {
    height: calc(100% - 100px);
    overflow-y: scroll;
}
.bn__chapter__body .bn__chapter__section__content:last-child {
    margin-bottom: 50px;
}

.bn__chapter__section__content .hover {
    width: 5px;
    height: 100%;
    color: var(--yin);
    margin-right: 10px;
}
.bn__chapter__section__content:hover .hover {
    color: var(--oxford);
    background-color: var(--oxford);
}

.bn__chapter__section__content .active {
    color: var(--oxford);
    background-color: var(--oxford);
}

.bn__home { width: 75px; }
.bn__home .book-nav__icons { background-color: var(--oxford); }

/*|===| EDITOR |===|*/
.editor_wrapper { 
    width: calc(100vw - 300px - 300px);
    display: none;
}
.open_chapter { 
    width: calc(100vw - 300px - 300px);
    height: 100vh;
}
.quill_word_count {
    line-height: 30px;
    width: 100%;
    background-color: var(--oxford);
    color: var(--white);
    padding-left: 15px;
    font-size: 12px;
    gap: 50px; 
}
.ql-toolbar { height: 50px; }
.ql-toolbar.ql-snow { padding: 12px; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border: none; }
.ql-toolbar.ql-snow { background-color: var(--space); }
.ql-snow .ql-stroke { stroke: var(--white); }
.ql-snow .ql-picker { color: var(--white); }
.ql-editor.ql-blank::before { color: var(--yin); }
.ql-container {
    height: calc(100vh - 50px - 30px);
}
.ql-editor {
    font-family: 'Inter', sans-serif; 
    font-size: 18px;
    line-height: 1.7;
}

.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options { border: none; }
.ql-snow .ql-picker-options {
    background-color: var(--space);
    color: var(--white);
    border: none;
}

/*|===| EDITOR NOTES COLUMN |===|*/
.editor-notes {
    width: 300px;
    height: 100vh;
    background-color: var(--space);
    overflow-y: scroll;
}

.en__title {
    width: calc(100% - 20px);
    line-height: 50px;
    text-align: center;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
}

.en__title a {
    color: var(--white);
    text-decoration: none;
    font-size: 22px;
}

.en__section__title {
    width: 100%;
    line-height: 50px;
    text-align: center;
    background-color: var(--oxford);
}

.en__section textarea {
    width: calc(100% - 10px);
    height: 250px;
    background-color: var(--yin);
    color: var(--white);
    border: none;
    padding: 5px;
    resize: none;
    overflow-y: auto;
    transition: all 0.3s ease;
}


/*|===||===|*/
.content-wrapper {
    width: calc(100vw - 75px);
    height: calc(100vh);
    overflow-y: scroll;
}

.cw-title {
    width: 100%; 
    line-height: 50px;
    text-align: center;
}

.cw-book-wrapper {
    width: calc(100% - 50px);
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    margin: 25px;
    gap: 25px;

}

.cw-book {
    width: 150px;
    height: 200px;
    background-color: var(--space);

    text-align: center;
    color: var(--white);
    text-decoration: none;

    border-radius: 0 10px 10px 0;

    flex-direction: column;
    justify-content: space-between;
}
.cw-book a {
    height: 100%;
    text-decoration: none;
    color: var(--white);
}
.cw-book:hover {
    background-color: var(--oxford);
}
.cw-book p { padding: 10px; }

.cw-btn-container {}
.cw-btn-container button {
    width: 100%;
    line-height: 30px;
    background-color: var(--oxford);
    color: var(--white);
    border: none;
}
.cw-btn-container button:hover {
    background-color: var(--yin);
    cursor: pointer;
}

/*|===| LOGIN |===|*/
.login-wrapper { 
    width: 100vw;
    height: 100vh;
}

.login-form { 
    width: 300px;
    height: 85px;
}

.login-form input {
    width: 290px;
    line-height: 30px;
    background-color: var(--space);
    color: var(--white);
    border: none;
    padding: 5px;
    margin-bottom: 25px;
    text-align: center;
    border-radius: 50px;
}

.login-form button {
    width: 100%;
    line-height: 30px;
    background-color: var(--oxford);
    color: var(--white);
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50px;
}

.login-form button:hover {
    background-color: var(--yin);
}

/*|===| BOOK CREATE POPUP |===|*/
.create_popup, .export_popup, .chapter_menu_popup, .rename_popup, .delete_popup {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;

    display: none;
    top: 0;
    left: 0;
    position: fixed;
}

.create_popup__content, .export_popup__content, .rename_popup__content, .delete_popup__content {
    width: 300px;
    height: 150px;
    background-color: var(--black);
    border-radius: 10px;
    flex-direction: column;
}
.chapter_menu_popup__content {
    width: 300px;
    height: 200px;
    background-color: var(--black);
    border-radius: 10px;
    flex-direction: column;
}
.rename_popup__content { display: none; }

.create_popup__content input, .chapter_menu_popup input, .rename_popup input {
    width: 250px;
    line-height: 30px;
    background-color: var(--space);
    color: var(--white);
    border: none;
    padding: 5px;
    margin-bottom: 25px;
    text-align: center;
    border-radius: 50px;
}
.create_popup__content button, .export_popup__content button, .chapter_menu_popup button, .rename_popup button {
    width: 250px;
    line-height: 30px;
    background-color: var(--oxford);
    color: var(--white);
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50px;
    margin-bottom: 10px;
}
.create_popup__content button:hover, .export_popup__content button:hover, .chapter_menu_popup button:hover, .rename_popup button:hover {
    background-color: var(--yin);
}
.create_popup a, .export_popup a, .chapter_menu_popup a, .rename_popup a { 
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    margin-top: 10px;
}

/*|===||===|*/
.write_popup {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    top: 0;
    left: 0;
    position: fixed;
}
.write_popup__content {
    width: 300px;
    height: auto;
    background-color: var(--black);
    border-radius: 10px;
    flex-direction: column;
}

.wp__content_create_chapter { display: none; }
.wp__content_load_chapter { display: none; }
.wp__content_save_chapter { display: none; }
.wp__content_saved_chapter { display: none; }
.wp__content_exporting_book { display: none; }
.wp__content_exported_book { display: none; }
.wp__content_exporting_chapter { display: none; }
.wp__content_exported_chapter { display: none; }
.wp__renaming_chapter { display: none; }
.wp__chapter_renamed { display: none; }
.wp__chapter_deleted { display: none; }
.wp__deleting_chapter { display: none; }

.wp__content_saved_chapter a, 
.wp__content_exporting_book a,
.wp__content_exported_book a,
.wp__content_exporting_chapter a,
.wp__content_exported_chapter a { 
    color: var(--white); 
    line-height: 30px;
    text-decoration: none;
}

/*|===||===|*/
.theme_switcher {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    top: 0;
    left: 0;
    position: fixed;
}
.theme_switcher__content {
    width: 300px;
    height: auto;
    background-color: var(--black);
    border-radius: 10px;
    flex-direction: column;
}

.theme_switcher a { 
    color: var(--white); 
    line-height: 30px;
    text-decoration: none;
}
.theme_switcher a:hover { text-decoration: underline; }

.theme_switcher__options {
    justify-content: space-around;
    flex-flow: row wrap;
}

/*|===||===|*/

