@charset "UTF-8";

html 
{
    background-image: url(background.jpg);
}

body
{
    font-family: Garamond, 'Times New Roman', serif;
    color: rgb(91,91,91);
    background-color: ivory;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

header
{
    text-align: center;
    padding: 20px;
}

h1, h2 
{
    text-shadow: 4px 6px 5px blueviolet;
}

h2
{
    font-size: 1.3em;
}

nav ul
{
    list-style: none;
    margin:0;
    padding:0;
}

nav ul li
{
    display: block;
    width: 33.33%;
    float: left;
}

nav a
{
    display: block;
    color: darkblue;
    font-size: 1.5em;
    font-weight: bold;
    background-color: pink;
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
}

nav a:hover
{
    text-decoration: underline;
    color: yellow;
}

main
{
    padding: 30px;
    margin-top: 35px;
}

main>img
{
    width: 25%;
    padding: 25px;
    float: right;
}

header>img
{
    width: 100%;
}

footer
{
    clear: both;
    background-color: pink;
    color: rgba(0,0,255,.8);
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    margin-top: 10px;
    padding:10px;
}

ul li 
{
    list-style-type: square;
}
@media only screen and (max-width: 768px) {
   body { 
    width: 100%;
    margin: 0;
   }
   nav {
    float: none;
    font-size: x-large;
    width: 100%;
   }
   nav a {
    border-bottom: 1px solid black;
   }
   main > img {
    width: 90%;
    float: none;
   }
   .toy-grid{
    grid-template-columns: 1fr;
   }
   .toy img {
    height: auto;
   }
}
@media only screen and (min-width: 769px) {
    html {
        background-image: url(background.jpg);
    }
}
.toy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

}
.toy {
    text-align: center;
}
.toy img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
h1{
    text-align: center;
    /* I know this wasnt on the assignment but it was bugging me where it sat */
}