@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap");

* {
  box-sizing: border-box;
}
:root {
  /* Since I'll use the main colors many times, it will be easier to class it under root */
  --primary-color: #dfdfde;
  --secondary-color: #b20600;
  --white-color: #e8e8e8;
  --dark-color: #363636;
}

.dark {
  --primary-color: #222831;
  --secondary-color: #dddddd;
  --white-color: #222831;
  --dark-color: #dddddd;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-color);
  margin: 0;
}

header {
  padding: 1rem;
  display: block;

  justify-content: space-evenly;
  background-color: var(--secondary-color);
}
header h1 {
  text-align: left;
  font-size: 2rem;
  color: var(--white-color);
}
header form {
  text-align: right;
}

/* --------toggle---------- */
@import url("https://fonts.googleapis.com/css?family=Muli&display=swap");

.dark {
  --primary-color: #222831;
  --secondary-color: #dddddd;
  --white-color: #222831;
  --dark-color: #dddddd;
}
.checkbox {
  opacity: 0;
  position: absolute;
}

.label {
  background-color: #111;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  margin: 15px;
  position: relative;
  height: 26px;
  width: 50px;
  transform: scale(1.5);
}

.label .ball {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  height: 22px;
  width: 22px;
  transform: translateX(0px);
  transition: transform 0.2s linear;
}

.checkbox:checked + .label .ball {
  transform: translateX(24px);
}

.fa-moon {
  color: #f1c40f;
}

.fa-sun {
  color: #f39c12;
}

/* -----SEARCH------- */
/* -----SEARCH------- */
/* -----SEARCH------- */
/* -----SEARCH------- */
/* -----SEARCH------- */
.search {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 1rem;
  color: #74b6ce;
  font-family: inherit;
}
.search:focus {
  outline: 0;
  background-color: var(--white-color);
  color: var(#ededed);
  font-style: bold;
}
.search::placeholder {
  color: #151d3b;
  font-weight: 900;
}

/* -----MOVIES------- */
/* -----MOVIES------- */
/* -----MOVIES------- */
/* -----MOVIES------- */
/* -----MOVIES------- */
main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.movie {
  width: 300px;
  margin: 1rem;
  border-radius: 5px;
  border-style: solid;
  border-width: thin;
  border-color: whitesmoke;
  box-shadow: 0.3px 4px 5px rgba(0, 0, 0, 0.1);
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.movie img {
  width: 100%;
}

.movie-info {
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 1rem;
  letter-spacing: 0.5px;
}
.movie-info h3 {
  margin-top: 0;
  color: var(--white-color);
}
.movie-info span {
  background-color: #444444;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

/* This one changes rate color before gettingb from API */
.movie-info span.green {
  color: lightgreen;
}
.movie-info span.orange {
  color: orange;
}
.movie-info span.red {
  color: red;
}

/* detail of the movie inside the movie cart */

.overview {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white-color);
  color: var(--dark-color);
  padding: 1rem;
  max-height: 110%;
  transform: translateY(-300%);
  transition: transform 0.3s ease-in;
}
.movie:hover .overview {
  transform: translateY(0);
}

/*            TAGS          */
/*            TAGS          */
/*            TAGS          */
/*            TAGS          */
/*            TAGS          */

#tags {
  width: 55%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
}

.tag {
  color: var(--dark-color);
  font-weight: 600;
  padding: 15px 25px;
  background-image: linear-gradient(to right, #950101, #c02739);
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  margin: 5px;
  display: inline-block;
  cursor: pointer;
}

.tag.highlight {
  background-image: linear-gradient(to right, #5584ac, rgb(71, 164, 207));
  font-weight: 800;
}
.no-results {
  color: white;
}
.pagination {
  display: flex;
  margin: 10px 30px;
  align-items: center;
  justify-content: center;
  color: white;
}

.page {
  padding: 20px;
  cursor: pointer;
}

.page.disabled {
  cursor: not-allowed;
  color: rgb(68, 66, 66);
}

.current {
  padding: 10px 20px;
  border-radius: 50%;
  border: 5px solid orange;
  font-size: 20px;
  font-weight: 600;
}

/*      TRAILERS      */
/*      TRAILERS      */
/*      TRAILERS      */
/*      TRAILERS      */
/*      TRAILERS      */
/*      TRAILERS      */
/*      TRAILERS      */

.know-more {
  background-color: orange;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: 0;
  border-radius: 50px;
  padding: 10px 20px;
  margin-top: 5px;
}
.know-more:hover {
  background-color: red;
}
/* The Overlay (background) */
/* Trailer page */
.overlay {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */
  height: 100%;
  width: 0;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  background-color: rgb(0, 0, 0); /* Black fallback color */
  background-color: rgba(70, 17, 17, 0.9); /* Black w/opacity */
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.4s; /* 0.4 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 10%; /* 25% from the top */
  width: 100%; /* 100% width */
  text-align: center; /* Centered text/links */
  margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: whitesmoke;
  display: block; /* Display block instead of inline */
  transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover,
.overlay a:focus {
  color: rgb(165, 163, 163);
  font-weight: 900;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.embed.hide {
  display: none;
}

.embed.show {
  display: inline-block;
}

.arrow {
  position: absolute;
  font-size: 40px;
}

.arrow.left-arrow {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}

.arrow.right-arrow {
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
}

.dots {
  margin-top: 30px;
}

.dots .dot {
  padding: 5px 15px;

  border-radius: 50%;
  border: 5px solid var(--secondary-color);
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 5px;
}

.dots .dot.active {
  border-color: orange;
}

section .top {
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 8px;
}

.to-top {
  background: white;
  position: fixed;
  bottom: 16px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #1f1f1f;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
}

.to-top.active {
  bottom: 32px;
  pointer-events: auto;
  opacity: 1;
}

/* FOOTER */

#footer {
  border: 1px solid;
  padding: 1% 4%;
  text-align: center;
  background-color: var(--secondary-color);
}
.cta {
  background-color: transparent;
  padding: 3% 15%;
  color: var(--white-color);
  text-align: center;
}
.cta button {
  padding: 2%;
  margin: 3% 1%;
  background-color: var(--white-color);
  color: var(--dark-color);
  font-size: 1rem;
  font-weight: 900;
  border-radius: 5px;
}
#footer a {
  text-decoration: none;
}
.cta-heading {
  font-family: "Montserrat";
  line-height: 1.5;
  font-weight: 900;
  font-size: 3.5rem;
}

.social-media-icon {
  color: var(--white-color);
  font-size: 3rem;
  margin: 20px 20px;
}
