/* CSS Document used for the coffee table homework assignment
Author: Dominique Smartt
Course: ITWP 1000
File: styles.css
Information on using external CSS style sheet is located in Chapter 3.
Information on media queries is located in Chapter 7.
Information on tables and CSS formatting for tables is located in Chapter 8.
*/

body {
    margin-top: 1em;
    margin-bottom: auto;
    font-family: Arial, sans-serif;
    background-color: #faf7f2;
    color: #2f241b;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    color: #4e3422;
    margin-bottom: 0.3em;
}

p, div {
    margin: 10px;
    padding: 20px;
    line-height: 1.6em;
}

div {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

table {
    margin: auto;
    border: 5px solid #3f2a14;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse; /* optional, but nice */
    background-color: #fffdf9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

td, th {
    border-style: none;
    padding: 0.75em;
    width: auto;
    vertical-align: top;
}

tfoot td {
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
    background-color: #f5eee5;
}

tr:nth-of-type(even) {
    background-color: #eee7dd;
}

thead:first-of-type {
    background-color: #3f2a14;
    color: #fff;
}

caption {
    font-family: Impact, "Franklin Gothic Bold", "Arial Black", sans-serif;
    font-weight: bold;
    font-size: 1.75em;
    padding-bottom: 0.5em;
    color: #5b3a29;
}

.responsive {
    max-width: 100%;
    height: auto;
    border: 1px solid #51471a;
    border-radius: 10px;
    display: block;
    margin: 0 auto 1.5em auto;
}

td.price {
    white-space: nowrap;
}

td.specialty {
    white-space: nowrap;
    font-weight: bold;
}

#validation {
    text-align: center;
    padding-bottom: 20px;
}

#validation a {
    color: #5b2d82;
}

#validation a:hover {
    color: #8a4fb3;
}

@media only all and (max-width: 550px) {
    img {
        display: none;
    }
}