/*
    Title: Homework 4 - Fun with CSS, Tables & Layout
    Author: [Your Name]
    Date: [Today's Date]
    Description: CSS file for coffeetable.html
*/

/* body, h1, p, and div formatting */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    width: 90%;
    background-color: #fff;
    color: #000;
}

h1 {
    text-align: center;
}

p {
    text-align: center;
}

div {
    text-align: center;
}

/* table formatting */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px auto;
}

th, td {
    border: 1px solid #000;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #c2a661;
    color: #fff;
}

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

tfoot {
    background-color: #e6e4e1;
    font-size: 0.9em;
}

/* caption tag */
caption {
    font-weight: bold;
    font-size: 1.3em;
    margin: 10px;
}

/* responsive image class */
.responsive {
    width: 100%;
    height: auto;
}

/* price and specialty classes */
.price {
    white-space: nowrap;
}

.specialty {
    white-space: nowrap;
}

/* ID */
#validation {
    text-align: center;
    font-size: 0.9em;
}

/* media query that hides the image when the screen size is @ 550 pixels or lower */
@media screen and (max-width: 550px) {
    img.responsive {
        display: none;
    }
}