:root {
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
    --dark: #333;
    --white: #f5f5f5;
    --gray-text: #787878;
    --gray-bg: #e4e4e4;
    --pink: #f5a196;
}

body {
    color: var(--dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow: auto;
    display: block;
}

main {
    margin-left: 2.5rem;
    padding: 1rem;
}

li {
    list-style: none;
    line-height: 2rem;
}

/* Poem Text */

pre {
    display: block;
    background-color: var(--gray-bg);
    border: 2px solid var(--pink);
    margin: 1rem 0rem 2rem;
    padding: 1rem 2.5rem 1rem 1rem;
    border-radius: 0.25rem;
    font-family: var(--font-family);
    font-size: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* General Link Styling */

a {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    color: var(--dark);
    text-decoration: none;
}

a:active {
    background: 5px 5px var(--pink);
    color: var(--white);
}

/* Sidebar Navigation */

.navbar {
    width: 2.5rem;
    height: 100vh;
    position: fixed;
    background-color: var(--dark);
    border-right: 0.25rem solid var(--white);
    transition: width 200ms ease;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 3.5rem;
    color: var(--white);
    text-decoration: none;
}

.nav-link img {
    min-width: 1.25rem;
    margin: 0 0.5rem;
}

.nav-link:hover {
    background: var(--pink);
    color: var(--dark);
}

.link-text {
    display: none;
    margin-left: 1rem;
    line-height: normal;
}

.navbar:hover {
    width: 16rem;
}

.navbar:hover .link-text {
    display: block;
}

.navbar:active .link-text {
    text-shadow: none;
}

.menu {
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--pink);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3ch;
    width: 100%;
}

.navbar:hover .menu img {
    display: none;
}

/* Next Button */

.next {
    display: flex;
    justify-content: center;
    font-weight: bold;
    padding-top: 2rem;
}

.next:active {
    background: transparent;
    color: var(--dark);
    text-shadow: 1px 1px 2px var(--pink);
}

/* Poem Headers */

.heading-title {
    display: flex;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    background-color: var(--white);
    border: 1px solid transparent;
    margin: 0;
    padding-top: 1rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
    letter-spacing: 0.15rem;
}

.poem-title {
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: var(--white);
    border: 1px solid transparent;
    margin: 0;
    padding-bottom: 1rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
    color: var(--gray-text);
}

/* Other */

.center-text {
    text-align: center;
}

.center {
    margin: auto;
    width: 50%;
    padding: 1rem;
}

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

.cover {
    margin-top: 7.5rem;
    height: 70vh;
}

.contents-link {
    color: var(--gray-text);
    font-weight: bold;
}

.citations {
    line-height: 0.5rem;
}

.citations li {
    list-style: disc;
}

.copyright {
    text-align: center;
    line-height: 2.5rem;
    margin-top: 15rem;
    margin-bottom: 10rem;
}

@media screen and (max-width: 690px) {
    pre {
        margin: 1rem 0 2rem;
        padding: 1rem 2.5rem 1rem 1rem;
        border-radius: 0.25rem;
        word-wrap: break-word;
        white-space: pre-line;
    }
}

@media screen and (min-width: 1275px) {
    main {
        margin-left: 20rem;
        margin-right: 22.5rem;
    }
} 

