/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    background-color: rgb(39, 101, 176);
    color: azure;
    font-family: Arial, sans-serif;
    padding: 20px;
    line-height: 1.5;
    font-size: 1em;
}

/* Header */
header {
    max-height: 190px;
    background-color: #32c169;
    background-image: url(/images/coding.jpg);
    background-position: center;
    background-size: cover;
    color: azure;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

header h1 {
    font-family: "Playwrite US Modern", cursive;
    font-size: 1.25em;
    margin-bottom: 10px;
}

/* Header image */
header img {
    display: block;
    margin: 10px auto;
    width: 125px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

/* Introduction section */
.introduction {
    background-color: rgba(4, 35, 73, 0.8);
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 1em;
}

/* Main content */
main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

main div {
    flex: 1;
    background-color: rgba(4, 35, 73, 0.8);
    padding: 15px;
    border-radius: 10px;
}

/* Headings inside main */
main h2 {
    margin-bottom: 8px;
    color: yellow;
}

/* Navigation links */
main nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

main nav a {
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: azure;
}

main nav a:hover {
    color: rgb(2, 75, 51);
    background-color: yellow;
}

/* Hide specific links */
a.hide {
    display: none;
}

/* Hobbies nav */
.hobbies-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hobbies-nav a {
    padding: 5px 10px;
    border-radius: 5px;
    color: azure;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hobbies-nav a:hover {
    color: rgb(2, 75, 51);
    background-color: yellow;
}

/* Lists */
main ul {
    list-style-type: disc;
    padding-left: 20px;
}

main li {
    margin-bottom: 5px;
}

/* Flex containers for links */
.link-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.link-box a {
    background-color: transparent;
    padding: 10px 15px;
    border-radius: 5px;
    color: azure;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-box a:hover {
    color: rgb(1, 58, 39);
    background-color: yellow;
}

/* Photos section */
.photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.photos figure {
    flex: 1 1 200px;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.hometown .photos figure:nth-child(1) {
    background-image: url(/images/city_of_prineville.jpg);
}

.hometown .photos figure:nth-child(2) {
    background-image: url(/images/viewpoint.jpg);
}

/* Hometown specific header */
.hometown header {
    background-image: url(/images/prineville.jpg);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 10px;
}

.hometown header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

.hometown h1 {
    font-size: 3vw;
    margin: 0 auto;
}

.hometown .content {
    font-family: "Playwrite US Modern", cursive;
    padding: 16px;
}

/* Footer */
footer {
    background-color: #222;
    color: #f5f5f5;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 80px;
}



/* Tablets */
@media (max-width: 900px) {
    main {
        flex-direction: column;
    }

    header img {
        width: 125px;
        height: 125px;
    }

    header h1 {
        font-size: 1.75em;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        font-size: 0.9em;
        padding: 10px;
    }

    header {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header img {
        width: 100px;
        height: 100px;
    }

    .introduction {
        font-size: 0.9em;
        padding: 10px;
    }

    main div {
        padding: 10px;
    }

    main nav a {
        margin-bottom: 5px;
        padding: 5px 8px;
        font-size: 0.9em;
    }

    .hobbies-nav {
        flex-direction: column;
        gap: 5px;
    }

    .photos figure {
        flex: 1 1 100%;
    }
}
