/* David Stracola */

:root {
    --accent1: rgb(156, 158, 159);
    --accent4: rgb(86, 111, 163);
    --text: #325050;
}

p.indented {
    text-indent: 1rem;
}

button {
    border-radius: .27rem;
    background-color: var(--accent4);
    color: azure;
    border: none;
    font-weight: 600;
}

em {
    font-weight: 600;
}

button:hover,
button:focus {
    background-color: rgb(152, 172, 214);
    cursor: pointer;
}

html {
    background: linear-gradient(135deg, rgb(96, 152, 221), black);
    background-size: cover;
    background-attachment: fixed;
    /* Keeps the background fixed while scrolling */
    background-repeat: no-repeat;
    position: relative;
}

h1,
h2,
h3,
p {
    margin: .125rem;
    padding: 0;
}

h2 {
    color: var(--text);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    border: 0.1875rem;
    border-color: var(--accent1);
    box-sizing: border-box;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: #325050;
}

a:hover,
a:hover {
    font-weight: bolder;
    text-decoration: underline;
}

nav {
    margin: .5rem 0;

    & ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        list-style-type: none;
        padding-left: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    & ul li {
        flex-basis: 12rem;
        padding: 0.625rem 0;
        position: relative;
        text-align: center;

    }

    & a {
        color: white;
        text-decoration: none;
        display: block;
        text-align: center;
        border-radius: 0.5625rem;

    }

    & a#current {
        color: rgb(51, 51, 52);
    }

    & a:hover,
    a:focus {
        text-decoration: underline;
    }

    & ul li ul {
        display: none;
        position: absolute;
    }

    & li:hover ul,
    li:focus ul {
        display: block;
    }

    & a {
        font-weight: 600;
    }

}

main {
    display: flex;
    background-color: ghostwhite;
    padding: 1rem;
}

img {
    max-width: 45%;
    height: auto;
    object-fit: cover;
    margin: 2rem;
}

section {
    width: 100%;
    padding: 1.5625rem 1.875rem 1.25rem;
    color: var(--text);
    margin: 2rem;
    box-shadow: .3rem .3rem .3rem .125rem rgb(118, 118, 118);

    & h1 {
        font-size: 160%;
        margin-bottom: 0.3125rem;
    }

    & h2 {
        font-size: 130%;
        margin-bottom: 0.5rem;
    }

    & h3 {
        font-size: 110%;
        margin-bottom: 0.375rem;
    }


    & p {
        margin-bottom: 0.6875rem;
        clear: left;
    }

    & img {
        float: left;
        margin: 0.625rem;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

section:hover,
section:focus {
    box-shadow: .5rem .5rem .5rem .125rem;
}


footer {
    font-size: 90%;
    text-align: center;
    color: white;
    opacity: 80%;
    padding: 0.9375rem 1.875rem;
    padding: 0.9375rem 1.875rem;
}

footer a {
    color: ghostwhite;
}

footer p {
    font-size: 125%;
    margin: .425rem;
}

/* contact_form.html */

main form {
    margin: 2rem auto;
    padding: .9rem;
    color: var(--text);
    box-shadow: .3rem .3rem .3rem .125rem rgb(118, 118, 118);
}

main form:hover,
main form:focus {
    box-shadow: .5rem .5rem .5rem .125rem;
}

form label {
    font-weight: bold;
}

form fieldset {
    border: none;
}

form fieldset label {
    font-weight: normal;
}

form fieldset input {
    margin: .125rem 0;
}

form legend {
    border: none;
    font-weight: bold;
}

form input {
    margin: 1rem 0;
}

form button {
    margin: 1rem;
}


table {
    width: 100%;
    /* Make the table take up the full width of its container */
    border-collapse: collapse;
    /* Remove double borders */
    margin: 2rem 0;
    /* Add spacing above and below the table */
    font-size: 1rem;
    /* Set a readable font size */
    text-align: left;
    /* Align text to the left */
    background-color: #f9f9f9;
    /* Light background for the table */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
}

th,
td {
    border: 1px solid #ddd;
    /* Add a light border */
    padding: 0.75rem;
    /* Add padding inside cells */
}

th {
    background-color: var(--accent4);
    /* Darker background for headers */
    color: white;
    /* White text for headers */
    font-weight: bold;
    /* Make headers bold */
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}


@media (max-width: 1178px) {
    section img {
        width: 60%;
        margin: 1rem 2rem;
    }
}

@media (max-width: 1050px) {
    main {
        display: flex;
        flex-direction: column;
    }

    img {
        margin: 1rem auto;
        object-fit: contain;
    }

    section.index {
        width: 70%;
        margin: 1rem auto;
    }

    section {
        margin: 1rem auto;
    }


}

@media (max-width: 480px) {

    img {
        max-width: 30%;
        margin: 0.5rem auto;
    }
}