/*
  --- 01 TYPOGRAPHY 
  Font sizes (px) :
  10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98


  ---02 COLORS
  Primary: #e50914
  backgroud-hover: #ce0812
  

  --- Spacing systems (px)
  2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128


*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  background-color: #efefef;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

main {
  margin-bottom: 50px;
}

.container {
  margin: 0 2.4rem;
}

.section-space {
  margin-bottom: 3.4rem;
}

/* ---HEADER--- */

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #d4d4d4;
}

.logo:link,
.logo:visited {
  display: block;
  width: 10rem;
  margin: 1.2rem;
}

/* ---HERO--- */

.section-hero {
  display: flex;
  flex-direction: column;
  row-gap: 3.2rem;
  padding: 6.2rem 0;
}

.hero-heading {
  font-size: 3rem;
  letter-spacing: 0.1rem;
}

.hero-paragraph {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 3.2rem;
}

.hero-btn:link,
.hero-btn:visited {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e50914;
  border-radius: 4px;
  background-color: #e50914;
  align-self: flex-start;
  transition: all 0.3s ease;
  letter-spacing: 0.1rem;
}

.hero-btn:hover,
.hero-btn:active {
  background-color: #ce0812;
  letter-spacing: 0.1rem;
}

/* ---FEATURES--- */
.section-features {
  display: flex;
  flex-direction: column;
  row-gap: 4.8rem;
}

.feature {
  display: flex;
  flex-direction: column;
  row-gap: 1.6rem;
  border: 1px solid #e50914;
  border-radius: 4px;
  padding: 2.4rem 2.4rem;
}

.features-icon {
  width: 8.6rem;
  margin: 1.6rem;
  stroke: #e50914;
}

.feature-heading {
  font-size: 1.8rem;
}

.feature-info {
  color: #333;
  font-size: 1.4rem;
}

/* ---SEARCH-PAGE--- */

.search-container {
  margin: 0 2.4rem;
}

.search-hero {
  display: flex;
  flex-direction: column;
  row-gap: 2.4rem;
  margin-right: 1rem;
  padding: 4.8rem 0 3.2rem 0;
}

.search-heading {
  font-size: 2rem;
  letter-spacing: 0.1rem;
}

.search-paragraph {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2.4rem;
}

.search-input {
  font-family: "Inter", sans-serif;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 3rem;
  font-size: 16px;
  box-shadow: none;
  outline: none;
}

.search-input:focus {
  font-family: "Inter", sans-serif;
  margin-right: 3rem;
  border-color: #ce0812;
}

.search-icon {
  color: #fff;
}

.search-btn {
  font-family: "Inter", sans-serif;
  color: #fff;
  width: 12rem;
  height: 4rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  background-color: #e50914;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: #ce0812;
}

/* ---SEARCH_INVALID--- */

.search-invalid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1.6rem;
  margin: 8rem 2.4rem;
  display: none;
}

.search-invalid-icon {
  width: 10rem;
  margin-bottom: 2.4rem;
}

.search-invalid-heading {
  color: #666;
  font-size: 2rem;
}

.search-invalid-info {
  color: #666;
  font-size: 1.2rem;
  text-align: center;
  padding: 0 2.4rem;
}

/* ---SEARCH_RESULTS--- */

.search-result {
  display: flex;
  flex-direction: column;
  margin: 4.8rem 2.4rem 0 2.4rem;
  row-gap: 2.4rem;
  display: none;
}

.title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.movie-poster {
  max-width: 60%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.genre-release {
  display: flex;
  column-gap: 1.6rem;
}

.genre,
.release {
  display: inline-block;
  padding: 0.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  background-color: #e50914;
  color: #fff;
  border-radius: 10rem;
  font-weight: 600;
}

.ratings-container {
  display: flex;
  column-gap: 0.8rem;
  align-items: center;
}

.ratings {
  font-size: 1.8rem;
}

.ratings-icon {
  font-size: 1.8rem;
  color: #e50914;
  margin-bottom: 0.2rem;
}

.votes {
  margin-top: 3px;
  color: #555;
}

.plot-summary {
  color: #333;
  font-size: 1.4rem;
}

.awards {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  margin-bottom: 2.4rem;
}

.boxoffice-info {
  display: inline-block;
  color: #222;
  background-color: #84cc16;
  padding: 10px;
  border-radius: 16px;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
}

.awards-info {
  display: inline-block;
  color: #222;
  background-color: #eab308;
  padding: 10px;
  border-radius: 16px;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
}

.directors-list,
.writers-list,
.actors-list,
.languages-list {
  color: #333;
  list-style: none;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.list-heading {
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.list {
  font-size: 1.4rem;
}

/* ---GO_BACK--- */

.go-back {
  margin-top: 2.4rem;
}

.home-link {
  display: inline-block;
  background-color: #e50914;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 10px;
  padding: 1.2rem 0;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;
}

/* ---SPINNER--- */

.spinner_aj0A {
  transform-origin: center;
  animation: spinner_KYSC 0.75s infinite linear;
}

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

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  margin-top: 100px;
  display: none;
}

.spinner-container svg {
  width: 4em;
  height: 4em;
}

/* ---FOOTER--- */

.footer-home {
  background-color: #dcdcdc;
  padding: 1.2rem;
  text-align: center;
}

.footer {
  background-color: #dcdcdc;
  padding: 1.2rem;
  text-align: center;
  display: none;
}

.footer-info {
  color: #333;
  font-weight: 600;
  letter-spacing: 0.5px;
}
