* {
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(to bottom, #d3d3d3, #ffffff);
    color: #666666;
    font-family: Verdana, sans-serif;
    background-attachment: fixed;
    margin: 0px;
}

header {
    background-color: #9f0000;
    color: #FFFFFF;
    font-family: Georgia, 'Times New Roman', Times, serif;
    grid-row: 1 / 2;
    grid-column: 2 / 8;
}

a {
    color: white;
    text-decoration: none;
}

h1 a {
    text-decoration: none;
}

header h1 {
    color: white;
    padding-left: 2rem;
}

nav {
    font-weight: bold;
    background-color: #9f0000;
    top: 0;
    grid-row: 1 / 2;
    grid-column: 4 / 8;
}

nav ul {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-flow: row;
    flex-flow: nowrap;
    list-style-type: none;
}

nav ul li {
    width: 100%;
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    padding: 2rem;
    display: block;
    text-align: center;
}

nav a:hover {
    background-color: #e24800;
}

main {
    background-color: #ffffff;
    padding-left: 2rem;
    padding-right: 2rem;
    grid-row: 4 / 5;
    grid-column: 2 / 8;
}

main img {
    padding-left: 2rem;
}

h1 {
    color: #000000;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

h3 {
    color: #000000;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

table {
    margin: 0 auto;
    border: 0.5px solid #000000;
    width: 100%;
    border-collapse: collapse;
    color: #000000;
}

tr:nth-of-type(even) { 
    background-color: #6ecf00; 
} 

td {
    padding: 6px;
    border: 0.5px solid #000000;
    text-align: center;
}

th {
    padding: 6px;
    border: 0.5px solid #000000;
}

form {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: minmax(200px, 1fr);
    gap: 1rem;
    width: 100%;
}

input {
    font-size: 0.75rem;
    padding: 10px;
    color: #dcdcdc;
    background-color: #da6129;
    border: none;
}

footer {
    font-size: .70rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    grid-row: 5 / 6;
    grid-column: 2 / 8;
}

footer a {
    color:#000000;
}

#black {
    color:#000000;
}

#fancyfont {
    font-family: 'Courier New', Courier, monospace;
}

#submitbutton {
    background-color: #820000;
}

#homeimg {
    height: 300px;
    background-image: url(images/game.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 2 / 8;
}

#uno {
    height: 140px;
    width: 155px;
    background-image: url(images/uno.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}

#fivecrowns {
    height: 100px;
    width: 140px;
    background-image: url(images/fivecrowns.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}

#parcheesi {
    height: 150px;
    width: 150px;
    background-image: url(images/parcheesi.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}

#pinochle {
    height: 120px;
    width: 150px;
    background-image: url(images/pinochle.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}

#skipbo {
    height: 140px;
    width: 160px;
    background-image: url(images/skipbo.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}

#geekout {
    height: 200px;
    width: 140px;
    background-image: url(images/disneygeekout.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}

#triviapursuit {
    height: 150px;
    width: 150px;
    background-image: url(images/trivialpursuit.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    padding: 10px;
}


#grid {
    display: grid;
    grid-auto-rows: minmax(0px, auto);
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
}

#redbar {
    background-color: #9f0000;
    grid-row: 1 / 2;
    grid-column: 1 / 9;
}

@media only screen and (max-width: 992px) {

    nav {
        grid-row: 2 / 3;
        grid-column: 1 / 9;
    }

    header {
        background-color: #820000;
    }

}

@media only screen and (max-width: 768px) {
    header h1 {
        background-image: none;
    }

    nav {
        position: static;
        grid-row: 2 / 3;
        grid-column: 1 / 9;
    }

    nav ul {
        flex-flow: column;
    }

    table {
        font-size: small;
    }

}
