main section {
    margin-bottom: 3rem;
}

section:first-of-type {
    text-align: center;
}

article img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#download-badge {
    width: auto;
    border-radius: var(--pico-border-radius);
    max-width: 150px;
    display: inline-block;
}

h1 {
    color: var(--pico-primary);
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1.1;
    word-wrap: break-word;
}

h3 {
    color: var(--pico-primary);
}

#project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    #project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

video {
    width: 90%;
    max-width: 600px;
    border-radius: var(--pico-border-radius);
}

#arduino-video {
    max-height: 400px;
}

#blackjack-image {
    height: 400px;
    border-radius: var(--pico-border-radius);
}

#enchantments-unbound {
    height: 400px;
    border-radius: var(--pico-border-radius);
}

#cifar10 {
    height: 400px;
    border-radius: var(--pico-border-radius);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-color: var(--pico-primary);
    border-radius: 10px;
    border-style: solid solid var(--pico-primary);
}

.project-card footer {
    margin-top: auto;
    text-align: center;
    padding-top: 1rem;
}

.project-card p {
    flex-grow: 1;
}

.project-card small {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

nav {
    position: sticky;
    top: 0;
    background-color: var(--pico-background-color);
}

html {
    scroll-behavior: smooth;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .nav-desktop-only {
        display: none;
    }
}

nav a {
    font-size: 0.9rem;
}

#resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    #project-grid {
        grid-template-columns: repeat(2, 3fr);
    }
}

#avatar {
    display: inline;
    height: 1rem;
    width: 1rem;
    margin-right: 0.5rem;
}

nav ul li a {
    display: flex;
    align-items: center;
}

section {
    scroll-margin-top: 80px;
}

#contact-section li {
    list-style: none;
}

#footer-mark {
    text-align: center;
    margin-top: 2rem;
}

#inventor-div {
    img {
        max-width: 30%;
        display: inline;
    }
}

#raspberry-div {
    img {
        max-height: 50%;
    }
}

#laptop-div {
    img {
        max-height: 50%;
    }
}

.rounded {
    border-radius: var(--pico-border-radius);
}