@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap');

:root {
  --primary-color: rgb(229, 9, 20);
  --secondary-color: #000000;
}

* {
  box-sizing: border-box;
}

body {
  background-color: whitesmoke;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
}


.logo {
  width: 200px;
}

nav {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  background-color: var(--secondary-color);
}

.search {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  color: #fff;
}

.search::placeholder {
  color: #c00303;
}

.search:focus {
  outline: none;
  background-color: #e7e7e7;
  color: #000000;
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.movie {
  width: 300px;
  height: 400px;
  margin: 1rem;
  background-color: var(--secondary-color);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}


.movie img {
  width:100%;
}

.movie-info {
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.5rem 1rem 1rem;
  letter-spacing: 0.5px;
}

.movie-info h3 {
  margin-top: 0;
}

.movie-info span {
  background-color: rgb(54, 54, 54);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

.movie-info span.green {
  color: lightgreen;
}

.movie-info span.orange {
  color: orange;
}

.movie-info span.red {
  color: red;
}

.overview {
  font-size: 14px;
  background-color: #660000;
  color: rgb(255, 255, 255);
  padding: 2rem;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  max-height: 100%;
  transform: translateY(101%);
  overflow-y: auto;
  transition: transform 0.3s ease-in;
}

.movie:hover .overview {
  transform: translateY(0);
}


.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.nav-btn {
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 20px;
}

.open-btn {
  position: fixed;
  top: 10px;
  left: 10px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.nav.visible {
  transform: translateX(0);
}

.nav-black {
  background-color: rgb(34, 31, 31);
  width: 60%;
  max-width: 480px;
  min-width: 320px;
  transition-delay: 0.4s;
}

.nav-black.visible {
  transition-delay: 0s;
}

.nav-red {
  background-color: rgb(229, 9, 20);
  width: 95%;
  transition-delay: 0.2s;
}

.nav-red.visible {
  transition-delay: 0.2s;
}

.nav-white {
  background-color: #fff;
  width: 95%;
  padding: 40px;
  position: relative;
  transition-delay: 0s;
}

.nav-white.visible {
  transition-delay: 0.4s;
}

.close-btn {
  opacity: 0.3;
  position: absolute;
  top: 40px;
  right: 30px;
}

.list {
  list-style-type: none;
  padding: 0;
}

.list li {
  margin: 20px 0;
}

.list li a {
  color: rgb(34, 31, 31);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.list ul {
  list-style-type: none;
  padding-left: 20px;
}


.highlight {
  background-color: rgb(5, 5, 5);
  border: 2px solid red;
}


a.ver-ahora {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  margin-top: 20px;
  font-weight: bold;
}

a.ver-ahora:hover {
  background-color: rgb(255, 0, 0);
  transition: 0.7s;
  color: rgb(255, 255, 255);
}
.text {
  text-transform: uppercase;
  margin-top: none;
}
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.slide {
  position: relative;
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.64);
  margin-top: 26px;
  height: auto;
}

.slide-inner {
  position: relative;
  overflow: hidden;
  width: auto;
  height: auto;
}

.slide-item img {
    display: block;
    width: 100%; 
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;

  }

.slide-open:checked + .slide-item {
  position: static;
  opacity: 100;
}

.slide-item {
  position: absolute;
  width: 100%;
  height: auto; 
  opacity: 0;
  -webkit-transition: opacity 0.6s ease-out;
  transition: opacity 0.6s ease-out;
}

.slide-control {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 40px;
  height: 40px;
  line-height: 35px;
  position: absolute;
  top: 50%;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  text-align: center;
  width: 40px;
  z-index: 3; 
}

.nav {
  z-index: 2; 
}


.slide-control.prev {
  left: 2%;
}

.slide-control.next {
  right: 2%;
}

.slide-control:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #aaaaaa;
}

#slide-1:checked ~ .control-1,
#slide-2:checked ~ .control-2,
#slide-3:checked ~ .control-3 {
  display: block;
}

.slide-indicador {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 2%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.slide-indicador li {
  display: inline-block;
  margin: 0 5px;
}

.slide-circulo {
  color: #828282;
  cursor: pointer;
  display: block;
  font-size: 35px;
}

.slide-circulo:hover {
  color: #aaaaaa;
}

#slide-1:checked ~ .control-1 ~ .slide-indicador 
   li:nth-child(1) .slide-circulo,
#slide-2:checked ~ .control-2 ~ .slide-indicador 
    li:nth-child(2) .slide-circulo,
#slide-3:checked ~ .control-3 ~ .slide-indicador 
    li:nth-child(3) .slide-circulo {
  color: #8f0000;
}

#titulo {
  width:auto;
  position: absolute;
  padding: 0px;
  margin: 0px auto;
  text-align: center;
  font-size: 27px;
  color: rgba(255, 255, 255, 1);
  font-family: 'Open Sans', sans-serif;
  z-index: 9999;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.33), 
       -1px 0px 2px rgba(255, 255, 255, 0);
}
.slide-control {
  z-index: 2;
}


@media (max-width: 767px) {
  .slide-control {
    z-index: 3;
  }
  .nav {
    z-index: 4; 
  }
  .slide-indicador {
    z-index: 3;
  }
  * {
    box-sizing: border-box;
  }
  
  body, html {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
  }
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

  .nav-btn {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 20px;
  }

  .open-btn {
    position: fixed;
    top: 10px;
    left: 10px;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav.visible {
    transform: translateX(0);
  }

  .nav-black,
  .nav-red,
  .nav-white {
    width: 95%;
    min-width: auto;
  }

  .nav-black.visible,
  .nav-red.visible,
  .nav-white.visible {
    transition-delay: 0s;
  }

  .close-btn {
    opacity: 0.3;
    position: absolute;
    top: 40px;
    right: 30px;
  }
  .search {
    width: 100%;
    padding: 8px;
    font-size: 14px;
  }
  .text {
    text-transform: uppercase;
    margin-top: none; 
  }

  footer {
    padding: 5px; 
    width: 100%;
  }



  .slide {
    margin-top: 1px; 
  }
  .slide-inner,
  .slide-item img {
    height: 12%; 
  }
  .slide-control.prev,
  .slide-control.next {
    font-size: 30px; 
    height: 30px; 
    line-height: 30px; 
    width: 30px; 
  }
  .slide-item img {
    max-width: 100%;
    max-height: 100%;
  }
  .slide-item img {
    width: 100%;
    height: 250px; 
  }
  #titulo {
    font-size: 24px; 
  }

  .movie {
    width: 40vh;
    height: 50vh;
    margin: 1rem;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
  }

  .overview {
    font-size: 11px;
    background-color: #660000;
    color: rgb(255, 255, 255);
    padding: 2rem;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    max-height: 100%;
    transform: translateY(101%);
    overflow-y: auto;
    transition: transform 0.3s ease-in;
  }

  
}


  
  



@media (max-width: 319px) {

  
  .slide-control {
    z-index: 3;
  }
  .slide-indicador {
    z-index: 3;
  }
  .nav {
    z-index: 4; 
  }
  * {
    box-sizing: border-box;
  }
  
  body, html {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
  }
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

  .nav-btn {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 20px;
  }

  .open-btn {
    position: fixed;
    top: 10px;
    left: 10px;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav.visible {
    transform: translateX(0);
  }

  .nav-black,
  .nav-red,
  .nav-white {
    width: 95%;
    min-width: auto;
  }

  .nav-black.visible,
  .nav-red.visible,
  .nav-white.visible {
    transition-delay: 0s;
  }

  .close-btn {
    opacity: 0.3;
    position: absolute;
    top: 40px;
    right: 30px;
  }
  .search {
    width: 100%;
    padding: 5px;
    font-size: 12px;
  }
  footer {
    padding: 2px; 
    width: 100%;
  }
  .slide-item img {
    max-width: 100%;
    max-height: 100%;
  }
  .movie {
    width: 40vh;
    height: 50vh;
    margin: 1rem;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
  }

  .overview {
    font-size: 11px;
    background-color: #660000;
    color: rgb(255, 255, 255);
    padding: 2rem;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    max-height: 100%;
    transform: translateY(101%);
    overflow-y: auto;
    transition: transform 0.3s ease-in;
  }
}


#about p {
    margin-left: 30px;
    margin-right: 30px;
    font-size: 18px;
    text-align: justify;
 }
@media (max-width: 767px) {
  #about p {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media (max-width: 319px) {
  #about p {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }
}
