/* Mobile styles at top */

body
{
     background: url('../images/kansascity.jpg') no-repeat center fixed;
     background-size: cover;
}

/* Responsive images */

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

*
{
    box-sizing: border-box;
}

/* Main container */

.wrapper
{
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    border-style: groove;
    padding: 1em;
    background-color: lightgrey;
    color: black;
    overflow-wrap: break-word;
    min-width: 22.5em; /* 360px */
}

header
{
    text-align: center;
}

/* Menu bar */

nav ul
{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    display: flex;
    flex-direction: column; /* Make menu items vertical on mobile devices */
}

nav ul li
{
    float: left;
}

nav ul li a
{
    display: block;
    color: white;
    text-align: center;
    padding: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em; /* 16px */
}

nav ul li a:hover
{
    color: gold;
}

/* End of menu styling */

h1, h2, h3, p
{
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Portrait images */

.founders
{
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(12.5em, 1fr) ); /* 200px */
    gap: 5px;
    padding: 5px;
}

.founder
{
    background-color: black;
    padding: 10px;
    color: white;
    text-align: center;
}

.founder img
{
   aspect-ratio: 1;
   object-fit: contain;
   width: 75%; /* Decrease size of photos on mobile and tablet */
}

/* Trivia button */

#submit
{
    cursor: pointer;
    outline: 0;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 16px;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#submit:hover
{
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* End of Portrait images */

footer
{
    text-align: center;
}

/* Tablet styles go second */

@media (min-width: 50em) /* 800px */
{
    nav ul
    {
        flex-direction: row; /* Make menu items horizontal once screen is larger */
    }

    nav ul li a
    {
        padding: 1em 1em;
    }
}

/* Desktop styles go last */

@media (min-width: 64em) /* 1024px */
{
    .founder img
    {
        width: 100%; /* Increase size of portrait images once screen is desktop size */
    }

    .collection img
    {
        width: 50%; /* Decrease size of collection images once screen is desktop size */
    }
}
