/* Lab 3 stylesheet */
:root {
    --footer-color: lightblue;
}

body {
    background-color: rgb(240, 240, 240);
    color: #222222;
    font-family: "Roboto", sans-serif;
    margin: 0;
    font-size: 1rem;
}

h1 {
    color: hsl(210, 70%, 40%);
    text-align: center;
    text-decoration: underline;
}

h2 {
    color: orange;
}

p {
    color: rgba(50, 50, 50, 0.9);
}

section {
    background-color: white;
}

main {
    width: 80%;
    max-width: 900px;
    min-width: 300px;
    margin: auto;
    padding: 20px 30px 20px 30px;
}

section {
    background-color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    border-style: solid;
    border-color: #cccccc;
    border-width: 2px;
    border-radius: 12px;
    position: relative;
}

img {
    width: 200px;
    height: auto;
    border: 3px solid hsl(210, 50%, 60%);
    padding: 5px 10px 5px 10px;
    margin: 10px 0 10px 0;
}

nav {
    position: sticky;
    top: 0;
    background-color: white;
}

span {
    display: inline;
}

a {
    display: inline-block;
}

.subtitle {
    color: color(display-p3 0.2 0.4 0.8);
    font-size: 2em;
    margin-top: 12pt;
    padding-left: 0.2in;
}

.hero-note {
    width: 90%;
}

.hidden-note {
    display: none;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.flex-item {
    background-color: #e6f0ff;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
}

.grid-item {
    background-color: #fbeecf;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

@media screen and (max-width: 768px) {
    main {
        width: 95%;
    }

    .flex-container {
        flex-direction: column;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    img,
    video {
        width: 100%;
        height: auto;
    }
}

* {
    box-sizing: border-box;
}

.flex-item {
    color: black;
}

#attendance {
    background-color: #f9f9f9;
}

section {
    margin-bottom: 20px;
}

input[type="text"] {
    border: 1px solid gray;
}

button:hover {
    background-color: lightgray;
}

button:active {
    background-color: gray;
}

h2, h3 {
    font-family: Arial, sans-serif;
}

section p {
    line-height: 1.5;
}

nav > a {
    text-decoration: none;
}

h2 ~ p {
    color: #444444;
}

h2 + p {
    font-weight: bold;
}

section.flex-section {
    border: 2px solid #cccccc;
}

section:has(img) {
    background-color: #eef7ff;
}

footer {
    background-color: var(--footer-color, lightblue);
    color: color-mix(in srgb, blue 50%, white 50%);
}

nav {
    a {
        color: blue;
    }
}

audio {
    display: block;
}

