:root {
    --body-bg: orange;
    --nav-text: orange;
    --nav-text-hover: black;
    --nav-bg: black;
    --nav-bg-hover: orange;
    --main-container: white;
    --border-and-text: rgb(0, 0, 0);
    --details-bg: silver;
}

body {

    /* Responsible for text and border colors */

    color: var(--border-and-text);
    text-align: center;

    /* Responsible for centering the element */

    margin: 0 auto;

    /* Change font here! */

    font-family: 'Courier New', Courier, monospace;

    /* A repeated background for the body element, put a link to the image or put color, gradient, anything you want */

    background: var(--body-bg);
    background-size: 25%;
    background-repeat: repeat;
}

img {
    width: 100%;
}

header {
    background: silver;
    height: 5em;
}

.wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

main {
    background: var(--main-container);
    padding: 1em;
    margin-bottom: 1em;
    margin-top: 1em;
    max-width: 80vh;
    -webkit-box-shadow: 10px 8px 0px 5px var(--border-and-text);
    box-shadow: 10px 8px 0px 5px var(--border-and-text);
}

fieldset {
    border: 8px double;
}

legend {
    font-size: xx-large;
    margin: 0 auto;
}

.info-card {
    display: flex;
    border: 2px solid var(--border-and-text);
}

.info-card-desc {
    flex: 2;
    text-align: left;
    margin: 1em;
    border-right: 1px solid var(--border-and-text);
}

.info-card img {
    width: 250px;
    aspect-ratio: 1/1;
    object-fit: cover;
    flex: 1;
    height: 250px;
}

.nav-links {
    list-style: none;
    margin-right: 1em;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: bolder;
    font-size: large;
}

.nav-links li {
    background: var(--nav-bg);
    padding: 1em;
    border: 2px solid var(--border-and-text);
}

.nav-links li:hover {
    background: var(--nav-bg-hover);
    border: 2px solid var(--border-and-text);
    color: var(--nav-text-hover);
}

.decor {
    height: 40px;
    background: url("./images/corn.gif");
    background-size: 40px;
}

ul.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

/* This section puts brackets between links to socials */

ul.socials>li:first-of-type::before {
    content: "[ ";
}

ul.socials>li:last-child::after {
    content: " ]";
}

ul.socials>li::after {
    content: " |\00a0";
}

details {
    background: var(--details-bg);
    padding: 1em;
    margin-bottom: 1em;
    border: 2px solid;
}

details summary {
    padding-left: 1em;
    text-align: left;
}

details summary:hover {
    cursor: pointer;
}

/* Style for mobile screens */

@media only screen and (max-width: 800px) {
    .wrapper {
        flex-direction: column;
    }

    .nav-links {
        display: flex;
        margin: 0 auto;
        padding: 0;
        max-width: 80vh;
    }

    main {
        margin: 0 auto;
    }

    .info-card {
        flex-direction: column;
    }

    .info-card img {
        width: 50%;
        max-height: 250px;
        margin: 0 auto;
    }

    .info-card-desc {
        border-right: none;
        border-bottom: 1px solid;
    }
}

/***
EZ Gallery by netfriend - https://netfriend.neocities.org/ez-gallery/
Released under the Unlicense - https://unlicense.org/
***/

.ezgallery.montage {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ezgallery.montage img {
    flex: auto;
    margin: 0 5px 5px 0;
    object-fit: contain;
    object-position: bottom;
}

.ezgallery.horizontal {
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: minmax(100px, auto);
}

.ezgallery.horizontal a {
    text-align: center;
}

.ezgallery.horizontal img {
    text-align: center;
    vertical-align: middle;
    margin: 0 5px 5px 0;
    object-fit: contain;
    object-position: bottom;
    border: 1px solid var(--border-and-text);
}

.ezgallery.horizontal img:hover {
    transform: translateY(-20px);
    transition: ease-in 0.1s;
    -webkit-box-shadow: 10px 8px 0px 5px var(--border-and-text);
    box-shadow: 10px 8px 0px 5px var(--border-and-text);
}