body {
  margin: 0;
}

main {
  background-image: url(/images/halftone2.png);
}

/* -------------------------- typography ----------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Vast Shadow", serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
}

p, a, li, table, label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

p, a, li {
  font-size: clamp(1rem, 1vw, 1.25rem);
}

table {
  font-size: clamp(.8rem, 90vw, 1rem);
}

h1 {
  font-size: clamp(2.5rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.75rem, 2vw, 2.25rem);
}

h4 {
  font-size: clamp(1.5rem, 1.75vw, 2rem);
}

h5 {
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  margin: 0;
}

h6 {
  font-size: clamp(.85rem, 1.25vw, 1.25rem);
  margin: 0;
}

p {
  /* margin: 0; */
}

/* ------------- fieldsets & horizontal rules -------------- */
fieldset, hr {
  /* overrides system border-color: threedface; */
  border-color: black;
  /* overrides system border-width: 2px; */
  border-width: 1px;
  /* overrides system border-style: groove; */
  border-style: solid;
}

/* -------------------------- tables ----------------------- */
table {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.4;
  font-size: clamp(.8rem, 90vw, 1rem);
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  border: 1px solid;
  vertical-align: middle;
}

thead th:not(:first-child) {
  width: 5rem;
}

thead th {
  vertical-align: bottom;
}

tfoot {
  width: 100%;
}

/* ------- */
/* -------------------------- buttons & tag links ----------------------- */
button, .button {
  padding: 14px 24px;
  border-radius: 4px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.button {
  text-decoration: none;
  display: block;
}

.primary {
  background-color: black;
  color: #fdd817;
  border: 1px solid black;
}

.primary:hover {
  background-color: #fdd817;
  color: black;
  border: 1px solid #fdd817;
}

.secondary {
  background-color: #fdd817;
  color: black;
  border: 1px solid black;
}

.secondary:hover {
  background-color: black;
  color: white;
  border: 1px solid #fdd817;
}

.tertiary {
  background-color: black;
  color: #fdd817;
  border: 1px solid black;
}

.tertiary:hover {
  background-color: #fdd817;
  color: black;
  border: 1px solid #fdd817;
}

/* ------- */
/* -------- inputs with type="text", inputs with type="tel", select elements & textareas ------------- */
input[type=text], input[type=tel], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  /* Make sure that padding and width stays in place */
  margin-top: 1%;
  margin-bottom: 4%;
  resize: vertical;
  /* Allow the user to vertically resize the textarea (not horizontally) */
}

input[type=submit] {
  background-color: black;
  color: white;
  padding: 12px 20px;
  border: 1px solid white;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #fdd817;
  color: black;
}

/* -------------------------- begin header ----------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  color: white;
  padding: 1% 4%;
  position: relative;
  z-index: 1;
}

header nav ul li {
  display: inline-flex;
  margin-right: 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

header nav ul li a:hover {
  color: #fdd817;
  text-decoration: underline;
}

@media (min-width:600px) {}

/* ----- mobile hamburger menu ----- */
.navbar {
  padding: 10px 20px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 3;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  transition: 0.3s;
}

/* Responsive Menu: Fullscreen Overlay */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    transition: all 0.3s ease;
    padding: 0;
  }

  .nav-list li {
    margin: 20px 0;
  }

  .nav-list.active {
    display: flex;
  }
}

/* --- end mobile hamburger menu --- */
/* ------- */
.message-wrap .message,
.errorSummary {
  font-size: large;
  margin: 0.2em 0;
  padding: 1ex 1em;
  border-radius: 1ex;
  background: #ddd;
}

.message-wrap .message.error,
.message-wrap .message.fail,
.errorSummary {
  background: #c8102e;
  color: white;
}

.message-wrap .message.success {
  background: green;
  color: white;
}

.message-wrap, .errorSummary {
  margin: 0.8em 0;
}

.errorSummary ul, .errorSummary p {
  margin: 0;
  font-size: large;
}

/* --------- pizza search -------- */
.pizza-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pizza-search label {
  width: 100%;
}

.pizza-search input[type=text] {
  width: 100%;
  padding: 10px;
  margin: 0;
  border-radius: 4px;
}

.pizza-search button {
  width: 100%;
  cursor: pointer;
  font-weight: bold;
}

/* -- end -- */
@media (min-width: 425px) {
  .search-options .pizza-search {
    gap: 0;
  }

  .search-options .pizza-search input[type=text] {
    width: 80%;
    border-radius: 4px 0 0 4px;
  }

  .search-options .pizza-search button {
    width: 20%;
    border-radius: 0 4px 4px 0;
  }
}

/* =================== begin footer ================= */
footer {
  background-color: black;
  color: white;
  position: relative;
  z-index: 1;
}

.footer-main {
  display: flex;
  flex-direction: column;
  padding: 5%;
}

footer .footer-main .footer-left img {
  align-self: center;
}

footer .footer-main .footer-left .pizza-search {
  padding: 50px 0;
}

footer .footer-main .footer-left .pizza-search button {
  border-color: #fdd817;
  width: auto;
}

.footer-main .footer-contact {
  padding: 0;
}

.footer-main .footer-contact .address a {
  color: white;
}

.footer-main .footer-contact .address p {
  margin: 10px 0 0 0;
}

.footer-main .social {
  display: flex;
  gap: 20px;
  margin-top: 5%;
}

.footer-main .social a {
  color: white;
  text-decoration: none;
}

.footer-main .social a img {
  width: 35px;
}

.copyright {
  background-color: #333333;
  text-align: center;
  overflow: hidden;
  padding: 5%;
}

@media (min-width: 600px) {
  .footer-left .pizza-search {
    gap: 0;
  }

  .footer-left .pizza-search label {
    margin-bottom: 10px;
  }

  .footer-left .pizza-search input[type=text] {
    width: 80%;
    border-radius: 4px 0 0 4px;
  }

  .footer-left .pizza-search button {
    width: 20%;
    border-radius: 0 4px 4px 0;
  }
}

@media (min-width: 800px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    padding: 3%;
  }

  .footer-left {
    width: 65%;
  }

  footer .footer-main .footer-left .pizza-search {
    padding: 25px 0 0;
  }

  .footer-contact {
    width: 30%;
  }

  .copyright {
    padding: 0;
  }
}