@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@600&family=Fraunces:wght@700;900&display=swap");
@import url(./section.css);
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  overflow-x: hidden;
}

.header {
  height: 100vh;
  background-image: url(../images/desktop/image-header.jpg);
  background-position: center;
  background-size: cover;
  font-size: 1.8rem;
}

@media (max-width: 560px) {
  .header {
    background-image: url(../images/mobile/image-header.jpg);
    height: 80vh;
    background-position: bottom;
  }
}

.header .navbar {
  padding: 3rem;
  display: flex;
  font-family: "Barlow", sans-serif;
}

.header .navbar__logo {
  margin-right: auto;
  align-self: center;
}

.header .navbar__logo img {
  width: 17rem;
}

@media (max-width: 760px) {
  .header .navbar__logo img {
    width: 15rem;
  }
}

@media (max-width: 560px) {
  .header .navbar__logo img {
    width: 10rem;
  }
}

.header .navbar-btn {
  display: none;
}

@media (max-width: 760px) {
  .header .navbar-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
  }
  .header .navbar-btn-burger {
    width: 100%;
    border: 2px solid white;
    overflow: hidden;
  }
  .header .navbar-btn-burger::before, .header .navbar-btn-burger::after {
    content: "";
    width: 100%;
    height: 4px;
    background-color: white;
    position: absolute;
    left: 0;
  }
  .header .navbar-btn-burger::before {
    top: 5px;
  }
  .header .navbar-btn-burger::after {
    bottom: 4px;
  }
}

.header .navbar__links {
  display: flex;
}

@media (max-width: 760px) {
  .header .navbar__links {
    flex-direction: column;
    display: none;
  }
}

.header .navbar__links li {
  list-style: none;
  padding: 1.7rem 2.5rem;
  border-radius: 5rem;
  font-size: 1.8rem;
  cursor: pointer;
}

.header .navbar__links li a {
  text-decoration: none;
  color: white;
}

.header .navbar__links li:last-of-type {
  background-color: white;
  transition: 300ms ease-in;
}

.header .navbar__links li:last-of-type:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.header .navbar__links li:last-of-type:hover a {
  color: white;
}

.header .navbar__links li:last-of-type a {
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: smaller;
  font-weight: bold;
  color: #23303e;
}

@media (max-width: 760px) {
  .header .navbar .toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: white;
    width: 75%;
    left: 50%;
    top: 15%;
    padding: 3rem;
    z-index: 1;
    transform: translate(-50%, 0);
  }
  .header .navbar .toggle::before {
    content: "";
    position: absolute;
    top: -25px;
    right: 0;
    border-bottom: 25px solid white;
    border-left: 25px solid transparent;
  }
  .header .navbar .toggle a {
    color: #a7abae;
  }
  .header .navbar .toggle li:last-of-type {
    background-color: #fad400;
  }
}

.header__main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.header__main h1 {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.7rem;
  font-size: 5rem;
  margin: auto 1rem;
  margin-top: 7rem;
}

@media (max-width: 760px) {
  .header__main h1 {
    margin-top: 10rem;
    font-size: 4rem;
    letter-spacing: 0.3rem;
  }
}

@media (max-width: 560px) {
  .header__main h1 {
    margin: 5rem 2rem;
  }
}

.header__main img {
  position: absolute;
  top: 45%;
  animation: floating 3s infinite ease-in-out;
}

@media (max-width: 760px) {
  .header__main img {
    top: 50%;
  }
}

@media (max-width: 560px) {
  .header__main img {
    top: 45%;
  }
}

.attribution {
  padding: 1rem;
  text-align: center;
  font-size: 1.4rem;
  font-family: "Barlow", sans-serif;
  background-color: #58ad9c;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.attribution a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #25564b;
  transition: 100ms ease-in;
}

.attribution a:hover {
  color: white;
}

@keyframes floating {
  0% {
    transform: translate(0, 0px);
  }
  50% {
    transform: translate(0, 15px);
  }
  100% {
    transform: translate(0, 0px);
  }
}
