@import "https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;400;700&display=swap";

body {
  box-sizing: border-box;
  font-family: "Josefin Sans", sans-serif;
  background-color: #111118;
  font-size: 16px;
  color: white;
}

.row-content {
  margin-top: 0.5rem;
}

.content-holder {
  color: white;
  background-color: #1e1e29;
  margin: 0.5rem;
  border-radius: 7px;

  /* 1E1E29 */
}

.hidden {
  display: none;
}

img {
  width: 100%;
}

.header {
  font-size: smaller;
  background-color: #4f4f63;
  align-items: center;
  flex-wrap: nowrap;
  color: white;
}

.position-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.loader {
  position: fixed;
  padding-top: 15rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 90%);
  text-align: center;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

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

a,
.name {
  cursor: pointer;
}

span.name {
  font-weight: 100;
  padding: 0;
}

/* .movie-title {
  font-family: "Goudy Bookletter 1911", serif;
} */

.movie-title,
.year,
.crew,
.movie-id,
.rank,
.rating {
  margin: 0;
}

.year,
.crew,
.movie-id,
.rank,
.rating {
  font-size: 0.9rem;
}

.font-weight-100 {
  font-weight: 100;
}

.modal {
  position: fixed;
  padding-top: 15rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 65%);
}

.modal-content {
  color: #3d405b;
  font-family: Inter, sans-serif;
  background-color: #f7f7ff;
  width: 80%;
  margin: auto;
  padding: 1.25rem 0.65rem;
  border: none;
  border-radius: 0.65rem;
  text-align: center;
  font-weight: bold;
  position: relative;
  font-size: 1.25rem;
}

.modal-button {
  background-color: #f7f7ff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 0.9rem;
}

.confirm-button {
  color: #fe5f55;
  border: #fe5f55 solid 0.2rem;
}

.cancel-button {
  color: #3d405b;
  border: #3d405b solid 0.2rem;
}

.confirm-button:hover {
  color: white;
  background-color: #fe5f55;
}

.cancel-button:hover {
  color: white;
  background-color: #3d405b;
}

img.single-movie-poster {
  padding: 1rem;
}

div.padding {
  padding: 0.65rem;
}

.watchlist-button,
.delete-button {
  text-align: center;
}

span.rating {
  font-size: larger;
  font-weight: bold;
}

.more-details-button {
  padding: 0.46rem;
  border: none;
  background-color: #4f4f63;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
}

p {
  font-size: smaller;
}

.flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.selected {
  font-weight: 700;
}

.more-button {
  text-align: end;
}

.info {
  display: flex;
  display: block;
}

button {
  font-family: inherit;
}

.button-style {
  font-size: large;
  padding: 1.25rem 3.3rem;
  border: solid 2px #4f4f63;
  background-color: #4f4f63;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.button-style:hover,
.more-details-button:hover {
  color: #4f4f63;
  background-color: white;
}

p.single-rating {
  font-weight: 400;
  color: #fe5f55;
  margin: 0.3rem 0;
}

.desktop-view {
  display: none;
}

/* Desktop */
@media screen and (min-width: 1200px) {
  p.single-rating {
    text-align: end;
  }

  .more-button {
    text-align: center;
    position: relative;
  }

  .button-style {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }

  .content-holder {
    color: #504e4e;
  }

  .row-content {
    width: 230px;
    height: 347px;
    font-size: 1.2rem;
    text-align: center;
    color: white;
    background-color: #1e1e29;
    border-radius: 5px;
    margin: 1rem;
  }

  img.margin-right {
    width: 128px;
  }

  .mobile-view {
    display: none;
  }

  .desktop-view {
    display: contents;
  }

  img.single-movie-poster {
    padding: 0;
  }

  .info {
    display: flex;
    color: white;
    font-size: 1.2rem;
    background-color: #1e1e29;
    border-radius: 15px;
    padding: 0;
  }

  .more-details-button {
    border-radius: 5px;
    padding: 1rem 0;
    font-size: 0.85rem;
    width: 60%;
    margin-top: 1rem;
    border: none;
    color: white;
    cursor: pointer;
  }

  /* div.more-details {
    width: 60%;
    margin: auto;
  } */

  h4.movie-title {
    cursor: pointer;
  }

  a:hover,
  h4.movie-title:hover {
    text-decoration: underline;
  }

  span.single-rating {
    font-size: x-large;
    font-weight: bold;
  }

  .delete-button {
    text-align: end;
  }

  .delete-from-watchlist {
    border-radius: 5px;
    background-color: #4f4f63;
    color: white;
  }

  .watchlist-button {
    text-align: end;
  }

  .modal-content {
    width: 30%;
    padding: 3rem;
    margin: auto;
  }
}
