body {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

h1{
  margin: 0;
}

p{
  margin: 0;
}

.of-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: flex-end; 
  margin-top: 20px; 
}

img {
  width: 20%;
  margin-top: 10px;
}

.container-carrusel{
  width: 100%;
  
  margin: 0 auto;
    height: 550px;
    margin: 0;
    display: grid;
    grid-template-rows: 500px 100px;
    grid-template-columns: 1fr 30px 30px 30px 30px 30px 1fr;
    align-items: center;
    justify-items: center;
}


div#carousel {
  grid-row: 1 / 2;
  grid-column: 1 / 8;
  width: calc(100vw - 20px); 
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 600px;
  --items: 8;
  --middle: 4;
  --position: 1;
  pointer-events: none;
  
}


div.item {
    position: absolute;
    width: 300px;
    height: 400px;
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.29s linear;
    transform: rotateY(calc(-10deg * var(--r)))
        translateX(calc(-300px * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
}

div.item:nth-of-type(1) {
  --offset: 1;
  background-image: url('/img/photo_5044072887811682119_y.jpg');
  background-size: cover;
}
div.item:nth-of-type(2) {
  --offset: 2;
  background-image: url('/img/photo_5049022820440452741_y.jpg');
  background-size: cover;
}
div.item:nth-of-type(3) {
  --offset: 3;
  background-image: url('/img/photo_5053374206426853017_y.jpg');
  background-size: cover;
}
div.item:nth-of-type(4) {
  --offset: 4;
  background-image: url('img/photo_5049022820440452736_y.jpg');
  background-size: cover;
}
div.item:nth-of-type(5) {
  --offset: 5;
  background-image: url('/img/photo_5053374206426852999_y.jpg');
  background-size: cover;
}

input:nth-of-type(1) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin-top:-3rem;
}
input:nth-of-type(1):checked ~ div#carousel {
  --position: 1;
}

input:nth-of-type(2) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  margin-top: -3rem;
}
input:nth-of-type(2):checked ~ div#carousel {
  --position: 2;
}

input:nth-of-type(3) {
  grid-column: 4 /5;
  grid-row: 2 / 3;
   margin-top: -3rem;
}
input:nth-of-type(3):checked ~ div#carousel {
  --position: 3;
}

input:nth-of-type(4) {
  grid-column: 5 / 6;
  grid-row: 2 / 3;
   margin-top:-3rem;
}
input:nth-of-type(4):checked ~ div#carousel {
  --position: 4;
}

input:nth-of-type(5) {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
  margin-top: -3rem;
}
input:nth-of-type(5):checked ~ div#carousel {
  --position: 5;
}
.off-sale{
  display: flex;
  justify-content: center;
  align-items: center;

}

main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.emojis{
  font-size: 40px;
}

.info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}


.ubication{
  display: flex;
  justify-content: center;
  align-items: center;
}

.online-status{
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-direction: column;
  padding-bottom: 2rem;
}



.button {
    display: inline-block;
    text-align: center;
    background: var(--color);
    color: var(--bg);
    font-weight: bold;
    padding: 8px 5rem 15px 5rem;
    line-height: 1;
    border-radius: 1em;
    position: relative;
    min-width: 8.23em;
    text-decoration: none;
    font-family: var(--font);
    font-size: 1.25rem;
    background-color: #05abed;
    color: white;
    font-weight: 900;
    font-family: 'arial';
    margin-bottom: 1rem;
}

.wrapper>p {
    font-size: 1.8rem;
    font-family: 'arial';
    font-weight: 700;
    color: #05abed;
}

/*media queries|*/



/* Estilos base que se aplican a todos los tamaños de pantalla */

.container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.container-carrusel > img {
  width: 50%;
}

.wrapper > p {
  font-size: 1em;
}

h1 {
  font-size: 1.5em;
}

.emojis {
  font-size: 13px;
}

p {
  font-size: 13px;
  margin: 10px 0;
}

.button {
  text-align: center;
  font-size: 0.9em;
  padding: 5px 3rem 19px 3rem;
}

/* Estilos para pantallas pequeñas (hasta 425px) */

@media (max-width: 425px) {
  .container {
    width: 95%;
    /* Mantén los estilos base */
  }

  div.item {
    width: 250px;
    height: 280px; 
    background-size: cover; 
  }

  .container-carrusel {
    grid-template-rows: 300px 90px;
    height: 350px;
  }

  .wrapper{
    margin-top: 0;
  }

  .button {
    font-size: 1.2rem;
  }

  img {
    width: 40%;
  }
}

/* Estilos para pantallas medianas (hasta 768px) */

@media (max-width: 768px) and (min-width: 426px) {
  /* Aplica estilos específicos para pantallas medianas aquí */
  .container {
    height: 400px;
  }

  .container-carrusel{
      grid-template-rows: 500px 40px;

  }


  .wrapper{
    margin-top: 0;
  }

  h1 {
  font-size: 2em;
}

.emojis {
  font-size: 20px;
}

p {
  font-size: 20px;
  margin: 10px 0;
}

.wrapper > p {
  font-size: 1.5em;
}

a.button{
  font-size: 1.1rem;
}
}

/* Estilos para pantallas grandes (más de 768px) */

@media (min-width: 768px) {
  .container {
    width: 95%;
    /* Mantén los estilos base y los ajustes para pantallas pequeñas y medianas */
    height: 230px;
  }



  .d-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
  }

  .of-img > img {
    width: 30%;
  }

  .container-carrusel {
    max-width: 800px;
    grid-template-rows: 450px 90px;
  }

   .wrapper{
    margin-top: 0;
  }

  h1 {
  font-size: 2em;
}

.emojis {
  font-size: 20px;
}

p {
  font-size: 1.2rem;
  margin: 10px 0;
}

.wrapper > p {
  font-size: 1.5em;
}

a.button{
  font-size: 1.1rem;
}

  .button {
    font-size: 1.3rem;
    padding: 10px 3rem 18px 3rem;
  }
}
