html {
    background-color: #e5c3bf;
}

/* === Styling the broad formatting tags === */
header {
    text-align: center;
    width: 75%;
    background-color: #eaf2ff;
    padding: 0.25em;
    margin: auto;
    margin-top:0.5em;
    border: 3px solid rgb(255, 159, 159);
    border-radius: 25px;
}

section {
    width: 90%;
    background-color: #eaf2ff;
    padding: 1rem;
    margin: 1rem auto;
    border: 3px solid rgb(255, 159, 159);
    border-radius: 25px;
}

footer {
    text-align: center;
}

/* === Styling existing element tags === */

/* Inspired by Adrian's project to add an underline using border-bottom */
h1 {
    border-bottom: 3px solid rgb(116, 157, 227);
    width: 50%;
    margin:auto;
    padding: 2px;
    margin-top: 0.5em;
    color: #b45b6b
}

h2 {
    text-align: center;
    border-bottom: 3px solid rgb(116, 157, 227);
    width: 50%;
    margin:auto;
    padding: 2px;
    margin-bottom: 1em;
    color: #b45b6b
}

p {
    width:50%;
    margin: auto;
    color: rgb(17, 48, 77)
}

code {
    color: maroon;
}

a {
    color: #813041;
}

a:visited {
    color: #4a618d;
}

a:hover {
    color: rgb(35, 133, 224);
}

/* 
    obtained from SVG Repo at https://www.svgrepo.com/svg/481528/flower 
    - has a PD license
    - used instead of IconFinder because it became Magnific and started paywalling SVG downloads
*/
li {
    list-style-image: url("https://cdn0.iconfinder.com/data/icons/typicons-2/24/heart-12.png");
}

/* 
    Used the following resource to determine how to keep my image centered above my figcaption:
    https://stackoverflow.com/questions/19138758/how-to-align-caption-underneath-image
*/
figure {
    width: 30%;
    display: inline-block;
    text-align: center;
    border: 1px dotted rgb(255, 118, 118);
    padding: 5px;
}

figure image {
    vertical-align: top;
}

figcaption {
    color: rgb(17, 48, 77)
}

/* adding global styling to all images to ensure consistency */
img {
    width: 20rem;
    height: auto;
}

/* used a class to override previous setting for the image that was much longer than it was wide*/
.long-img {
    height: 20rem;
    width: auto;
}

/* === Styling classes === */
/* After seeing Chloe's example project use it, I experimented with flexboxes */

/* Usage of flex causes the list to turn 'flat' */
.nav-bar ul {
    display: flex;
    gap: 1.5em;
    justify-content: center;
}

.nav-bar li {
    color: rgb(17, 48, 77);
}

/* 
    Flex used to keep items in a row; align-items and justify-content properties are used with
    flex items for alignment; here, I used them to center the elements in both x and y directions.
*/
.image-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Used to allow text to wrap around an image. */
.img-wrap {
    float: left;
    margin-left: 5em;
    margin-right: 1em;
}

/* Applied previous flex principles to display the audio and video, but in a column this time. */
.media-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}