/*
*
* Boiler Plate stuff
*
*********************************/
:root {
  --movie-width: 15vw;
  --movie-height: 15vw;
  --card-height: 30vw;
  --des-width: 196px;
  --arrow-width: 50px;
  --slider-ptop: 20px;
  --slider-pbottom: 20px;
}
@media only screen and (max-width: 600px) {
  :root {
    --movie-width: 25vw;
  }
}

.container {
  position: relative;
  overflow-y: visible;
}

/*
*
* THE SLIDER CONTAINER
*
*********************************/
.slider {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
  position: relative;
  padding-top: var(--slider-ptop);
  padding-bottom: var(--slider-pbottom);
}

.slider_grid {
  display:block;
  position: static;
  white-space: normal;
}

/*
*
* MOVIE ELEMENTS!
*
*********************************/
.book_desc {
  width: var(--movie-width);
  /*height: var(--movie-height);*/
  aspect-ratio: 1;
  display: block;
  position: absolute;
  color: white;
  margin: 0 0;
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}
  .book_desc > .description {
    display: block;
    opacity: 0;
    transition: opacity 0s;
    }
.movie {
  width: calc(25% - 23px);
  aspect-ratio: 1;
  display: inline-block;
  position: relative;
  color: white;
  margin: 0 2px;
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}

.movie_grid {
  width:200px;
  aspect-ratio: 1;
  position: static;
  color: white;
  /*margin: 0;
  padding:10px;*/
}

.movie:nth-of-type(1) {
  margin-left: var(--arrow-width);
}
.movie_grid:nth-of-type(1) {
  margin: 0;
}

.movie img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.book_desc img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.description {
  position: absolute;
  display: block;
  opacity: 0;
  /*z-index: 9999;*/
  background-color: #272727;
  width: 100%;
  margin-top: -10px;
  padding: 0 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: opacity 0.3s;
}

  .book_desc:hover {
    transform: scale(1.3);
    z-index: 3;
  }
  /* Make description visible when movie is hovered */
  .book_desc:hover > .description {
    /*display: block;*/
    opacity: 1;
    transition: opacity 0.3s;
  }
  .book_desc:hover > img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }


.book_lock {
  position: absolute;
  top: 75%;
  left: 0px;
  color: black;
  font-size: 24px;
  padding: 10px 10px;
  opacity: 0.6;
}

.description__buttons-container {
  display: flex;
  flex-direction: row;
  padding: 10px;
}

.description__text-container {
  padding: 10px;
}

.description__match {
  color: green;
}

.description__rating {
  outline: 1px solid white;
  padding: 0 3px;
  margin: 0 5px;
}

.description__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  text-align: center;
  font-size: 14px;
  margin-right: 5px;
  border-radius: 100%;
}

.description__button:hover {
  border-color: grey;
  color: grey;
  cursor: pointer;
}
.description__button_disabled {
  border-color: grey;
  color: grey;
  pointer-events: none;
}

.unclickable_button{
  pointer-events: none;
}
.description__button:nth-of-type(4) {
  margin-left: auto;
  margin-right: 0;
}

.description__series, .description__topics,.description__rating,.description__length {
    direction: rtl;
    float:right
}
.description__length {
    direction: rtl;
    float:left
}
/*
*
* BUTTONS
*
*********************************/
.btn-nav {
  width: var(--arrow-width);
  height:calc( 100% - 40px );
  border-radius: 5px;
  position: absolute;
  /*bottom: 0;*/
  background-color: rgba(0, 0, 0, 0.3) !important;
  outline: none;
  border: none;
  color: white;
  top: var(--slider-ptop);
  z-index: 5;
  visibility: hidden;
  padding: 0;
}
.btn-nav_grid {
    display: none;
}

.btn_nav_left {
  left: 0;
}

.btn_nav_right {
  right: 0;
}

@media only screen and (min-width: 1000px) {
  .movie {
    width: calc(20% - 23px);
  }
}
@media only screen and (min-width: 700px) and (max-width:1000px){
  .movie {
    width: calc(25% - 28px);
  }
}
@media only screen and (min-width: 500px) and (max-width:700px){
  .movie {
    width: calc(33% - 34px);
  }
}
@media only screen and (max-width: 500px){
  .movie {
    width: calc(50% - 53px);
  }
}


.container:hover .btn-nav {
    visibility: visible;
}
