/* Message From Another Page */
.success,
.hero-info .error {
  color: white;
  font-size: 2rem;
  background-color: green;
  padding: 1rem 2rem;
  width: fit-content;
  font-weight: 600;
  /* transition: hideElement 2s ease-out 5s; */
  -webkit-animation: hideElement 5s forwards;
  animation: hideElement 5s forwards;
}

.hero-info .error {
  background-color: red;
}

@keyframes hideElement {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

html::-webkit-scrollbar {
  /* Hide scrollbar in edge/chrome */
  display: none;
}
html {
  /* Hide scrollbar in firefox */
  scrollbar-width: none;
}

/* ADDED CODE HERE */

.hero {
  position: relative;
  background-color: var(--secondary-color);
  padding-top: 6rem;
  height: 100vh;
}
#hero-bg-image {
  position: absolute;
  width: 100%;
  height: 92vh;
  background-repeat: no-repeat;
  background-size: cover;
  /* transition: background-image 1.5s cubic-bezier(1, 1.74, 1, 1); */
  transition: transform 1.5s ease, background-image 1.5s ease;
}

.hero-translated {
  transform: translateX(100vw);
}

.hero-info {
  position: absolute;
  text-align: left;
  padding-left: 15vw;
  padding-top: 45vh;
}

/* ADDED CODE ENDS */

.hero-heading {
  margin: 0;
  font-size: 5rem;
  font-weight: bold;
  color: var(--primary-color); /*orangered;*/
  letter-spacing: 1.5px;
}
.hero-desc {
  margin-top: 1rem;
  font-size: 1.9rem;
  color: #9e9e9e;
  font-weight: bold;
  letter-spacing: 3.5px;
}
.hero-btn {
  font-size: 1.7rem;
  font-weight: bold;
  padding: 0.7rem;
  color: var(--secondary-color);
  margin-top: 2rem;
  /* background-color: orangered; CHANGED */
  background-color: rgb(231, 68, 8);
  border: none;
  border-radius: 1.5rem;
  padding: 1rem 2rem;
}
.hero-btn:hover {
  cursor: pointer;
  background-color: rgb(255, 74, 8);
  font-size: 1.8rem;
  transition: var(--transition-btn);
  color: var(--tertiary-color);
}

/* Mobile Screen */
@media (max-width: 560px) {
  #hero-bg-image {
    height: 91.5vh;
  }
}

@media (max-width: 600px) {
  .hero-info {
    padding-left: 15vw;
    padding-top: 25vh;
  }
}
