/*! 
Theme: Minnie
Author: Mikkel Sørensen
Version: 1.0.0
*/

/* ROOT */

:root {

    /* Links */
    --link-color: rgba(59, 56, 56, 0.7);
    --link-color-hover: rgba(59, 56, 56, 1);
    --icon-color-hover: rgba(168, 187, 191, 1);

    --link-color-dark: rgba(249, 249, 247, 0.3);
    --link-color-hover-dark: rgba(249, 249, 247, 1);

    --accent-color: #a8bbbf;


    /* Background */
    --background-color: rgba(255, 255, 255, 1);
    --background-color-secondary: #F9F9F7;
    --background-color-secondary-hover: #D6D9D2;
    --background-color-red: #F6916B;

    --background-color-dark: #2e2e2e;

    /* Font */
    --font-color: rgb(59, 56, 56);
    --font-family: 'Noto Serif', serif;
    --font-size: 1em;
    --font-size-small: 0.8em;

    --font-color-dark: rgba(255, 255, 255, 0.85);

}

:focus {
    outline: none;
}

html, body, .wrapper {
    height: 100vh;
    max-height: 100vh;
}

body {
    margin: 0;
    background-color: var(--background-color);
    font-family: var(--font-family);
    font-size: var(--font-size);
    color: var(--font-color);
    transition: background-color 0.0s ease, color 0.5s ease;
}

/* INPUT */

input {
    font-family: var(--font-family) !important;
    background-color: var(--background-color);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    font-family: var(--font-family) !important;
    transition: background-color 5000s ease-in-out 0s;
    /* Prevent background color from being changed */
}

/* ********** */
/* TYPOGRAPHY */
/* ********** */

/* FORMATTING */

.bold {
    font-weight: 600;
}

.note-editable p:first-child {
    font-weight: bold;
}

[contenteditable=true] {
    min-width: 100px;
    min-height: 100px;

}

ul {
    list-style-type: unset;
    margin-block-start: 0px;
    margin-block-end: 0px;
    padding-inline-start: 0px;
    margin-left: 0;
}

ul li {
    font-size: 0.9rem;
    max-width: 100%;
    line-height: 1rem;
    min-height: 1rem;
    padding: 3px 0;
}

.note-editable > ul, .note-editable > ol {
    list-style-position: outside;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 30px;
}

.note-editable p {
    overflow-wrap: break-word;
    margin: 0px 0;
    line-height: 1.5;
}

.note-editable ul li, .note-editable ol li {
    line-height: 1.5;
}

.note-editable ul li:first-child, .note-editable ol li:first-child { 
    margin-top: 15px; 
}

.note-editable ul li:last-child, .note-editable ol li:last-child {
    margin-bottom: 15px;
}
 

/* LINKS */
a, .hover, .nav-wrapper a {
    text-decoration: none;
    color: var(--link-color);
    transition: 0.3s;
}

a:hover, .hover:hover, .nav-wrapper a:hover {
    color: var(--link-color-hover);
    cursor: pointer;
}

/* ********* */
/* SCROLLBAR */
/* ********* */

@media screen and (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 20px;
    }

    ::-webkit-scrollbar-track {
        background-color: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #d6dee1;
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--accent-color);
    }
}

@media screen and (max-width: 768px) {
    .editor, .nav-wrapper {
        scrollbar-width: thin;
        /* or auto, depending on your design */
        scrollbar-color: #d6dee1 transparent;
        /* customize scrollbar colors */
        overflow-x: hidden;
        /* Hide horizontal scrollbar, if not needed */
        padding-right: 0;
        /* Remove any unwanted padding */
    }

    ::-webkit-scrollbar {
        width: 15px;
    }

    ::-webkit-scrollbar-track {
        background-color: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #d6dee1;
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--accent-color);
    }
}


/* ********* */
/* DARK MODE */
/* ********* */
.dark-mode input {
    color: var(--font-color-dark)
}

.dark-mode {
    background-color: var(--background-color-dark);
    color: var(--font-color-dark);
}

.dark-mode .editor div * {
    color: var(--font-color-dark) !important;
}

.dark-mode a, .dark-mode .hover {
    color: var(--link-color-dark);
} 

.dark-mode a:hover, .dark-mode .hover:hover {
    color: var(--link-color-hover-dark);
}

.dark-mode .tags-title-delete {
    color: rgba(59, 56, 56, 0.7);
}

.dark-mode .tags-title-delete:hover {
    color: rgba(59, 56, 56, 1);
}

.dark-mode img {
    filter: invert(100%);
}

.dark-mode .tag-title,
.dark-mode #tags span,
#insertButton i {
    color: var(--font-color);
}

.dark-mode .tags-input-container, .dark-mode .bottom-container {
    background-color: var(--background-color-dark);
}

.dark-mode button {
    color: var(--font-color-dark);
}

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

    .dark-mode .nav-wrapper {
        --link-color: rgba(59, 56, 56, 1);
        --link-color-hover: rgba(59, 56, 56, 1);
        --icon-color-hover: rgba(168, 187, 191, 1);

        --link-color-dark: rgba(249, 249, 247, 1);
        --link-color-hover-dark: rgba(249, 249, 247, 1);

        background-color: var(--background-color-dark);
        border-bottom: 1px solid var(--accent-color);
    }

    .dark-mode .controls {
        background-color: var(--background-color-dark);

        border-top: 1px solid var(--accent-color);
    }

}