@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;
}

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;
}

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;
}

toy-grid
{
    display:flex;
    flex-wrap:wrap;
    justify-content: space-between;
}

.toy img
{
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.toy h3
{
    margin-bottom: 5px;
}

.toy p
{
    margin-top: 0;
}

@media only screen and (max-width:768px)
{
    body{
        width: 100%;
        margin:0;
    }
    nav li
    {
        float: none;
        font-size: x-large;
        width:100%;
    }
    nav a
    {
        border-bottom: 1px solid black;
    }
    nav #navicon
{
    display: block;
    border-bottom: none;
    background-color: transparent;
    line-height: normal;
    text-align: left;
    padding: 5px 10px;
}
#navicon img
{
    width: 50px;
    height: 50px;
}
nav ul
{
    display: none;
}
#navicon:hover+ul, nav ul:hover
{
    display:block
}
main>img
{
    width: 90%;
    float:none;
}
.toy
{
    width: 100%;
}
}

@media only screen and (min-width:769px)
{
    html
    {
        background-image: url(background.jpg);
    }
    body
    {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    nav ul li
    {
        width: 33.33%;
        float:left;
    }
    #navicon
    {
        display: none;
    }
    main>img
    {
    width: 25%;
    padding: 25px;
    float: right;
    }
    .toy
    {
        width:31%;
    }
}