* {
    padding: 0;
    margin: 0;
}

body {
    background-color: rgb(247, 223, 146);
}

#logo {
    width: 120px;
    height: auto;
    padding: 4px 4px 4px 20px;
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    text-align: center;
}

.introMessage2 {
    margin-top: 40px;
}

.textblurb {
    color: white;
    padding: 0px;
    margin: 0px;
}

.navbar {
    background-color: rgb(85, 12, 12);
}

.navbar-search {
    justify-content: center;
}

.mainContainer {
    padding: 30px;
    background-color: rgb(247, 223, 146);
}

.favorites {
    padding: 20px 20px 20px 20px;
    border-right: 2px solid rgb(189, 158, 75);
}

.poetry-container {
    padding: 20px 50px 20px 50px;
}

/* ------------------- JS RELATED CLASSES AND IDS ------------------- */

/* Input box for user to enter search terms */
#input {
    height: 40px;
    background-color: white;
    border: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top: 1.5px solid black;
    border-left: 1.5px solid black;
    border-bottom: 1.5px solid black;
}

/* Search button - click to submit #input into api call */
#search {
    height: 40px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: 0px;
    border-top: 1.5px solid black;
    border-bottom: 1.5px solid black;
    border-right: 1.5px solid black;
}
#search:hover {
    background-color: rgb(233, 219, 200);
}

/* Button id, on click lists available authors */
#generateAuthorList {
    height: 40px;
    margin: 0px 0px 0px 10px;
    border-radius: 5px;
}
#generateAuthorList:hover {
    background-color: rgb(233, 219, 200);
}

.authorListMessage {
    margin: 5px 10px 10px 10px;
    padding: 0px 0px 5px 0px;
    border-bottom: 3px solid rgb(189, 158, 75);
}

.authorListContainer {
    padding-top: 20px;
}

/* Main box where poems, titles, and author content appears */
#contentArea {
    margin: 0px;
    padding: 0px;
}

/* for generated author list names */
.poemListName {
    text-align: center;
    font-size: 1em;
    padding: 5px 0px 5px 0px;
    border-bottom: 1.5px solid rgb(189, 158, 75, .5);
}

/* message on generated author list names */
.authorWorksMessage {
    margin: 0px 0px 20px 0px;
    padding: 0px 0px 5px 0px;
    border-bottom: 1px solid grey;
}

/* loaded title of a poem during list of author's works*/
.poemTitle {
    text-align: center;
    font-size: 1.2em;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.poemTitle:hover {
    color: rgb(33, 20, 150);
    cursor: pointer;
}

/* title loaded to content area when a poem is selected */
.contentTitle {
    text-align: center;
    font-size: 3em;
}

/* author loaded to content area when a poem is selected */
.contentAuthor {
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
    padding: 0px 0px 10px 0px;
    margin: 0px 0px 20px 0px;
    border-bottom: 5px solid rgb(189, 158, 75);
}

/* poem lines loaded to content area when a poem is selected */
.poemLine {
    text-align: center;
    font-size: 1.5em;
    padding: 0px;
    margin: 15px 0px 10px 0px;
    border-bottom: 1.5px solid rgb(189, 158, 75, .5);
}

#contentButtons {
    margin-top: 30px;
    padding: 0;
}

/* link to wikipedia article that is generated at the bottom of the page */
.wikiLink {
    color: rgb(20, 141, 150);
    font-size: 1em;
}

.wikiLink:hover {
    color: rgb(33, 20, 150);
}

/* Title for favorites list section */
#favoritesTitle {
    text-align: center;
    font-size: 2em;
}

/* style for a favorite's title */
.favoritesItemTitle {
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
    padding: 10px 10px 0px 10px;
    margin: 0px;
    border-bottom: 1px solid rgb(189, 158, 75);
}

/* style for a favorite's author */
.favoritesItemAuthor {
    text-align: center;
    font-size: 1.2em;
    margin: 0px;
}

/* add to favorites button */
.favoritesButton {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    border: 1px solid black;
    background-color: transparent;
    text-align: center;
}

.favoritesButton:hover {
    background-color: rgb(236, 236, 241, .25);
}

/* empty favorites button */
#emptyFavorites {
    justify-content: center;
    margin: 20px 0px 10px 0px;
    padding: 0px;
    background-color: transparent;
    border-radius: 20px;
    border: 1px solid black;
    display: none;
}

#emptyFavorites:hover {
    background-color: rgb(236, 236, 241, .25);
}

/* --------------------------------------------------------------------- */

@media (max-width: 767px) {

    .mainContainer {
        padding-top: 10px;
    }
    
    .navbar-search {
        padding: 0px;
        margin: 0px;
    }

#input {
    background-color: white;
    border: 1.5px solid black;
    border-radius: 0px;
    height: 40px;

}

#search {
    border: 1.5px solid black;
    border-radius: 0px;
    height: 30px;
}

#generateAuthorList {
    margin: 20px 0px 10px 0px;
    border-radius: 0px;
    height: 30px;
}

    .favorites {
        padding: 15px 10px 5px 10px;
        border: 1px solid rgb(189, 158, 75);
        border-radius: 10px;
    }

    #favoritesTitle {
        font-size: 1.8em;
    }

    #favoritesTitle:hover {
        cursor: pointer;
        color: brown;
    }

    #favorite-items {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        display: none;
    }

    #hideFavoritesButton {
        display: none;
    }

    #emptyFavorites {
        display: none;
    }

    .favoritesItemTitle {
        font-size: 2em;
        flex-basis: 20%;
        padding: 5px;
    }

    .favoritesItemAuthor {
        font-size: 1em;
        flex-basis: 20%;
        padding: 5px;
    }

    .poemLine {
        font-size: 1.3em;
    }

}