/* 
Author: Mizanul Haque
Assignment: Homework 4 - Fun with CSS, Tables & Layout
Date: September 4, 2025
*/

/* General page formatting */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

h1 {
    text-align: center;
    color: #4a2c2a;
}

p {
    font-size: 1em;
}

div {
    max-width: 1000px;
    margin: 0 auto;
}

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

table, th, td {
    border: 1px solid #555;
}

th, td {
    padding: 10px;
    text-align: left;
}

thead {
    background-color: #e6e6e6;
}

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

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

tr:first-of-type {
    background-color: #ddd;
}

/* caption tag */
caption {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

/* responsive image class */
.responsive {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

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

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

/* validation ID */
#validation {
    text-align: center;
    margin-top: 20px;
}

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