/*
  Student Name: Maxwell Smith
  File Name: styles.css
  Date: 10/11/2026
*/

/* CSS Reset */
body, header, nav, main, footer, h1, h2, h3, p, ul, li, img, iframe, table, caption, tr, th, td, form, fieldset, legend, label, input {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Style rules for body and container elements */
body {
  background-color: #fff;
  font-family: Roboto, sans-serif;
}

/* Style rules for header content */
header {
  text-align: center;
}

header h1 {
  font-family: "DM Serif Display", serif;
  font-size: 2.5em;
  color: #373684;
  padding: 3%;
}

/* Style rules for navigation */
nav {
  background-color: #373684;
}

nav ul {
  list-style-type: none;
  text-align: center;
}

nav li {
  font-size: 1.25em;
  border-top: 1px solid #fff;
}

nav li a {
  display: block;
  color: #fff;
  padding: 0.5em 1em;
  text-decoration: none;
}

/* Style rules for main content */
main {
  padding: 2%;
}

#contact, #rental {
  text-align: center;
}

#contact h2, #rental h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.5em;
  color: #373684;
  padding: 2% 0;
}

.tel-link {
  font-size: 1.25em;
  font-weight: bold;
  padding: 1% 0;
}

.tel-link a {
  color: #373684;
  text-decoration: none;
}

.email-link {
  color: #373684;
  font-weight: bold;
  text-decoration: none;
}

.map {
  width: 100%;
  height: 250px;
  border: 1px solid #373684;
  margin-top: 2%;
}

/* Style rules for table */
table {
  border: 1px solid #373684;
  border-collapse: collapse;
  margin: 0 auto;
  width: 100%;
}

caption {
  font-size: 1.5em;
  font-weight: bold;
  padding: 1%;
}

th, td {
  border: 1px solid #373684;
  padding: 2%;
}

th {
  background-color: #373684;
  color: #fff;
  font-size: 1.15em;
}

tr:nth-child(odd) {
  background-color: #b7b7e1;
}

/* Style rules for form elements */
fieldset, input {
  margin-bottom: 2%;
}

fieldset legend {
  font-weight: bold;
  font-size: 1.25em;
}

label {
  display: block;
  padding-top: 3%;
}

form #submit {
  margin: 0 auto;
  display: block;
  padding: 3%;
  background-color: #b7b7e1;
  font-size: 1em;
}

/* Style rules for footer content */
footer {
  background-color: #2a1f2d;
  color: #fff;
  text-align: center;
  padding: 2%;
  font-size: 0.9em;
}

footer a {
  color: #fff;
  text-decoration: none;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px) {
  nav li {
    display: inline-block;
    border-top: none;
  }

  .map {
    height: 350px;
  }

  /* Tablet Viewport: Style rule for form element */
  form {
    width: 70%;
    margin: 0 auto;
  }
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 960px) {
  header h1 {
    font-size: 3em;
  }

  main {
    width: 80%;
    margin: 0 auto;
  }

  .map {
    height: 450px;
  }

  /* Desktop Viewport: Style rules for table */
  table {
    width: 70%;
  }

  /* Desktop Viewport: Style rules for form elements */
  .form-grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 20px;
  }

  .btn {
    grid-column: 1 / span 2;
  }
}