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

body {
    margin-top: 1em;
    margin-bottom: auto;
    font-family: Arial, sans-serif; /* Fixed typo (snas-serif → sans-serif) */
}

h1 {
    text-align: center;
    font-size: 2.5em;
}

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

/* Table formatting */
table {
    margin: auto;
    border: 5px solid #3f2a14;
    width: 100%;
    border-spacing: 0;
}

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

tfoot td {
    font-size: 9px; /* Fixed typo (fornt-size → font-size) */
    font-style: italic;
    text-align: center; /* Fixed typo (sencer → center) */
}

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

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

/* Caption tag */
td.caption {
    font-family: Impact, "Franklin Gothic Bold", "Arial Black", "sans-serif";
    font-weight: bold;
    font-size: 1.75em;
    padding-bottom: 0.5em;
}

/* Responsive image class */
td.responsive {
    max-width: 100%;
    height: auto;
    border: 1px solid #51471A;
    border-radius: 10px;
}

td.price, td.specialty {
    white-space: nowrap;
}

/* ID */

/* Define the 'validation' ID */
#validation {
    text-align: center;
}

/* Media query */

/* Hide the image when the screen width is 550px or lower */
@media (max-width: 550px) {
    img {
        display: none;
    }
}
