body {
    font-family: "Segoe UI", Arial, sans-serif;
    grid-template-columns: 1fr 90% 1fr;
}

.bg-img {
    background-image: url("homepage.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.padded2 {
    padding-left: 2%;
    padding-right:2%;
}

.white-centered {
    color: white;
    text-align: center;
}

.white-on-teal {
    background-color: #91A2BA;
    text-align: center;
    color: white;
}

/*655F55 595959 262626*/

.white-on-olive {
    background-color: #757F67;
    text-align: center;
    color: white;
}

.white-on-red {
    color: white;
    background: red;
}

.white-on-red:visited {
    color:white;
}

.header {
    position: sticky;
    top: 0;
    padding: 10px 16px;
    background-color: #F9F9F9;
}

header nav a {
    border: none;
}

details {
    background-color: #F9F9F9;
}

.cursive {
    font-family: "Bradley Hand", Arial, sans-serif;
    display: inline;
}

.wrap-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.nowrap-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.icon-link-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center;
}

.centered-link {
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligns icon and text in a vertical stack */
    text-align: center;
    text-decoration: none;
    gap: 8px; /* Adds space between the icon and the text below */
}

.wrap-row img {
    max-width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    flex: 1 1 auto;
    /* Allow images to grow and shrink */
    object-fit: cover;
}

/* Optional: Add media queries for responsiveness */
@media (max-width: 600px) {
    .wrap-row img {
        flex: 1 1 100%;
        /* Full width on small screens */
    }
    .wrap-row div {
        flex: 1 1 100%;
        /* Full width on small screens */
    }
}

/* hamburger menu */
/* Here we start */
nav {
    display: flex;
    justify-content: space-between;
}

nav ul {
    /* Make the markers disappear */
    list-style-type: none;
}

nav ul li {
    /* Puts the elements in a single line */
    display: inline-flex;
    margin: 0.3em 1em;
}

/* These two lines make the checkbox and the label disappear when we are in desktop mode. */
nav input[type="checkbox"],
nav label {
    display: none;
}

/* This start to get interesting: we go into mobile phone mode */
@media (max-width: 576px) {
    /* Here is the magic: if the checkbox is not marked, the adjacent list is not displayed */
    input[type="checkbox"]:not(:checked) + ul {
        display: none;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
    }

    /* Styling the menu icon, the checkbox stays hidden */
    nav label {
        text-align: right;
        display: block;
        padding: 0.5em;
        line-height: 1.6em;
        align-self: center;
    }

        /* Because we are in mobile mode, we want to display it as a vertical list */
    nav ul {
        display: block;
    }

    /* We have two lists: the first one are the always visibile items in the
      menu bar. The second one is the one that will be hidden */
    nav ul:last-child {
        width: 100%;
        flex-basis: 100%;
    }

    nav ul li {
        margin-bottom: 0;
        width: 100%;
        text-align: right;
        padding: 0.5em;
    }

    /* 1. Allow header to wrap onto a second line when needed */
    header.header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    /* 2. Let the <label> and <ul> behave as direct children of <header> */
    header.header nav {
        display: contents;
    }

    /* 3. Keep the logo/title block and hamburger icon on the top row */
    header.header > .wrap-row {
        flex: 1 1 auto;
    }

    header.header label[for="menu"] {
        cursor: pointer;
    }

    /* 4. Hide the checkbox and collapsed menu by default */
    header.header #menu {
        display: none;
    }

    header.header nav ul {
        display: none;
    }

    /* 5. When checked, push the menu onto a full-width row below the header */
    header.header #menu:checked ~ ul {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        width: 100%;
        order: 2;
        margin-top: 1rem;
        padding: 0;
        list-style: none;
        text-align: center;
    }
}
