:root {
  --main-background-color: #2b2d42;
  --main-text-color: #ebebeb;
  --secondary-text-color: #8d99ae;
  --highlight-color: #f8f32b;
  --movie-details-color: #ff0e00;
}

* {
  margin: 0;
  font-family: "Armata", sans-serif;
  background-color: var(--main-background-color);
}

body::-webkit-scrollbar {
  width: 0.4rem;
}

body::-webkit-scrollbar-track {
  background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
  background: var(--highlight-color);
}

h1 {
  text-align: center;
}

.movieList {
  display: flex;
  justify-content: space-evenly;
  margin-top: 50px;
  font-size: large;
  text-align: center;
}

.movieList img {
  border-style: solid;
  border-color: white;
  border-width: thick;
  max-height: 400px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 10px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 5px 9px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  transition: 0.6s;
}

.movieList img:hover {
  color: var(--highlight-color);
  box-shadow: 0 0 5px var(--highlight-color);
  text-shadow: 0 0 5px var(--highlight-color);
}

.guess {
  display: flex;
  justify-content: space-between;
  font-size: 60px;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--main-text-color);
  background-color: black;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

#score {
  color: var(--highlight-color);
  background-color: black;
  margin-right: 1%;
}

#highScore {
  color: var(--secondary-text-color);
  font-weight: 900;
  background-color: black;
  margin-left: 1%;
}

.instruct {
  text-align: center;
  color: #ebebeb;
  margin-top: 20px;
  font-size: 48px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 90px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--main-background-color);
  animation: appear 200ms ease-in 1;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(-900px);
  }
}

.imdb-ratings {
  display: flex;
  justify-content: center;
  background-color: black;
}

.imdbPosters {
  display: flex;
  justify-content: space-evenly;
  max-height: 400px;
  width: auto;
  padding-top: 20px;
  padding-bottom: 10px;
  background-color: black;
}

.movie-title {
  color: var(--main-text-color);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 20px;
}

.modal-content {
  background-color: black;
  margin: auto;
  padding: 50px;
  border: 1px solid white;
  width: 80%;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  border-radius: 10px;
  border: 1px solid white;
}

.ratingBuffer {
  color: var(--secondary-text-color);
}

.result-message {
  background-color: black;
  text-align: center;
  font-size: 50px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.1s;
}

#imdbRating1,
#imdbRating2 {
  background-color: black;
  color: var(--highlight-color);
}

#imdbPoster1,
#imdbPoster2 {
  box-shadow: rgba(255, 255, 255, 0.25) 0px 0px 5px,
    rgba(255, 255, 255, 0.12) 0px -1px 15px,
    rgba(255, 255, 255, 0.12) 0px 4px 6px,
    rgba(255, 255, 255, 0.17) 0px 7px 13px,
    rgba(255, 255, 255, 0.09) 0px -3px 5px;
  border-radius: 10px;
}

.ratingBuffer {
  background-color: black;
  font-size: 25px;
  font-weight: 700;
}

.close {
  color: var(--main-text-color);
  background-color: black;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 19px;
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid black;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}

.close:hover,
.close:focus {
  color: #f8f32b;
  text-decoration: none;
  cursor: pointer;
  transition-delay: 0.1s;
  border: 3px solid rgb(255, 255, 255);
  box-shadow: 0 0 5px var(--highlight-color);
  text-shadow: 0 0 5px var(--highlight-color);
}

.close::after {
  content: "X";
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-background-color);
  transition: opacity 0.75 visibility 0.75;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader::after {
  content: url("./img/movie-reel-3.png");
  animation: loading 3.75s ease infinite;
}

canvas {
  background-color: var(--main-text-color);
}

.main-bar-container {
  display: flex;
  justify-content: space-around;
  margin-top: 100px;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 70px;
}

.box-office-chart-container,
.imdb-votes-chart-container {
  width: 30%;
  max-width: 30%;
}

.box-office-chart,
.imdb-votes-chart {
  display: block;
  max-width: 100%;
  height: auto;
}

.btn-container {
  display: flex;
  justify-content: center;
  top: 0px;
  right: 0px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

#toggleChartsButton {
  border-radius: 75%;
  cursor: pointer;
  position: fixed;
  bottom: 15px;
  right: 10px;
  width: 75px;
  height: 75px;
  transition-property: width, bottom, font-size, border-radius, background-image;
  transition-duration: 0.2s;
  transition-delay: 0.2s;
  border: 1px solid var(--main-background-color);
  animation: bounce 1s ease-in-out;
  background-image: url(img/Reel-icon-resize.png);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#toggleChartsButton:hover .emoji {
  opacity: 0;
}

#toggleChartsButton .emoji {
  background-color: var(--secondary-text-color);
  color: var(--main-background-color);
}

#toggleChartsButton:hover:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#toggleChartsButton:hover {
  color: black;
  text-decoration: none;
  cursor: pointer;
  transition-delay: 0.1s;
  border: 3px solid rgb(255, 255, 255);
  box-shadow: 0 0 5px var(--movie-details-color);
  bottom: 1.5%;
  width: 24%;
  border-radius: 0px;
  font-size: 20px;
  font-weight: 600;
  animation: none;
  background-color: var(--secondary-text-color);
  background-image: none;
}

#toggleChartsButton:hover:before {
  content: "Click for Movie Details";
  opacity: 0;
  animation: fadeIn 0.1s ease-in-out 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#toggleChartsButton-mobile {
  display: none;
}

.movie-details {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 5px;
}

#details-container-1,
#details-container-2 {
  box-shadow: rgba(1, 1, 1, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.361) 0px -3px 0px inset;
  margin-left: 25%;
  margin-right: 25%;
  margin-top: 30px;
  padding: 25px;
  border-style: solid;
  border-color: white;
  border-width: 1px;
  background-color: rgb(0, 0, 0);
}

.movie-detail-description {
  font-weight: bold;
  color: var(--secondary-text-color);
  background-color: rgb(0, 0, 0);
}

#movie-title-1,
#movie-title-2 {
  color: #003185;
  font-weight: 900;
  font-size: 20px;
  border: 1.5px solid rgb(255, 255, 255);
  background-color: white;
  margin-bottom: 10px;
  border-radius: 5px;
}

#movie-plot-1,
#movie-plot-2,
#movie-year-1,
#movie-year-2,
#movie-rated-1,
#movie-rated-2,
#movie-released-1,
#movie-released-2,
#movie-runtime-1,
#movie-runtime-2,
#movie-genre-1,
#movie-genre-2,
#movie-director-1,
#movie-director-2,
#movie-writer-1,
#movie-writer-2,
#movie-actors-1,
#movie-actors-2,
#movie-awards-1,
#movie-awards-2 {
  color: #fffafa;
  background-color: rgb(0, 0, 0);
}

@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* -------MEDIA SCREEN AND -- BELOW------- */

@media screen and (max-width: 1360px) {
  .movieList {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .guess {
    font-size: 50px;
  }

  .instruct {
    margin-bottom: 100px;
  }

  .modal {
    padding-top: 150px;
  }

  #imdbPoster1,
  #imdbPoster2 {
    margin-left: -35px;
  }

  .imdb-ratings {
    gap: 10px;
  }

  .imdbPosters {
    display: flex;
    justify-content: space-between;
    height: auto;
    width: 100%;
    padding: 20px;
    gap: 20px;
  }

  .box-office-chart-container,
  .imdb-votes-chart-container {
    width: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 900px) {
  .guess {
    font-size: 30px;
  }

  .main-bar-container {
    flex-direction: column;
  }

  .box-office-chart-container,
  .imdb-votes-chart-container {
    width: 100%;
    max-width: 100%;
  }

  #details-container-1,
  #details-container-2 {
    margin-left: 3%;
    margin-right: 3%;
  }

  #movie-title-1,
  #movie-title-2 {
    font-size: 18px;
  }
}

@media screen and (max-width: 780px) {
  .guess {
    font-size: 18px;
    padding: 5px;
  }

  .instruct {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .movieList img {
    max-height: 200px;
  }

  .box-office-chart-container,
  .imdb-votes-chart-container {
    width: 100%;
    max-width: 100%;
  }

  .modal-content {
    width: 70%;
  }

  .imdbPosters {
    display: flex;
    justify-content: space-around;
    height: 150px;
    width: auto;
    background-color: black;
    gap: 100px;
  }

  #imdbPoster1,
  #imdbPoster2 {
    margin-left: 0px;
  }

  .close {
    font-size: 15px;
    margin-top: 25px;
  }

  .ratingBuffer {
    font-size: 20px;
    margin-top: 3px;
  }

  .result-message {
    font-size: 30px;
  }

  #imdbRating1,
  #imdbRating2 {
    font-size: 25px;
  }

  #movie-title-1,
  #movie-title-2 {
    margin-left: 20%;
    margin-right: 20%;
  }

  .loader::after {
    content: url("./img/movie-reel-3-resize.png");
    animation: loading 3.75s ease infinite;
  }

  .movieList img {
    box-shadow: none;
    transition: none;
  }

  #toggleChartsButton-mobile {
    display: none;
  }

  #toggleChartsButton {
    border-radius: 75%;
    cursor: pointer;
    /* position: relative;
    bottom: 15px; */
    /* right: 10px; */
    width: 75px;
    height: 75px;
    margin-top: 25px;
    transition-property: width, bottom, font-size, border-radius,
      background-image;
    transition-duration: 0.2s;
    transition-delay: 0.2s;
    border: 1px solid var(--main-background-color);
    animation: bounce 1s ease-in-out;
    background-image: url(img/Reel-icon-resize.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    animation: bounce 1s ease-in-out;
  }

  #toggleChartsButton:hover {
    border-radius: 75%;
    cursor: pointer;
    /* position: relative;
    bottom: 15px;
    right: 10px; */
    width: 60px;
    height: 60px;
    margin-top: 25px;
    transition-property: width, bottom, font-size, border-radius,
      background-image;
    transition-duration: 0.2s;
    transition-delay: 0.2s;
    border: none;
    animation: bounce 1s ease-in-out;
    background-image: url(img/Reel-icon-resize.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    box-shadow: 0 0 5px var(--main-background-color);
    animation: bounce 1s ease-in-out;
  }

  #toggleChartsButton:hover:before {
    content: "";
    opacity: 0;
    animation: fadeIn 0.1s ease-in-out 0.3s forwards;
  }

  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-30px);
    }
    60% {
      transform: translateY(-15px);
    }
  }

  .loader {
    width: 100vw;
    height: 85vh;
  }
}

/* -------MEDIA SCREEN AND -- ABOVE------- */
