/*
   Author: Henry Schabel
   Date: November 2, 2025
   File Name: styles.css
*/

/*body, h1, p, and div formatting*/
body {
  background-color: #f7f3ef;
  color: #333333;
  font-family: Verdana, Arial, sans-serif;
}

h1 {
  text-align: center;
}

p {
  text-align: center;
}

div {
  width: 80%;
  margin: 0 auto;
}

/*table formatting*/
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

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

thead:first-of-type {
background-color: #d8c3a5;
}

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

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

tr:nth-of-type(odd) {
  background-color: #ffffff;
}

th:first-of-type,
td:first-of-type {
  text-align: left;
}

/*caption tag*/
caption {
  caption-side: top;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

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

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

td.specialty {
  white-space: nowrap;
}

/*ID selector*/
#validation {
  text-align: center;
}

/*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;
  }
}
