@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

a {
  text-decoration: none;
  transition: all 300ms ease;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}

.row {
  max-width: 1200px;
  width: 100%;
  padding: 0 32px;
  margin: 0 auto;
}

.blue {
  color: #0044ff !important;
}

.white {
  color: #fff !important;
}

.btn__white {
  color: #0044ff !important;
  background-color: #fff !important;
}

.btn__hover--blue:hover {
  background-color: #1100ff;
}

.btn__hover--white:hover {
  background-color: #dcdfe6 !important;
}

.link__hover-effect:after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0%;
  height: 3px;
  transition: all 300ms ease;
}

.link__hover-effect--blue:after {
  background-color: #0044ff;
}

.link__hover-effect--black:after {
  background-color: #000;
}

.link__hover-effect--white:after {
  background-color: #fff;
}

.link__hover-effect:hover::after {
  left: 0;
  width: 100%;
}

/* 

NAVIGATION BAR

*/

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.nav__logo--wrapper {
  display: flex;
  align-items: center;
}

.nav__logo--img {
  height: 48px;
  width: 48px;
}

.nav__logo--name {
  padding-left: 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 475px;
}

.nav__list {
  font-size: 18px;
  font-weight: 600;
}

.nav__link {
  color: #000;
  position: relative;
}

.nav__btn {
  padding: 12px 36px;
  background-color: #0044ff;
  color: #fff;
  border-radius: 50px;
}

/* 

MENU

*/

.menu__btn {
  color: #0044ff;
  font-size: 32px;
  cursor: pointer;
  display: none;
}

.menu__backdrop {
  position: absolute;
  background-color: #fff;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  z-index: 99;
  transition: all 300ms ease;
  opacity: 0;
  transform: translate(100%);
}

.menu--open {
  max-height: 100vh;
  overflow: hidden;
}

.menu--open .menu__backdrop {
  visibility: visible;
  opacity: 1;
  transform: translate(0);
}

.menu__btn--close {
  position: absolute;
  font-size: 42px;
  right: 32px;
  top: 24px;
}

.menu__links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 300px;
}

.menu__list {
  display: flex;
}

.menu__link {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}

/* 

HEADER

*/

.landing__header {
  height: calc(100vh - 96px);
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__description {
  height: 35%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
}

h1 {
  font-size: 40px;
  max-width: 730px;
  text-align: center;
  line-height: 1.5;
  font-weight: 800;
}

.header__sub-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  line-height: 1.75;
}

.header__input--wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.header__input {
  max-width: 550px;
  width: 100%;
  height: 70px;
  border: 1px solid #000;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 24px;
}

.header__input:hover {
  border-color: #0044ff;
}

.header__input:focus {
  outline-color: #0044ff;
}

.header__input--btn {
  height: 70px;
  width: 170px;
  background-color: #0044ff;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 40px;
  margin-left: 20px;
  transition: all 300ms ease;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.301);
}

.header__input--btn:hover {
  background-color: #000;
}

.header__img {
  width: 100%;
  height: 100%;
}

.header__img--wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65%;
}

/* 

SEARCH

*/

#search {
  background-repeat: repeat-x;
  height: 350px;
}

.search__header {
  height: 254px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

.search__title {
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 3px;
  margin-top: 24px;
}

.search__input--wrapper {
  height: 60px;
  width: 100%;
  max-width: 625px;
  position: relative;
  margin-bottom: 16px;
}

.search__input {
  width: 100%;
  height: 100%;
  border-radius: 50px;
  border: none;
  padding: 0 70px 0 20px;
  font-size: 20px;
  outline: none;
}

.search__btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 60px;
  padding-right: 16px;
  border: none;
  background: none;
  font-size: 40px;
  color: #0044ff;
  cursor: pointer;
  transition: all 300ms ease;
}

.search__btn:hover {
  color: #000;
}

/* 

RESULTS

*/

.results__searched {
  font-weight: 600;
}

.results__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.result {
  border: 1px solid rgba(0, 0, 0, 0.26);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
  width: 31%;
  cursor: pointer;
}

.result__img--wrapper {
  height: 80%;
}

.result__img {
  width: 100%;
  height: 100%;
}

.result__description {
  height: 20%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0 16px;
}

.result__title {
  font-size: 20px;
  margin-top: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.result__type {
  font-size: 16px;
  font-weight: 600;
}

.result__year {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
}

.results__none {
  margin: 0 auto;
  font-size: 48px;
  text-align: center;
  margin-top: 32px;
}

.results__loading--spinner {
  animation: rotate 600ms ease-in-out infinite;
  display: none;
  font-size: 64px;
  margin: 32px auto 0 auto;
}

.results__loading .results__loading--spinner {
  display: block;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 

Tablets and Phones

*/

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .menu__btn {
    display: block;
  }

  .header__input {
    font-size: 20px;
  }

  .result {
    width: 48%;
  }
  
  h1{
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .header__description > * {
    text-align: left;
  }

  .header__img--wrapper {
    display: none;
  }

  .header__input--wrapper {
    flex-direction: column;
  }

  .header__input--btn {
    width: 100%;
    margin: 24px 0 0 0;
  }
  
  .header__sub-title{
    padding: 48px 0;
  }
}

/* 

Small Phones

*/

@media (max-width: 480px) {
  .row {
    padding: 0 16px;
  }

  .menu__btn--close {
    right: 16px;
  }

  .header__input {
    font-size: 16px;
  }

  .result {
    width: 100%;
  }

  .search__title {
    font-size: 40px;
  }

  .search__input {
    font-size: 15px;
    padding-right: 48px;
  }

  .search__btn {
    font-size: 24px;
  }
}
