body,
html {
  max-width: 100%;
  height: 100vh;
  overflow-x: hidden;
  font-family: Poppins, sans-serif;
  background-color: #1d2141;
}

header {
  margin-top: 0;
  background-color: #2e345b;
}

footer {
  display: flex;
  justify-content: center;
}

p {
  position: absolute;
  right: 2px;
  bottom: 0;
  margin-right: 0.813rem;
  text-align: right;
  font-size: 0.6rem;
  color: white;
  text-decoration: underline;
}

p:hover {
  cursor: pointer;
}

h1 {
  font-weight: 400;
  color: white;
}

h1:hover {
  cursor: pointer;
}

h2 {
  margin: 0.313rem 0 0.625rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: white;
}

h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-left: 1.25rem;
  color: white;
}

h3:hover {
  cursor: pointer;
  text-decoration: underline;
}

h4 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 400;
}

h5 {
  color: white;
  padding: 0 1.25rem;
  line-height: 30px;
  transition-delay: 0;
}

h6 {
  text-align: center;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: white;
}

i:hover {
  cursor: pointer;
}

span {
  color: #f2aa00;
}

img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 9px 9px 0 0;
}

button {
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  background-color: #2e345b;
  border: 1px solid transparent;
  padding: 0.313rem 0.625rem;
  border-radius: 5px;
  margin: 0.5rem;
  transition: 0.3s;
}

button:hover {
  cursor: pointer;
  background-color: #f2aa00;
  color: #1d2141;
}

input {
  color: #f2aa00;
  font-size: 1rem;
  border-radius: 25px;
  height: 40px;
  width: 250px;
  background-color: #1d2141;
  border: none;
  outline: none;
  padding: 0 0.938rem;
  caret-color: #f2aa00;
}

input::placeholder {
  color: #414981;
}

.fa-plus {
  color: white;
}

.fa-check {
  color: #a2e346;
}

.transition-delay {
  transition-delay: 0.5s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: start;
}

.search {
  display: flex;
  align-items: center;
  justify-content: end;
}

.card-list,
.watchlist-list {
  display: flex;
  flex-wrap: wrap;
}

.card-container {
  padding: 0 0.938rem;
  min-width: 200px;
  margin-bottom: 1.563rem;
  transition: width 0.5s;
}

.card-component {
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 200px;
  height: 390px;
  background-color: #2e345b;
  border-radius: 9px;
  box-shadow: 0 10px 10px -5px black;
}

.title {
  padding-left: 0.938rem;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.563rem;
  margin-bottom: 1.563rem;
  justify-content: center;
}

.rating-block {
  margin-top: 0.156rem;
  margin-bottom: 0.313rem;
  height: 27px;
  width: 27px;
  padding: 0.313rem;
  background-color: #1d2141;
  border-radius: 5px;
}

.highlight {
  color: #f2aa00;
}

.red {
  color: #d92726;
  font-size: 0.8rem;
  margin-top: 0;
}

.yellow {
  color: #f2aa00;
  font-size: 0.8rem;
  margin-top: 0;
}

.green {
  color: #3dc43d;
  font-size: 0.8rem;
  margin-top: 0;
}

.relative {
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 9px 9px 0 0;
  overflow: hidden;
  transition-duration: 500ms;
}

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

.hidden {
  display: none;
}

.loader {
    width: 75px;
    height: 75px;
    border: 7px solid #2e345b;
    border-bottom-color: #f2aa00;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    margin-top: 18.75rem;
    z-index: 1;
    }

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