
/* CSS Document used for the coffee table homework assignment
Author: Darnell Jackson
Course: ITWP 1000
File: styles.css
*/

body {
    background-color: #f5f5dc;
    color: #3f2a14;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

h1 {
    text-align: center;
    margin-top: 0.5em;
}

p {
    font-size: 1em;
    line-height: 1.5em;
}

div {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* table formatting */

table {
    width: 100%;
    border: 5px solid #3f2a14;
    border-spacing: 0;
    background-color: #ffffff;
}

td,
th {
    border-style: none;
    padding: 0.5em;
}

th {
    font-size: 1.2em;
}

thead {
    background-color: #3f2a14;
    color: #ffffff;
}

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

tfoot {
    text-align: center;
    font-style: italic;
    background-color: #d8d8d8;
}

tfoot td {
    padding: 0.75em;
}

/* caption tag */

caption {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    font-weight: bold;
    padding-bottom: 0.5em;
}

/* responsive image class */

.responsive {
    max-width: 100%;
    height: auto;
}

/* classes */

.price {
    white-space: nowrap;
}

.specialty {
    white-space: nowrap;
}

/* ID */

#validation {
    text-align: center;
}

/* media query that hides the image when the screen size is 550 pixels or lower */

@media only screen and (max-width: 550px) {
    .responsive {
        display: none;
    }
}