* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100vh;
  position: relative;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  background-color: #fffce8;
  font-size: 17px;
  font-weight: 500;
  padding-bottom: 5%;
}

nav {
  background-color: #7a0000;
  box-shadow: 1px 2px 3px #3f2d27;
}

nav ul {
  font-size: 1rem;
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5px;
}

nav li {
  height: 50px;
}

nav a {
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #f6f4f3;
}

nav a:hover {
  background-color: #5c0101;
  color: #f6f4f3;
}

nav li:first-child {
  margin-right: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: #7a0000d0;
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
  font-size: 1rem;
  width: 100%;
}

.sidebar a {
  width: 100%;
}
.menu-button {
  display: none;
}

.container-fluid {
  width: 100%;
}

.banner {
  max-height: 50vh;
  background-image: url("Arizona-Sonoran-Copper-_-Cactus-Mine-looking-WSW.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner-text {
  padding: 10vh;
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: -0.022rem;
  color: #f6f4f3;
  text-shadow: 5px 6px 2px #3f2d27;
}

.contactUs {
  padding: min(1em, 4%);
  text-align: center;
  font-size: 2.488rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022rem;
  color: #3f2d27;
}

.contactquote {
  line-height: 1.6;
  padding: 1%;
  text-align: center;
}

table {
  padding: min(1em, 3%);
  display: flex;
  justify-content: center;
  text-align: justify;
}

th,
td {
  padding: 0.5em;
}

.divider {
  height: 0.5px;
  background: #7a0000;
  background: -webkit-linear-gradient(
    left,
    rgb(255, 255, 255) 0%,
    rgb(107, 0, 0) 50%,
    rgb(255, 255, 255) 100%
  );
}

form {
  height: 37vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.contact-inputs {
  width: 40vw;
  height: 5vh;
  padding-left: min(0.5em, 2%);
  background-color: #f6f4f3;
  border: groove #3f2d27;
  border-radius: 40px;
}

form textarea {
  width: 50vw;
  height: 9vh;
  padding-left: 20px;
  padding-top: 10px;
  background-color: #f6f4f3;
  border: groove #3f2d27;
  border-radius: 30px;
}

.form-button {
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 15px 30px;
  color: #f6f4f3;
  gap: 10px;
  border-radius: 40px;
  background: #7a0000;
  cursor: pointer;
}

.form-button:hover {
  background-color: #5c0101;
}

.about-flex-container {
  display: flex;
}

.about-main-content {
  padding: 2em;
  flex: 2;
}

.about-main-content h1 {
  color: #3f2d27;
  font-size: 2.986rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.about-main-content h4 {
  color: #3f2d27;
  font-size: 1.728rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
  padding: 10px;
}

.about-main-content h6 {
  color: #3f2d27;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
  padding: 10px;
}

.about-main-content p {
  line-height: 1.6;
  padding: 10px;
}

.about-img {
  padding: 30px;
  flex: 1;
}

.about-img img {
  border-radius: 5px;
  max-width: 100%;
  height: auto;
}

.repair-grid-container {
  padding: 2em;
  display: grid;
  gap: 1em;
  grid-auto-rows: auto;
  grid-auto-columns: 1fr;
  grid-template-areas:
    "box2 box2 box1 box1"
    "box3 box4 box1 box1";
}

.repair-main-content {
  text-align: center;
}

.repair-main-content h1 {
  margin-top: 2%;
  padding: 0.5em;
  color: #3f2d27;
  font-size: 2.986rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.repair-main-content p {
  padding: 0.3em;
  line-height: 2;
  margin-bottom: 5px;
}

.repair-main-content ul {
  padding: 0.5em;
  list-style-position: inside;
  line-height: 2;
}

.repair-button {
  font-size: 1rem;
  margin-top: 2%;
  padding: 15px 30px;
  color: #f6f4f3;
  border-radius: 40px;
  background: #7a0000;
  cursor: pointer;
}

.repair-button:hover {
  background-color: #5c0101;
}

.repair-image {
  border-radius: 1%;
}

.divider-1 {
  border-bottom: 1px solid #3f2d27b6;
  height: 2px;
  margin: 0.5em 0px 1.5em;
}

.divider-1 span {
  display: block;
  width: 50px;
  height: 3px;
  background-color: #a00000;
}

.mining {
  padding: 2em 0 0.4em 2em;
}

.mining h1 {
  color: #3f2d27;
  font-size: 2.986rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.RowContainer {
  margin: 1em;
  margin-bottom: 10%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1em;
  justify-content: center;
}

.gridbox {
  height: 400px;
  text-align: center;
  display: inline-block;
  align-self: center;
  margin: 15px;
  background-color: #f6f4f3;
  border: 1px solid gray;
}

.belowgridbox {
  font-size: 1.2em;
}

.ppe {
  padding: 2em 0 0.4em 2em;
}

.ppe h1 {
  color: #3f2d27;
  font-size: 2.986rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.ppe h3 {
  color: #3f2d27;
}

footer {
  position: absolute;
  bottom: 0;
  background-color: #7a0000;
  width: 100%;
}

.footerNav {
  margin: 0.7em;
}

.footerNav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.footerNav li a {
  color: #f6f4f3;
  margin: 20px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  transition: 0.5s;
}

.footerNav li a:hover {
  opacity: 1;
}

footer p {
  font-size: 1rem;
  color: #f6f4f3;
  padding: 0.7em;
  text-align: center;
}

@media (max-width: 1024px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }

  div.video-banner {
    height: 175px;
  }

  div.video-banner div.text {
    font-size: 1.5rem;
  }

  body {
    padding-bottom: 15%;
  }

  .about-flex-container {
    display: flex;
    flex-direction: column;
  }

  .repair-grid-container {
    gap: 1em;
    grid-template-areas:
      "box1 box1"
      "box2 box2"
      "box3 box4";
    padding-bottom: 10%;
  }

  .gridbox {
    height: 320px;
  }

  #miningimg {
    width: 70%;
  }

  .footerNav {
    flex-direction: column;
  }
  .footerNav ul li a {
    font-size: 1.2rem;
    width: 100%;
    margin: 10px;
  }

  footer p {
    font-size: 1.2rem;
  }
}

@media (max-width: 450px) {
  .sidebar {
    width: 100%;
  }

  div.video-banner div.text {
    font-size: 1.2rem;
  }

  table {
    font-size: 0.7em;
  }

  .about-flex-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 30%;
  }

  .repair-grid-container {
    gap: 1em;
    grid-template-areas:
      "box1 "
      "box2 "
      "box3 "
      "box4 ";
    padding-bottom: 30%;
  }

  .repair-image {
    column-gap: 0;
  }

  #miningimg {
    width: 60%;
  }

  footer {
    flex-direction: column;
  }
  .footerNav ul li a {
    font-size: 00.694rem;
    width: 100%;
    margin: 10px;
  }

  footer p {
    font-size: 0.694rem;
  }
}
