/* www/src/style.css */

/* Estilos generales */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  color: #333;
  text-align: center;
}

.modak-regular {
  font-family: 'Modak', sans-serif;
  font-size: 4rem;
  color: #fff;
}

/* Pantalla de inicio */
.home-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 20px;
}

.btn {
  padding: 15px 30px;
  font-size: 1.2em;
  border: none;
  border-radius: 25px;
  background-color: #ff4444;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ff6666;
}

/* Botón de captura */
.capture-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  padding: 0;
  background-color: #ff7e5f;
  border: none;
  color: white;
  font-size: 2em;
  border-radius: 50%;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.capture-btn:hover {
  background-color: #feb47b;
}

/* Barra de progreso */
#timeline {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #e9ecef;
  z-index: 1001;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #ff5555;
  transition: width 0.1s;
}

/* Pantalla de carga */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 1000;
  font-size: 2em;
}

.loading-screen l-quantum {
  margin-bottom: 20px;
}

/* Botón de reinicio */
#restart-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 1001;
}

#restart-button {
  padding: 15px 30px;
  background-color: #ff5555;
  border: none;
  color: white;
  font-size: 1.5em;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#restart-button:hover {
  background-color: #ff7777;
  transform: scale(1.05);
}

/* Instrucciones */
#instructions {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  z-index: 1003;
  animation: fadeInOut 6s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Responsive */
@media only screen and (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  .btn {
    font-size: 1.2em;
    padding: 12px 25px;
  }

  .capture-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
  }

  #instructions p {
    font-size: 1em;
  }
}

/* Estilos para el spinner */
.spinner {
  border: 12px solid #f3f3f3;
  border-top: 12px solid #ff5555;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Estilos para el contenedor de video en iOS */
#ios-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#ios-video {
  max-width: 100%;
  max-height: 100%;
}
