@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* =====================
   Base styles
   ===================== */

body {
    color: #2C1A0E;
    background-color: #E8D5A3;
    font-family: 'Libre Baskerville', serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

p, a, label, input, button {
    font-family: 'Libre Baskerville', serif;
}

hr {
    border-color: #2C1A0E;
}

/* =====================
   Header
   ===================== */

.header {
    display: flex;
    flex-wrap: wrap;
    border-style: none none solid none;
    border-width: 1px;
    border-color: #2C1A0E;
}

/* =====================
   Sort options
   ===================== */

#sort-options {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

/* Hide the actual radio buttons, use labels as buttons instead */
#sort-options input[type="radio"] {
    display: none;
}

#sort-options label {
    background-color: #C4955A;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #E8D5A3;
    border-radius: 4px;
}

/* Highlight the selected sort option */
#sort-options input[type="radio"]:checked + label {
    background-color: #7A4A1E;
    color: #F5EDD6;
    border-color: #2C1A0E;
}

.vr {
    border-left: 2px solid #2C1A0E;
    height: 30px;
}

/* =====================
   Album grid
   ===================== */

.all_albums {
    display: block;
    background-color: #F5EDD6;
}

.album_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding-left: 1vw;
}

.album_entry {
    display: flex;
    position: relative;
    align-items: stretch;
}

.album_art img {
    width: 350px;
    height: 350px;
    border: 2px solid #C4955A;
    display: block;
}

/* =====================
   Album details panel
   ===================== */

.album_details {
    display: none;
    background-color: #EFE3C2;
    border: 2px #C4955A;
    border-style: solid solid solid none;
    padding: 24px;
    height: auto;
}

.album_title {
    border-bottom: 1px solid #C4955A;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

/* =====================
   Tags and links
   ===================== */

.genre_tag {
    background-color: #C4955A;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #E8D5A3;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.recommender-link {
    color: inherit;
    font-style: italic;
}

.clear_filters{
    background-color: #C4955A;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #E8D5A3;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

/* =====================
   Responsive - mobile
   ===================== */

@media only screen and (max-width: 1199px) {
    body {
        font-size: 1.5em;
    }
    
    .header {
        justify-content: center;
        align-items: center;
    }

    .header_image {
        display: block;
        margin: auto;
        width: 80%;
    }

    .title {
        width: 100%;
        text-align: center;
    }

    .title img {
        margin: 0 auto;
        display: block;
    }

    .section_head {
        text-align: center;
    }

    .album_container {
        justify-content: center;
    }

    footer {
        text-align: center;
    }

    .album_art img {
        display: block;
        width: 75vw;
        height: 75vw;
    }

    .album_entry {
        display: block;
        max-width: 100%;
        min-width: 75vw;
    }

    .album_details {
        border-style: none solid solid solid;
    }
}

/* =====================
   Responsive - desktop
   ===================== */

@media only screen and (min-width: 1200px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .header_image {
        display: block;
        margin: 1vw;
        width: 50%;
    }

    .section_head {
        margin-left: 1vw;
    }
}