header,
h1,
h2,
footer,
ul,
il {
    font-family: 'Yusei Magic', sans-serif;
}


header {
    color: white;
    background-color: #001524;
    text-align: center;
    padding: 20px;
}


.cakes {
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #ffae42;
    color: black;
    font-family: 'Source Code Pro', monospace;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.heading {
    display: flex;
    flex-direction: column;
}


.heading h1 {
    font-size: 25px;
    margin: 10px;

}

.motto {
    font-size: 20px;
    font-style: italic;
    font-weight: normal;
    margin: 5px;
    color: white;
}


h2 {
    font-size: 25px;
    text-align: center;
    text-decoration: none;
    color: black;
    padding-bottom: 0px;
}


ul,
li {
    font-size: 18px;
}


footer {
    color: white;
    background-color: #001524;
    padding: 1rem;
    display: flex;
    flex-flow: column;
    font-size: 15px;
    text-align: center;
    padding-bottom: 20px;
}


main {
    padding: 10px;
}


nav {
    background-color: #156160;
    text-align: center;
    box-shadow: 0 5px 15px gray;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    width: 100%;
}

nav ul {
    list-style-type: none;
    /*this removes the bullet points on the side of each list item*/
    margin: 0;
    padding: 0;
    overflow: hidden;
}

nav ul li a {
    display: block;
    /*this places the nav in a block for the small screen view*/
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    /* this removes the underline from every list item*/
    font-size: 1rem;
}

nav button {
    background-color: transparent;
    border: none;
    font-size: 30px;
    color: white;
}


nav ul li.active a {
    background-color: #001524;
    color: white;
}

/*always place .active before "hover" so it can work properly*/


nav a:hover {
    background-color: #F8F8FF;
    color: black;
    transition: all 0.3s ease;
}

nav ul.hide {
    display: none;
}


.mygallery {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
    justify-content: center;
    grid-row-gap: 10px;
    padding: 10px;
    margin-bottom: auto;
}

figure {
    margin: 0 auto;
}

img[data-src] {
    /*it goes from bluring to not bluring above after 2 seconds. By specificity order this code takes priority over the img above. */
    filter: blur(3px);
}

.mygallery figcaption {
    background-color: lightblue;
    border: thin silver solid;
    padding: 5px;
    text-align: center;
    font-family: 'Lato', sans-serif;

}


.mygallery img {
    filter: blur(0px);
    transition: filter 0.6s;
    max-width: 100%;
}


#copy {
    font-size: 20px;
}