/* General */
* { box-sizing: border-box; }

:root {
  --purple-light-1: #FBFAFB;
  --purple-light-2: #EEEAF2;
  --purple-medium-1: #AA83C8;
  --purple-medium-2: #8B48BF;
  --purple-medium-3: #5C218A;
  --purple-dark-1: #3E0F64;
  --purple-dark-2: #2A0646;

  --yellow: #EECC75;
  --green: #CAD297;
  --aqua: #B7EAC5;
  --lightBlue: #A2EEE5;
  --darkBlue: #8EA2EA;
  --red: #F09D9D;

  --font-family-titles: 'Dosis', sans-serif;
  --font-family-text: 'Red Hat Display', sans-serif;
  --font-weight-title1: 800;
  --font-weight-title2: 700;
  --font-weight-text1: 400;
  --font-weight-text2: 500;
}

html {
  background-color: var(--purple-medium-3);
  scroll-behavior: smooth;
}

body {
  background-image: linear-gradient(to right bottom, #121014, #17111d, #1b1125, #1f112e, #241036);
  color: var(--purple-dark-2);
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-text1);
  font-size: 16px;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-size: 24px;
  color: rgb(199, 195, 212);
  font-family: var(--font-family-titles);
  font-weight: var(--font-weight-title1);
  margin: 0;
  padding: 0;
}


h3 {
  color: rgb(199, 195, 212);
  font-weight: var(--font-weight-text2);
  font-size: 16px;
}



input {
  background-color: var(--purple-light-2);
  color: var(--purple-medium-2);
  border: none;
  font-size: 18px;
  padding-left: 16px;
}

input::placeholder {
  color: var(--purple-medium-1);
  font-family: var(--font-family-text);
}

button {
  /* background-color: var(--purple-dark-1); */
  background-image: linear-gradient(to right top, #1e1a23, #261c34, #2d1c45, #351d56, #3c1c68, #4b1b6f, #5a1874, #691379, #7c1272, #8b176b, #972064, #a12b5e);
  border: none;
  color: var(--purple-light-2);
  font-weight: var(--font-weight-text2);
  font-size: 14px;
  cursor: pointer;
}


/* Shared */
.header-container, .trendingPreview-header, .categoriesPreview-container, .liked-header  {
  padding: 0 24px;
}

.trendingPreview-container, .categoriesPreview-container, footer, .liked-container {
  margin-top: 48px;
}

.trendingPreview-header, .categoriesPreview-title, .liked-header {
  margin-bottom: 24px;
}

.movie-container {
  cursor: pointer;
  position: relative;
}

/*loading*/
.movie-container--loading {
  background: var(--purple-light-2);
  border-radius: 8px;
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  margin-bottom: 15px;
  animation: loading-skeleton infinite 1.5s;
}
.movie-container--loading:nth-child(2) {
  animation-delay: .2s;
}
.movie-container--loading:nth-child(3) {
  animation-delay: .4s;
}

.movie-img {
  border-radius: 8px;
  min-height: 175px; /*chequear*/
  position: relative;
  
}
.movie-btn{
  position: absolute;
  top: 5px;
  left: 4px;
  height: 30px;
  width: 30px;
  border-radius: 30px;
  padding: 0;
  margin: 0;
  opacity: .8;

}
.movie-btn:hover{
  opacity: 1;
}

.movie-btn::before{
  content: '🤍';
}


.movie-btn--liked::before {
  content: '⭐';
}



/* .categoriesPreview-list, .categories-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
} */

.category-container--loading {
  background: var(--purple-light-2);
  border-radius: 8px;
  height: 25px;
  min-height: 25px;
  max-height: 25px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  margin-bottom: 15px;
  animation: loading-skeleton infinite 1.5s;
}
.category-container--loading:nth-child(2) {
  animation-delay: .2s;
}

.movie-img {
  border-radius: 8px;
}
.categoriesPreview-list{
  display: flex;
  margin: 0 auto;
}
.categoriesPreview-title{
  text-align: center;
}
.categoriesPreview-list, .categories-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  max-width: 400px;
  
}
.movie-img{
  animation: skeleton-loading 1s linear infinite alternate;
  opacity: .8;
}
.movie-img:hover{
  opacity: 1;
}

/* Header */
.header-container {
  padding-top: 30px;
  
}
.header-first{
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  
}
.bars{
  color: white;
  font-size: 25px;
  /* position: absolute;
  top: 35px; */
  cursor: pointer;
  
}
.menu-toggle{
  background-image: linear-gradient(to right bottom, #29252e, #261b31, #2d1c3d, #1f112e, #241036);
  height: 100vh;
  min-width: 310px;
  position: absolute;
  top: 76px;
  left: 0;
  display: none;
  z-index: 100;
  border-radius: 0 12px 12px 0;
}
.menu-toggle-ul_li {
  list-style: none;
  margin-top: 30px;
  font-weight: bold;
  color: #EEEAF2;
  font-size: 20px;
  cursor: pointer;
  
}
.menu-toggle-ul_li:hover{
  color: #99979a;
}
.menu-toggle-ul_li a:hover{
  color: #99979a;
}
a{
  text-decoration: none;
  color: #EEEAF2;
}

.header-container--long {
  /* background-image: url('https://pics.filmaffinity.com/Deadpool-777527803-large.jpg');
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 19.27%, rgba(0, 0, 0, 0) 29.17%), url(https://pics.filmaffinity.com/Deadpool-777527803-large.jpg); */
  background-size: cover !important;
  /* height: 480px; */
  height: 620px;
  max-width: 420px;
  display: block;
  width: 100%;
  margin: 0 auto;
  animation: skeleton-loading 1s linear infinite alternate;

}

.header-container--categoryView {
  background: linear-gradient(180deg, rgba(238, 204, 117, 0.5) 0%, rgba(238, 204, 117, 0) 72.92%);
} 

.header-title {
  margin-bottom: 16px;
  margin: 0 auto;
  text-align: center;
  
}

.header-arrow {
  color: var(--purple-light-1);
  
  font-size: 36px;
  margin-bottom: 16px;
  cursor: pointer;
  position: absolute;
  left: 14px;
}
.header-arrow--white {
  color: var(--purple-light-1);
}

.header-searchForm {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 800px;
}

.header-searchForm input {
  height: 48px;
  width: 100%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  outline-color:#1e1a23;
  
}
.header-searchForm button {
  width: 56px;
  height: 48px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}


/* Trending */
.trendingPreview-header, .liked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trendingPreview-btn {
  border-radius: 8px;
  height: 32px;
  width: 72px;
}

.trendingPreview-movieList,
.liked-movieList {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  height: 241px;
  padding-left: 24px;
  padding-bottom: 16px;
}


.trendingPreview-movieList .movie-container,  
.liked-movieList .movie-container  {
  display: inline-block;
  margin-right: 8px;
}

.trendingPreview-movieList .movie-container .movie-img, 
.liked-movieList .movie-container .movie-img {
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.ranked-container{
  margin-top: 32px;
  
}
.ranked-header{
  padding: 0 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ranked-btn{
  border-radius: 8px;
  height: 32px;
  width: 72px;
}
.rankedPreview-movieList{
  
  /* overflow-y: hidden; */
  white-space: nowrap;
  height: 241px;
  padding-left: 24px;
  padding-bottom: 16px;
  display: flex;
  gap: 10px;
  position: relative;
  
  
}

.rankedPreview-movieList-movieList .movie-container,  
.liked-movieList .movie-container  {
  display: inline-block;
  margin-right: 8px;
}

.rankedPreview-movieList .movie-container .movie-img, 
.liked-movieList .movie-container .movie-img {
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  
}


.glider-slide  {
  
  width: 155px !important;
  
}



/* Categories */
.category-container {
  width: 45%;
}

.category-title {
  margin-bottom: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
}




/* #id28 { --idColor: var(--yellow); }
#id12 { --idColor: var(--red); }
#id16 { --idColor: var(--green); }
#id35 { --idColor: var(--lightBlue); }
#id80 { --idColor: var(--darkBlue); }
#id99 { --idColor: var(--purple-dark-1); }
#id18 { --idColor: var(--purple-medium-1); }
#id10751 { --idColor: var(--yellow); }
#id14 { --idColor: var(--red); }
#id36 { --idColor: var(--green); }
#id27 { --idColor: var(--lightBlue); }
#id10402 { --idColor: var(--darkBlue); }
#id9648 { --idColor: var(--purple-dark-1); }
#id10749 { --idColor: var(--purple-medium-1); }
#id878 { --idColor: var(--yellow); }
#id10770 { --idColor: var(--red); }
#id53 { --idColor: var(--green); }
#id10752 { --idColor: var(--lightBlue); }
#id37 { --idColor: var(--darkBlue); } */


/* Generic List (search, trending & category) */
.genericList-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 32px 24px;
}

.genericList-container .movie-container {
  display: inline-block;
  width: 47.5%;
}

.genericList-container .movie-img {
  width: 100%;
  min-height: 175px;
  max-width: 250px;
}


/* Movie Detail */
.movieDetail-container {
  width: 100% !important;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 32px 24px;
  margin-top: -68px;
  z-index: 1;
  position: absolute;
  background-image: linear-gradient(to right bottom, #121014, #17111d, #1b1125, #1f112e, #241036);
}

.movieDetail-title {
  display: inline-block;
  width: 80%;
  margin: 0 0 16px 0;
  padding: 0;

}

.movieDetail-score {
  display: inline-block;
  text-align: right;
  width: 18%;
  /* font-weight: var(--font-weight-title2); */
  color: white;
}
.movieDetail-score::before {
  content: '★';
  color: var(--yellow);
  padding-right: 4px;
}

.movieDetail-description {
  margin: 0 0 24px 0;
  color: white;
}

.relatedMovies-container {
  margin-top: 24px;
  height: 216px;
}

.relatedMovies-title {
  margin-bottom: 16px;
}
.category-title{
  color: white;
  background-image: linear-gradient(to right top, #1e1a23, #261c34, #2d1c45, #351d56, #3c1c68, #4b1b6f, #5a1874, #691379, #7c1272, #8b176b, #972064, #a12b5e);
  width: 130px;
  padding: 3px;
  border-radius: 10px;
  text-align: center;
}
.category-title:hover{
  opacity: .6;
}

.relatedMovies-scrollContainer {
  position: absolute;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  width: calc(100vw - 24px);
  padding-bottom: 16px;
}

.relatedMovies-scrollContainer .movie-container {
  display: inline-block;
  margin-right: 8px;
}

.relatedMovies-scrollContainer .movie-img {
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  height: 187.5px;
  min-height: 187.5px;
  max-height: 187.5px;
}
  




/* Navigation */
.inactive {
  display: none;
}
.active{
  display: block;
}

/* Animations */
@keyframes loading-skeleton {
  0%, 100% {
    opacity: 100%;
  }
  50% {
    opacity: 0%;
  }
}


.PunteadasPreview-movieList{
  
  display: flex;
  gap: 8px;
  
  overflow-x: scroll;
  padding-left: 24px;

}


.btn1-anterior{
  position: absolute;
  top: 335px;
  z-index: 60;
  left: 24px;
  background-image: none;
  background-color: transparent;
}
.btn1-anterior i{
  font-size: 23px;
}

.btn1-siguiente i{
  font-size: 23px;
}
.btn1-siguiente{
  position: absolute;
  top: 335px;
  right: 10px;
  background-image: none;
  background-color: transparent;
  }

.btn-anterior{
  
  position: absolute;
  top: 715px;
  z-index: 60;
  left: 24px;
  color: rgb(202, 199, 199);
  background-image: none;
  background-color: transparent;
  
}
.btn-anterior i{
  font-size: 23px;
}
.btn-siguiente{
position: absolute;
top: 715px;
right: 10px;
background-image: none;
background-color: transparent;
color: rgb(202, 199, 199);
}
.btn-siguiente i{
  font-size: 23px;
}



/* .glider-track{
  width: 5px !important;
} */

.glider.draggable .glider-slide img{
  pointer-events: all !important;
  user-select: all;
}

/* .movie-container .glider-slide .active  .visible{
  width: 5px !important;
} */

.carousel__indicadores1  .glider-dot.active{
  background: #32264e;
}

.carousel__indicadores  .glider-dot.active{
  background: #32264e;
}
.rankedPreview-movieList  .glider-track{
  gap: 8px;
}

@media (min-width: 768px){
  /* .glider.draggable .glider-slide img{
    min-width: 180px;
    min-height: 260px;
    opacity: .89;

  } */
  .glider.draggable .glider-slide img:hover{
    opacity: 1;
    
  }
  /* .rankedPreview-movieList .movie-container .movie-img{
    min-width: 180px;
    min-height: 260px;
    margin-right: 18px;
  } */

  /* .glider-slide {
    min-width: 180px;
    min-height: 260px;
    
    
  } */
  /* .glider-track{
    gap: 50px;
    
  } */
  /* .rankedPreview-movieList{
    gap: 32px;
  } */
  /* .rankedPreview-movieList .movie-container .movie-img{
    min-width: 180px;
    min-height: 260px;
  } */

  .glider.draggable{
    height: 100%;
    
  }
  /* .rankedPreview-movieList  .glider-track{
    gap: 64px;
  } */
  /* .genericList-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    justify-items: center;
  }


  .genericList-container .movie-img{
    width: 280px;
  } */
  .genericList-container .movie-container{
    width: 250px;
    margin: 10px;
  }
  
}


@keyframes skeleton-loading {
  0% {
    background-color: hsl(240, 2%, 89%);
  }
  100% {
    background-color: hsl(264, 21%, 42%);
  }
}