body { 
    background-color: rgb(145, 176, 235);
    /* font-family: 'Times New Roman', Times, serif; */
    font-family: sans-serif;
}

/* header */
#header {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    margin-bottom: 2vh;
}
.headerItem {
    border: 1px solid black;
    padding: 0.5em;
    box-shadow: 1vh 1vh rgb(0,0,0,0.25);
    background-color:papayawhip;
}
.headerItem p { margin: 0px; }
#title {
    /* center text */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3vh;

    /* font styling */
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    
    /* background */
    background-image: url(./media/checks.png);
    background-size: 100px 100px;
    animation: scrollDiagonal 15s linear infinite;
}
@keyframes scrollDiagonal {
    0% {background-position: 0 0;}
    100% {background-position: 100px -100px;}
}

#years, #themes { /* flex containers */
    display: flex; 
    gap: 0.5em;
    flex-wrap: wrap;
    font-weight: bold;
}
#years a, #themes a { /* flex items */
    padding: 0.5em 0;
    background-color: navajowhite;
    border: 1px solid black;
    cursor: pointer;
    box-sizing: border-box; 
    min-width: 0; /* don't overflow outside containing div */
    text-align: center;
}
#themes a {
    flex: 0 0 calc(50% - 0.25em); /* Do not grow, do not shrink, stay exactly 50% wide */
}
#years a {
    flex: 1;
}
#years a:hover, #themes a:hover {
    background-color: tan;
}

#bioText {
    font-style: italic;
}

#gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2vh;
    gap: 2vh;
}
.gallery-item {
    border: 1px solid black;
    box-shadow: 1vh 1vh rgb(0,0,0,0.25);
    background-color: papayawhip;
    text-align: center;
}
.gallery-item p { margin: 0.5em 1em; }
.gallery-item img { max-width: 100%; }

/* desktop layout */
@media screen and (min-width:500px) {
    #gallery { grid-template-columns: 1fr 1fr 1fr; }
}
