﻿body {
    --body-copy: #222;
    --gold: #ca9c42;
    --dark-gray: #444;
    --menu-icon-gray: #999;
    --menu-icon-gray-hover: #777;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
}

.menu {
    background-color: var(--dark-gray);
    color: white;
    position: fixed;
    bottom: 7vh;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    transition: all 500ms ease;
    transform: translateX(-100%);
    font-family: sans-serif;
    z-index: 50;
}

.chapter-text h4 {
    font-size: 45px;
}
.chapter-text h4, .chapter-text p {
    font-family: sans-serif;color:#333
}

@media (min-width: 1024px) {
    .menu {
        width: 30%;
        top: 0;
    }
}

.menu-inner {
    padding: 1rem 1rem 3rem;
    overflow-y: auto;
    height: 50vh;
}

@media (min-width: 500px) {
    .menu-inner {
        padding: 1rem 1rem 4rem;
    }
}

@media (min-width: 1024px) {
    .menu-inner {
        height: 90%;
    }
}

.open {
    transform: translateX(0);
}

.menu-close {
    margin: 0;
    padding: 0.5rem;
    background-color: var(--gold);
    cursor: pointer;
    text-transform: uppercase;
    text-align: right;
}

    .menu-close i {
        margin-right: 0.5rem;
    }

@media (min-width: 500px) {
    .menu-close {
        padding: 1rem;
        text-align: right;
    }
}

.menu-header {
    text-align: center;
    text-align: left;
    margin-bottom: 2rem;
}

@media (min-width: 500px) {
    .menu-header {
        text-align: left;
        margin-bottom: 2rem;
    }
}

.currently-reading {
    margin-bottom: 2rem;
}

@media (min-width: 500px) {
    .currently-reading {
        margin-bottom: 4rem;
    }
}

.currently-reading-header h3 {
    font-size: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 500px) {
    .currently-reading-header h3 {
        font-size: 1.3rem;
    }
}

.currently-reading-group {
    display: flex;
}

.currently-reading-image {
    flex: 0 1 75px;
    margin-right: 1rem;
}

    .currently-reading-image img {
        width: 100%;
    }

.currently-reading-text p {
    margin: 0;
}

.currently-reading-title {
    flex: 0 1 100%;
    font-size: 1.2rem;
    font-weight: 700;
}

@media (min-width: 500px) {
    .currently-reading-title {
        font-size: 1.7rem;
    }
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

@media (min-width: 500px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2rem;
    }
}

@media (min-width: 768px) {
    .library-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2rem;
    }
}

.library-image img {
    width: 100%;
}

.library-title {
    font-size: 0.9rem;
}

.shop-books {
    margin: 2rem 0;
}

    .shop-books a {
        color: var(--gold);
        text-decoration: none;
    }

        .shop-books a i {
            margin-right: 0.3rem;
        }

.settings section {
    margin-bottom: 2rem;
}

.settings-theme ul,
.settings-font ul {
    padding: 0;
    list-style: none;
}

    .settings-theme ul li,
    .settings-font ul li {
        margin-bottom: 0.5rem;
        cursor: pointer;
    }

.settings-subheader {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

#ui {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    z-index: 50;
}

.ui {
    padding: 0 1rem;
    background-color: white;
}

.ui-dark {
    background-color: #222;
}

    .ui-dark i {
        color: white;
    }

.ui-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

@media (min-width: 500px) {
    .ui-menu {
        justify-content: center;
    }
}

.ui-menu-icon {
    font-size: 1.3rem;
    color: var(--menu-icon-gray);
    cursor: pointer;
    transition: color 200ms ease;
}

    .ui-menu-icon:hover {
        color: var(--menu-icon-gray-hover);
    }

@media (min-width: 500px) {
    .ui-menu-icon {
        padding: 0 2rem;
        margin: 1rem 0;
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .ui-menu-icon {
        padding: 0 3rem;
        margin: 1.5rem 0;
        font-size: 2.5rem;
    }
}

.reader {
    margin-top: 3rem;
    padding: 0 1rem;
    font-family: "Lora", serif;
    color: var(--body-copy);
    max-width: 800px;
    margin: 3rem auto 8rem;
    max-width: 800px;
    padding: 7%;
    padding-top:0;
}

.font-sans-serif {
    font-family: "Open Sans", sans-serif;
}

.font-monospace {
    font-family: "Inconsolata", monospace;
}

.chapter-title {
    text-align: center;
    margin: 6rem 0;
}

.chapter-text p {
    line-height: 1.9;
    font-size: 1.1rem;
}

@media (min-width: 600px) {
    .chapter-text p {
        line-height: 1.7;
        font-size: 1.3rem;
    }
}

.hide {
    display: none;
}

.theme-active,
.font-active {
    color: var(--gold);
}
