@charset "UTF-8";

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

body
{
    font-family: Garamond, 'Time 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;
}

#navicon {
    display: none;
}

@media only screen and (min-width: 768px)
{
    body
    {
        width: 100%;
        margin: 0;
    }

    nav li
    {
        float: none;
        font-size: x-large;
        width: 100%;
    }

    nav a
    {
        border-bottom: 1px solid;
    }

     #navicon {
        display: none;
    }

    nav ul {
        display: block;
    }

    .toy-grid
    {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .toy img
    {
        width: 100%;
        height: auto;
    }

    .toy
    {
        text-align: center;
    }
}

@media only screen and (max-width: 767px)
{

     #navicon {
        display: block;
        width: 50px;
        margin: 0 auto;
        padding: 5px;
    }

    #navicon img {
        width: 50px;
        height: auto;
        display: block;
    }

    nav ul {
        display: none;
    }

    nav:hover ul {
        display: block;
    }

    nav ul li {
        float: none;
        width: 100%;
    }
    .toy-grid
    {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .toy img
    {
        width: 100%;
        height: auto;
    }

    .toy
    {
        text-align: center;
    }
}