/* Global Reset */
html, body, abbr, article, aside, audio, blockquote, button,
canvas, code, div, dl, dt, embed, fieldset, figcaption,
figure, footer, form, h1, h2, h3, h4, h5, h6, header, iframe,
img, input, label, legend, li, nav, object, ol, option, p,
pre, q, section, select, table, tbody, td, tfoot, th, thead,
tr, ul, video {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    font-family: Calibri, sans-serif;
    background-color: #221900;
    color: LightCyan;
    padding-top: 0.5em;
    font-size: 1.2em;
}

/* Header Styling */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4em 0;
    width: 100%;
    color: Coral;
    background-color: #213e69;
    margin-bottom: 1rem;
    font-size: 1.5em;
}

/* Comment Section Styling */
.comment {
    display: flex;
    justify-content: center;
    font-family: Cambria, serif;
    font-size: 1.4em;
    color: LightSkyBlue;
    margin-bottom: 2rem;
}

/* Main Content Styling */
main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: flex-end;
    flex-grow: 1;
    max-width: 960px;
    font-family: Optima, Calibri, sans-serif;
    row-gap: 1.5em;
    padding-bottom: 3.5em;
}

/* Heading Styling */
h1 {
    padding-left: 0.5em;
    font-size: 2em;
    font-weight: 400;
}

/* Links */
a {
    color: darkorchid;
}

a:hover {
    color: DeepSkyBlue;
    text-decoration: underline;
}

/* Thumbnail Styling */
.thumbnail {
    width: 120px;
    height: 170px;
}

/* Caption Title Styling */
.caption-title {
    font-family: Cambria, serif;
    color: LightSkyBlue;
    font-size: 1.2em;
    font-weight: 200;
}

/* Responsive Typography and Layout */

/* Tablets */
@media (max-width: 768px) {
    body {
        font-size: 1em;
    }

    header {
        font-size: 1.2em;
        padding: 0.3em 0;
    }

    .comment {
        font-size: 1.2em;
    }

    main {
        max-width: 90%;
        row-gap: 1em;
    }

    h1 {
        font-size: 1.8em;
    }

    .thumbnail {
        width: 100px;
        height: 140px;
    }

    .caption-title {
        font-size: 1em;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    body {
        font-size: 0.8em;
    }

    header {
        font-size: 1em;
        padding: 0.2em 0;
    }

    .comment {
        font-size: 1em;
        margin-bottom: 1.5rem;
    }

    main {
        max-width: 95%;
        row-gap: 0.8em;
    }

    h1 {
        font-size: 1.5em;
    }

    .thumbnail {
        width: 80px;
        height: 110px;
    }

    .caption-title {
        font-size: 0.9em;
    }
}
