@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

/* General Styling */

* {
  text-decoration: none;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
}

/* Hero-bg Styling */

.hero-bg {
  background: url(./bg.jpg) #307d99;
  background-position: 12% 83%;
  color: #fff;
  text-align: center;
  padding-bottom: 4em;
}
section {
  margin: 0 1em;
}

header {
  padding: 1em 0;
}

.hero-bg a {
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

h1 {
  font-size: 2.5rem;
  margin: 2em 0 1.2em;
}

h1 span {
  text-transform: uppercase;
  display: block;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

h1 span::before {
  content: "";
  position: absolute;
  width: 4.7em;
  background-color: #00bfff;
  height: 0.4em;
  bottom: 0;
  z-index: -1;
  margin-left: -0.3em;
}

.hero-bg p {
  font-weight: bold;
  margin: 0 1em 3em;
  line-height: 1.5em;
}

/* Form Container Styling */

.form-container {
  background-color: #fff;
  margin: 2em -1em 0;
  padding: 2em;
}

label {
  display: block;
  color: #2d7d98;
  font-weight: bold;
  margin-bottom: 1em;
  font-size: 1.2em;
}

input[type="text"] {
  border: 1px solid #707070;
  width: 100%;
  padding: 1em;
  border-radius: 0.5em;
  margin-top: 1.2em;
}

input[type="text"]:focus {
  outline: none;
  border: 1px solid #f89104;
}

.form-container p {
  color: #808080;
  margin-bottom: 1.5em;
  margin-top: 0.3em;
  font-size: 0.9em;
  font-weight: normal;
}

input[type="button"] {
  background-color: #f89104;
  width: 100%;
  padding: 1em 0;
  border: none;
  border-radius: 0.5em;
  color: #fff;
  font-weight: bold;
  font-size: 1.3em;
  cursor: pointer;
}

input[type="button"]:hover {
  background-color: #db840a;
}

/* Aunthetic Section */

.authentic-section {
  margin: 0;
}

.authentic-content {
  text-align: center;
  margin: 3em 1em;
}

h2 {
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
  font-size: 1.6rem;
  z-index: 1;
}

h2::before {
  content: "";
  position: absolute;
  width: 8em;
  background-color: #00bfffd8;
  height: 0.4em;
  bottom: 0;
  z-index: -1;
  margin-left: -0.3em;
}

.authentic-content p {
  line-height: 2em;
}

img {
  width: 100%;
}

@media (min-width: 730px) {
  section {
    margin: 0 4em;
  }

  .form-container {
    margin: 2em -4em 0;
  }
}

@media (min-width: 930px) {
  .hero-bg {
    text-align: left;
  }

  .hero-bg p {
    margin: 0 0 3em;
  }

  .hero-bg section {
    width: 65%;
  }

  .form-container {
    margin: 2em 0 0;
    padding: 2em;
    border-radius: 0.5em;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
  }

  form {
    display: flex;
  }

  .form-left {
    width: 70%;
  }

  label {
    margin: 0;
  }

  input[type="button"] {
    height: fit-content;
    font-size: 1.1em;
    margin-left: 1em;
    margin-top: 2.2em;
    padding: 0.7em 0;
    width: 30%;
  }

  .hero-bg p {
    margin-bottom: 0;
  }

  .authentic-section {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    grid-template-areas: "bowl content";
  }

  .authentic-content {
    grid-area: content;
    padding: 0 10%;
    text-align: left;
    align-self: center;
  }

  img {
    grid-area: bowl;
  }

  h2 {
    margin: 0;
  }
}

/* Testing out animations */

.header-section {
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-2em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
