body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 110vh !important; 
  margin: 0 !important;
  background-color: #7590b7 !important;
}

.title {
  text-align: center;
  color: white;
  margin-bottom: 5px;
}

.title > h1 {
  font-weight: bold; 
  /* -webkit-text-stroke: 0.8px black;  */
  background-clip: text;
  /*padding-bottom: 15px;*/
}



.row {
  background-color: #ffffff42;
  padding-bottom: 15px;
  padding-top: 15px;
  border-radius: 10px;    
  border: 2px solid black;
}

.camera {
  width: 100%; /* Usa el ancho completo en cualquier pantalla */
  max-width: 400px; /* Limita el tamaño máximo a 400px */
  margin: auto; /* Centra horizontalmente */
  overflow: hidden; /* Evita que el contenido se desborde */
}

/* .camera {
  padding:10px;
  background:#fff;
  border-radius: 5px;
  box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.781);
} */

.camera > p {
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}

.caja2 {
  text-align: center;
}

.caja2 > p {
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  /* padding-bottom: 15px; */
  padding-top: 20px;
  padding-left: 80px;
}

.item2 {
  border-radius: 4px;
  padding: 0;
  background: #fff;
  position: relative;
  margin: 10px auto 30px auto;
  width: 350px;
}

.item3 {
  text-align: center;
  /*padding-top: 40px;*/
}

.boton-iniciar {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0c1b86;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.boton-iniciar:hover {
  background-color: rgb(26, 170, 7);
  color: #fff;
}

.camera video {
  max-width: 100%; /* El video no será más grande que el contenedor */
  height: auto; /* Ajusta la altura automáticamente manteniendo la proporción */
  border-radius: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 400px; /* Tamaño máximo del contenedor */
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  /*border: 2px solid black;*/
  height: 250px; /* Altura fija del contenedor */
}

#preview {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}




@media screen and (max-width: 768px) {
    
body {
  height: 110vh !important; 
}

  .video-container {
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
    max-width: 100%; /* Limita el tamaño máximo en móviles */
    height: 200px; /* Ajusta la altura según lo requerido */
}

#preview {
  width: 100%;
  height: auto;
  max-height: 250px; 
}

  .camera video {
    max-width: 100%; 
    height: 200px; 
  }

  #camera-buttons {
    display: flex !important;
    justify-content: space-around;
    margin-bottom: 15px;
  }

  .camera {
    text-align: center; 
    margin: auto;
    margin-bottom: 15px;
  }

  .time .time-colon .am_pm {
    position: sticky !important;
    top: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
  }
  .title > h1 {
    font-weight: bold;   
    background-clip: text;    
    margin-top: -20px;
    font-size: 26px;
  }

  .title > img{
    width: 160px;
  }

}


@media screen and (max-width: 480px) {
  #preview {
    width: 100%;
    height: auto;
    max-height: 250px; 
  }

  .camera video {
    height: 150px; /* Ajusta aún más la altura en pantallas pequeñas */
  }

  .time .time-colon .am_pm {
    position: sticky !important;
    top: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
  }

  .title > h1 {
    font-weight: bold;   
    background-clip: text;    
    margin-top: -20px;
    font-size: 26px;
  }

  .title > img{
    width: 160px;
  }


}


