h1 {
    text-align: center;
    color: WHITE;
    font-family: 'Times New Roman', Times, serif;
}

h2 {
    color: white;
    font-family:'Times New Roman', Times, serif;
    margin-bottom: 5px;
}

h4 {
    color: rgb(69, 146, 241);
    text-align: center;
    margin: 0;
}

hr {
    color: grey;

}

body {
    background-image: url(../images/background.gif);
    font-family: 'Courier', Courier, monospace;
}

head {
    display: flex;
}


.fish-link {
    position: absolute;
    width: 20%;
}

.fish-link {
    max-width: 200px;
}

.fish-link:hover {
    transform: rotate(8deg)
}

.fish-image {
    position: relative;
}

.fish-link img {
    width: 100%
}

.fish-link img {
    max-width: 200px;
}
    
.fish-text {
    text-align: center;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white; 
    position: absolute;
    width: 100%;
    inset-block-start: calc(50% - 8px);
}

/* making sure text is in front of image on navigation fish */
.fish-text {
    z-index: 2;
} 

.fish-image {
    z-index: 1;
}

/* formatting what navigation links look like */
#go-back a:visited {
    color: black;
}

#go-back a:hover {
    color: rgb(58, 96, 177);
}

#go-back a:active {
    color: red;
}



.wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px
}

.tile {
    border: 2px dashed rgb(69, 146, 241);
    border-radius: 5px;
    color: white;
    padding: 5px;
    max-width: 305px;
    text-align: center;

    /* PROBLEM: stretches images when they're taller, javascript might fix but idk
    display: flex;
    flex-direction: column;
    */
}

.caption {
    text-align: center;
    padding: 3px;
    align-items: center;
}

/* works with flex, come back when you know js
.caption {
    height: 100%;
}
*/

.date {
    text-align: left;
    margin-bottom: 10px;
}

.art {
    max-height: calc(20vw - 10px);
    max-width: calc(100% - 5px);
}


.tile a {
    color: aliceblue;
}

.tile a:hover {
    color: blue;
}

.tile a:visited {
    color: rgb(107, 191, 255);
}





@media only screen and (max-width: 1200px) {
    .wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    .art {
        max-height: calc(25vw - 10px)
    }
}

@media only screen and (max-width: 1000px) {
    .wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .art {
        max-height: calc(33vw - 10px);
    }
}

@media only screen and (max-width: 700px) {
    .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .art {
        max-height: calc(50vw - 5px);
    }
}
