*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,html {
    padding: 0;
    margin: 0;
    overflow: hidden;

    font-family: "Courier New", monospace;
}

.notes_sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border-bottom-right-radius: 2vmin;

    height: 60vmin;
    width: 6vmin;
    flex-shrink: 0;

    background-color: rgba(0, 0, 0, 0.5);
}

.window_maximized .notes_sidebar {
    height: 97vh;
}

.notes_selector {
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    width: 4vmin;
    aspect-ratio: 1 / 1;

    border-radius: 30%;
    margin: 1vmin 2vmin;

    background: linear-gradient(135deg, coral, #ff4500);
    box-shadow: 0 0.3vmin 0.6vmin rgba(0, 0, 0, 0.2);

    color: #f9f9fb;
    font-weight: bold;
    font-size: 2vmin;

    transition: ease 0.1s;
}

.dark_mode .notes_selector {
    background: linear-gradient(135deg, #591244, #100926);
}

.notes_page_selected {
    scale: 1.1;
}

.notes_selector:hover {
    scale: 1.1;
    box-shadow: 0 1vmin 2vmin rgba(255, 255, 255, 0.15);
}

.notes_sidebar_pages {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;

    max-height: 60vmin;
}

.window_maximized .notes_sidebar_pages {
    max-height: 100vh;
}

.notes_sidebar_add_page {
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    width: 4vmin;
    aspect-ratio: 1 / 1;

    border-radius: 30%;
    margin: 1vmin 2vmin;

    background: linear-gradient(135deg, #7fff00, #2e8b57);
    box-shadow: 0 0.3vmin 0.6vmin rgba(0, 0, 0, 0.2);

    color: #f9f9fb;
    font-weight: bolder;
    font-size: 3vmin;

    transition: ease 0.1s;
}

.notes_sidebar_add_page:hover {
    scale: 1.1;
    box-shadow: 0 1vmin 2vmin rgba(255, 255, 255, 0.15);
}

.select_notes_button {
    animation: selectNotesButton 0.15s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes selectNotesButton {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.1);
    }
}

.notes_sidebar_reset {
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    width: 4vmin;
    aspect-ratio: 1 / 1;

    border-radius: 30%;
    margin: 1vmin 2vmin;

    background: linear-gradient(135deg, #ff5f56, #b22222);
    box-shadow: 0 0.3vmin 0.6vmin rgba(0, 0, 0, 0.2);
    border: 0.0625rem solid #e0443e;

    color: #f9f9fb;
    font-weight: bolder;
    font-size: 1.5vmin;

    transition: ease 0.1s;
}

.notes_sidebar_reset:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff3b30, #b22222);
    box-shadow: 0 0 0.5vmin rgba(255, 59, 48, 0.6);
}

.notes_content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.notes_content::-webkit-scrollbar {
    width: 0.375rem;
}
.notes_content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.notes_content::-webkit-scrollbar-thumb {
    background: rgba(255, 127, 80, 0.45);
    border-radius: 0.1875rem;
}
.notes_content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 127, 80, 0.7);
}

.notes_page {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;

    max-height: 60vmin;

    padding: 1vmin;
}

.window_maximized .notes_page {
    max-height: 100vh;
}

.notes_page_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    min-height: 4vmin;

    border-bottom: 2px solid #f9f9fb;
}

.notes_title {
    max-width: 70%;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes_date {
    max-width: 30%;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}