*,
h1,
p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

@font-face {
  font-family: "Nissan Brand Regular";
  src: url("./Nissan_Brand_Regular.otf");
}

@font-face {
  font-family: "Nissan Brand Bold";
  src: url("./Nissan_Brand_Bold.otf");
}

@font-face {
  font-family: "Nissan Brand Light";
  src: url("./Nissan_Brand_Light.otf");
}

.forsberg-page-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.forsberg-page-header .nissan-logo {
  height: 11rem;
}

.forsberg-page-header .forsberg-logo {
  width: 16rem;
}

.forsberg-page-header .nismo-logo {
  width: 16rem;
}

main .forsberg-page-title {
  font-family: "Nissan Brand Light";
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 2rem;
}

main .forsberg-page-title .forsberg-bold {
  font-size: 4.5rem;
  font-family: "Nissan Brand Regular";
}

main .forsberg-page-title .forsberg-page-purpose {
  font-size: 2.75rem;
}

main,
.vin-tracking-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.vin-tracking-form {
  -webkit-box-shadow: 0px 0px 8px 5px rgb(216, 216, 216);
  -moz-box-shadow: 0px 0px 8px 5px rgb(216, 216, 216);
  box-shadow: 0px 0px 8px 5px rgb(216, 216, 216);
  border-radius: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
}

main .instructions {
  font-family: "Nissan Brand Regular";
  font-size: 1.25rem;
  width: 100%;
  max-width: 60rem;
  text-align: center;
}

.vin-tracking-form .input-boxes {
  display: flex;
  justify-content: space-evenly;
  gap: 3rem;
  margin: 2rem;
  width: 100%;
  max-width: 60rem;
}

.vin-tracking-form .input-boxes:nth-child(1) {
  border: 500px black;
}

.input-box-label {
  font-family: "Nissan Brand Bold";
}

.input-box {
  font-family: "Nissan Brand Regular";
}

hr {
  border: 0;
  clear: both;
  display: block;
  width: 96%;
  background-color: #afafaf;
  height: 1px;
}

.save-button {
  font-family: "Nissan Brand Bold";
  padding: 1rem 2rem;
  font-size: 1.5rem;
  margin: 2rem 0 0 0;
}

@media screen and (max-width: 1410px) {
  .forsberg-page-header .nissan-logo {
    height: 11.6rem;
  }

  header .forsberg-page-title {
    font-size: 1.84rem;
  }
  header .forsberg-page-title .forsberg-bold {
    font-size: 3.94rem;
  }
  header .forsberg-page-title .forsberg-page-purpose {
    font-size: 2.4rem;
  }
  .forsberg-page-header .forsberg-logo {
    width: 14rem;
  }
}

@media screen and (max-width: 1150px) {
  .forsberg-page-header .nissan-logo {
    height: 8.2rem;
  }

  header .forsberg-page-title {
    font-size: 1.31rem;
  }
  header .forsberg-page-title .forsberg-bold {
    font-size: 2.8rem;
  }
  header .forsberg-page-title .forsberg-page-purpose {
    font-size: 1.71rem;
  }
  .forsberg-page-header .forsberg-logo {
    width: 10rem;
  }
}

@media screen and (max-width: 1100px) {
  .vin-tracking-form,
  .instructions {
    width: auto;
  }
  .vin-tracking-form {
    margin: 2rem;
  }
}
@media screen and (max-width: 815px) {
  .forsberg-page-header .nissan-logo {
    height: 5.8rem;
  }

  header .forsberg-page-title {
    font-size: 1rem;
  }
  header .forsberg-page-title .forsberg-bold {
    font-size: 2rem;
  }
  header .forsberg-page-title .forsberg-page-purpose {
    font-size: 1.22rem;
  }
  .forsberg-page-header .forsberg-logo {
    width: 7.1rem;
  }
  .input-boxes {
    flex-direction: column;
    align-items: center;
    justify-content: ceneter;
  }
  .input-boxes div {
    width: 15rem;
  }
  .save-button {
    margin-top: 1rem;
  }
}
@media screen and (max-width: 450px) {
  header {
    flex-direction: column;
  }
  .forsberg-page-header {
    margin: 1rem 0 0 0;
  }
  .forsberg-page-header .nissan-logo {
    order: 1;
    width: 5rem;
    height: 5rem;
  }
  .forsberg-page-title {
    order: 3;
  }
  .forsberg-page-header .forsberg-logo {
    order: 2;
    height: 2rem;
  }
  main,
  .vin-tracking-form {
    margin-top: 0.5rem;
  }
  .vin-tracking-form .input-boxes {
    gap: 1.5rem;
  }
}

.wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  position: fixed;
  top: 0%;
  opacity: 0;
}

.popup {
  display: inline;
  color: white;
  font-family: "Nissan Brand Regular";
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.wrapper-animation {
  animation: pop-up 10s linear infinite forwards;
}

@keyframes pop-up {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 100%;
  }

  95% {
    opacity: 100%;
  }

  100% {
    opacity: 0;
  }
}
