@font-face {
    font-family: 'iAWriterMonoV';
    src: url('/font/iAWriterMonoV.ttf') format('truetype');
}

@font-face {
    font-family: 'iAWriterMonoV';
    src: url('/font/iAWriterMonoV-Italic.ttf') format('truetype');
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('/font/Roboto.ttf') format('truetype');
    font-weight:  300;
}

@font-face {
    font-family: 'Roboto';
    src: url('/font/Roboto-Italic.ttf') format('truetype');
    font-style: italic;
}


body {
    font-family: 'iAWriterMonoV', monospace;
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
}
::selection {
    background: #ACEBFB;
}
em, i {
    font-family: 'iAWriterMonoV', monospace;
    font-style: italic;
}

footer {
    text-align: center;
}

.chapter {
    background-color: inherit;
    border: 2px solid currentColor;
    cursor: pointer;
    margin: 10px 0;
    padding-left: 10px;
    padding-right: 10px;
}

header {
    text-align: center;
}

a {
    color: #898886;
    }

    a:active {
        color: #B4B3B0;
}

body {
    background-color: #F7F7F7;
    margin-top: 75px;
    margin-bottom: 25px;
    margin-left: 10%;
    margin-right: 10%;
}

body.dark-mode {
    background-color: #1A1B1A;
    color: #CCC;
}

body.dark-mode a {
    color: #898886;
}

body.dark-mode a:active {
    color: #B4B3B0;
}

body.dark-mode ::selection {
    background: #004555;
}

@media (min-width: 1024px) {
    body {
        margin-left: 15%;
        margin-right: 15%;
    }
}


body.dark-mode #mode-toggle {
    filter: invert(1);
}

#back-button {
    filter: invert(0);
    transition: filter 0.3s ease;
}

body.dark-mode #back-button {
    filter: invert(1);
}

pre {
    background-color: #F0F0F0;
    white-space: pre-wrap;
    padding: 1rem;
    font-size: 18px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.2);
}


body.dark-mode pre {
    background-color: #1E1D1D;
    border: 1px solid rgba(204, 204, 204, 0.2);
}
