html {
    background-color: #1e1f11;
}

body {
    width: 50%;
    max-width: 900px;
    background-color: #1e1f11;
    margin: 0 auto;
    color: #f7c977;
    padding: 1rem;
    box-sizing: border-box;
    font-family: monospace;
}

h1, h2, h3, h4, h5, h6, p, img, dl, dt, dd, ul, ol, li, summary, address, caption, th, td, pre, figcaption, legend {
    color: #f7c977;
}

a:link, header a:visited, footer a:visited {
    color: #91c8bf;
    text-decoration: underline dashed #91c8bf 1px;
}

a:visited {
    color: #bb9bdf;
}

a:hover {
    color: #1e1f11;
    background-color: #91c8bf;
}

a:visited:hover {
    color: #1e1f11;
    background-color: none;
}

a:active {
    color: #bb9bdf;
    background-color: #91c8bf;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    box-sizing: border-box;
}

header h1 {
    font-size: clamp(2rem, 6vw, 8vh);
    text-align: center;
    margin: 0.5em 0;
}

header img {
    max-height: 200px;
    width: auto;
    object-fit: cover;
    margin: 0 auto;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

header a:visited {
    color: #91c8bf;
    text-decoration: underline dashed #91c8bf 1px;
}

body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 5px;
}

footer {
    bottom: 0;
    margin-top: 50%;
    text-align: center;
    padding: 1rem 0;
}

summary {
    color: #91c8bf;
}

summary:hover {
    color: #1e1f11;
    background-color: #91c8bf;
}

.recommendations-summary {

    align-items: center;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0.5em;
}

.recommendations-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 0.5em;
}

.site-image {
    padding: 0.5em;
    width: 100px;
}

.site-description {
    text-align: left;
    padding: 0.5em;
}

.site-img {
    width: 80px;
    height: auto;
    display: block;
}

.entrysq p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* or center, if you prefer */
    align-items: flex-start;
}


.entrysq img {
    height: auto;
    width: auto;
    max-width: none;
    max-height: none;
    display: block;
}


/* --- MEDIA QUERIES --- */

@media screen and (max-width: 900px) {
    body {
        width: 100vw;
        margin: 0;
        padding: 1rem;
    }
}

@media screen and (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    header img {
        max-height: 150px;
    }

    nav a {
        font-size: 0.9rem;
    }

    body {
        padding: 0.8rem;
    }
}

@media screen and (min-width: 901px) {
    header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2rem;
    }

    header img {
        max-height: 150px;
        margin: 0;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
    }

    header h1 {
        text-align: left;
        margin: 0;
    }

    header nav {
        justify-content: flex-start;
        margin: 0.5rem 0;
    }
}
