/* theme-evening.css */

/* Reset body width and margin, center the main wrapper instead */
body {
    font-family: "Georgia", serif;
    background-color: #f5f1e6;
    color: #3e2f1c;
    line-height: 1.8;
    font-size: 1.2em;
    margin: 0;
}

/* Center and constrain the page, not the body */
.page-wrap {
    max-width: 1200px;
    margin: 40px auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar */
aside {
    float: none;
    width: 250px;
    margin-right: 3em;
    background-color: #e7dbc4;
    padding: 1em;
    border-radius: 8px;
    box-sizing: border-box;
}

.layout {
    display: flex;
    flex-direction: row;
    flex: 1 0 auto;
    width: 100%;
}

/* Main content */
main {
    flex: 1 1 0;
    padding: 1rem 0 1rem 0;
    min-width: 0;
    /* overflow: hidden; REMOVE THIS */
    box-sizing: border-box;
}

/* Code blocks can fill the available width */
pre {
    background-color: #f0e7d4;
    color: #2c1e12;
    padding: 1em;
    overflow-x: auto;
    border-radius: 6px;
    font-family: "Courier New", monospace;
    margin: 1.5em 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sidebar nav links */
li a {
    text-decoration: none;
    color: #5b3e2b;
}
li a:hover {
    color: #8c6239;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2em;
}
h1, h2, h3, h4, h5 {
    color: #3a2615;
    margin: 0;
    padding: 0;
}
h1 {
    font-size: 2.2em;
}

.search-box input[type="text"] {
    padding: 0.5em;
    font-size: 1em;
    width: 220px;
    border: 1px solid #c0a97f;
    border-radius: 4px;
    background-color: #fcf9f2;
    color: #2d1f15;
}

footer {
    font-size: 0.9em;
    margin-top: 3em;
    padding-top: 2em;
    color: #6e5842;
    border-top: 1px solid #d0c2a2;
    background: transparent;
}

aside ul li a {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.73em;
    display: block;
    margin: 0.4em 0;
}

aside ul.sub-links {
    list-style: none;
    padding-left: 1em;
    margin: 0.2em 0 0.4em;
    font-size: 0.85em;
}

aside ul.sub-links li a {
    text-transform: none;
    padding: 0.2em 0;
}
input.main {
    width: 70%;
    padding: 0.6em;
    margin-right: 0.5em;
    border-radius: 4px;
    border: 1px solid #c2b49c;
    background-color: #fbf6ea;
    color: #3e2f1c;
}
input.help {
    width: 100%;
    padding: 0.6em;
    border-radius: 8px;
    border: 1px solid #c2b49c;
    background-color: #fdf8ed;
    color: #3e2f1c;
}
input.submit {
    padding: 0.6em 1em;
    border-radius: 4px;
    border: none;
    background-color: #b58d5a;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
input.submit:hover {
    background-color: #a0784c;
}

img.qr {
    max-width: 300px;
}
img.navbar-qr {
    max-width: 150px;
}

p.error {
    font-weight: bold;
    color: #8a1c1c;
}
form.navbar {
    margin-bottom: 1em;
}
div.qr {
    margin-top: 1em;
    text-align: center;
}
p.qr {
    margin-bottom: 0.5em;
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .page-wrap {
        margin: 20px 0;
        max-width: 100vw;
    }
    .layout {
        flex-direction: column;
    }
    aside {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2em;
        border-radius: 8px;
    }
    main {
        padding: 1.5em 0.5em;
    }
}

@media (max-width: 600px) {
    .page-wrap {
        margin: 0;
    }
    aside {
        padding: 0.5em;
    }
    main {
        padding: 1em 0.2em;
    }
}
