@keyframes fadeInUp {
    from {
      opacity: 1;
      transform: translateY(400px); /* Inicia 400px más abajo */
    }
    to {
      opacity: 1;
      transform: translateY(0); /* Termina en su posición original */
    }
  }

  

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


* {

}

html{
    background-color: white;
}

.main-buses{
  padding-top: 0%;
    display: flex;
    flex-direction: column-reverse;
}

.buses-sec0{
    position: fixed;
    display: flex;
    flex-direction: row;
    z-index: 2;
    bottom: 0;
    background-color: white;
}

.buses-sec0 form{
    padding: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100vw;
    overflow-x: scroll;
}

.checkbox-container {
    display: inline-block;
    margin-right: 10px; /* Espacio entre los checkboxes */
  }
  
  .checkbox-label {
    display: block;
    width: 180px;  /* Ajusta el tamaño de checkbox */
    height: 94px;
    background-size: contain;
    background-repeat: repeat-y;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .buses-sec1{
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 7vh 0% 0% 0%;
}
  
.bus-info{
    display: flex;
    flex-direction: column;
    margin: 1% 15% 1% 15%;
    height: 35dvh;
    padding: 10px;
    overflow-y: visible;
    overflow-x: hidden;
    font-size: 16px;
}

.bus-info li{
  white-space: nowrap;
}

.btn-info{
  color: white !important;
}
.scroll-indicator {display: none}


.imgCarr{
    object-fit: cover;
    width: 100%;
    height: 40vh;
}

.croquis{
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: center;
    z-index: 2;
    animation: fadeInUp 0.5s ease-in-out forwards;
}
.croquis img{
    height: 80%;
    width: 80%;
    border: 2px solid black;
    border-radius: 10px;
    pointer-events: none;
}

.close-croquis{
    background-color: white;
    margin-left: 72%;
    cursor: pointer;
}

  /* Ocultar el checkbox nativo */
  input[type="radio"] {
    display: none;
  }
  
  /* Estilos para cada imagen diferente */
  .img-1 {
    background-image: url('../../images/bus-draws/olimpico-ca.png');
  }
  
  .img-2 {
    background-image: url('../../images/bus-draws/olimpico-melon.png');
  }
  
  .img-3 {
    background-image: url('../../images/bus-draws/dorado.png');
  }
  
  .img-4 {
    background-image: url('../../images/bus-draws/paradiso.png');
  }
  
  .img-5 {
    background-image: url('../../images/bus-draws/paradiso.png');
  }
  
  /* Cuando el checkbox está seleccionado */
  #checkbox-1:checked + .img-1,
  #checkbox-2:checked + .img-2,
  #checkbox-3:checked + .img-3,
  #checkbox-4:checked + .img-4,
  #checkbox-5:checked + .img-5 {
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece el fondo al seleccionar */
    border-radius: 10px;
  }
  

/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

@media (min-width: 1281px) {
  .main-buses{
    padding-top: 0;
  }
    .buses-sec0 form{
        flex-direction: column;
        align-items: start;
        width: 12vw;
        height: 90vh;
        overflow: hidden;
    }
    
    .checkbox-container {
        display: inline-block;
        margin-right: 10px; /* Espacio entre los checkboxes */
      }
      
      .checkbox-label {
        width: 12vw;  /* Ajusta el tamaño de checkbox */
        height: 6vw;
      }
    
      .buses-sec1{
        flex-direction: row;
        margin: 10vh 0% 0% 12vw;
    }
      
    .bus-info{
        margin: 1% 1% 1% 3%;
        height: 80vh !important;
        width: 100%;
        overflow-y: hidden;
        font-size: x-large;
    }
    
    .scroll-indicator {display: none}

    .imgCarr{
        object-fit: cover;
        margin: 1% 1% 1% 1%;
        width: 55vw;
        height: 85vh;
        border-radius: 10px;
    }
    
    .croquis{
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: center;
        z-index: 2;
        animation: fadeInUp 0.5s ease-in-out forwards;
    }
    .croquis img{
        height: 35%;
        width: 35%;
        border: 2px solid black;
        border-radius: 10px;
    }
    .close-croquis{
        background-color: white;
        margin-left: 40%;
        cursor: pointer;
    }
}

/* 
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) and (max-width: 1280px) {
  .main-buses{
    padding-top: 0;
  }
    .buses-sec0 form{
        flex-direction: column;
        align-items: start;
        width: 12vw;
        height: 90vh;
        overflow: hidden;
    }
    
    .checkbox-container {
        display: inline-block;
        margin-right: 10px; /* Espacio entre los checkboxes */
      }
      
      .checkbox-label {
        width: 12vw;  /* Ajusta el tamaño de checkbox */
        height: 6vw;
      }
    
      .buses-sec1{
        flex-direction: row;
        margin: 10vh 0% 0% 12vw;
    }
      
    .bus-info{
        margin: 1% 1% 1% 3%;
        height: 80vh !important;
        width: 100%;
        overflow-y: scroll;
        font-size: 18px;
    }

    .scroll-indicator {display: none}
    
    .imgCarr{
        object-fit: cover;
        margin: 1% 1% 1% 1%;
        width: 55vw;
        height: 85vh;
        border-radius: 10px;
    }
    
    .croquis{
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: center;
        z-index: 2;
        animation: fadeInUp 0.5s ease-in-out forwards;
    }
    .croquis img{
        height: 35%;
        width: 35%;
        border: 2px solid black;
        border-radius: 10px;
    }
    .close-croquis{
        background-color: white;
        margin-left: 40%;
        cursor: pointer;
    }
}

/* 
  ##Device = Tablets, Ipads, (portrait)
  ##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 1024px){
.buses-sec0{
   height: 15vh;
}

.buses-sec0 form{
    align-items: center;
    height: fit-content;
    padding: 0;
}

.checkbox-container {
    height: 100%;
  }
  
  .checkbox-label {
    width: 350px;  /* Ajusta el tamaño de checkbox */
    height: 194px;
  }

.bus-info{
    font-size: large;
}

.close-croquis{
    width: 50px;
    height: 50px;
}
}


@media (max-height: 850px) and (max-width: 475px){
  .bus-info{
    height: fit-content;
    font-size: small;
  }
  .bus-info h2{
    font-size:  large !important;
  }
  .bus-info button{
    font-size:  small !important;
  }
}
@media (max-height: 750px) and (max-width: 475px){
  .main-buses{
    padding-top: 0%;
  }
  .scroll-indicator {
    position: relative;
    bottom: 32%;
    right: -30%;
    transform: translateX(-50%);
    text-align: center;
    color: #555;
    font-size: 16px;
    pointer-events: none;
    animation: bounce 1.5s infinite;
}

.scroll-indicator .arrow {
    font-size: 14px;
    display: block;
}
.scroll-indicator {display: none}

.bus-info{
  height: fit-content;
}

.buses-sec0 form{
  height: 10vh;
}

}

@media (max-height: 690px) and (max-width: 475px){
  .main-buses{
    padding-top: 5%;
  }
}
