body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: start;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  color: #000;
  transition: background-color 0.3s, color 0.3s;
}

h1,
h2 {
  color: #333333;
}

h2 {
  margin-top: 10px;
}

p {
  color: #666666;
  margin-bottom: 20px;
}

.view {
  margin-top: 80px;
}

.content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.column {
  max-width: 600px;
  text-align: start;
}

.content-home{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Estilo para el contenedor del formulario */
.form-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.14);
  max-width: 300px;
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
}

/* Estilo para las etiquetas */
label {
  display: block;
  margin-bottom: 5px;
  color: #333333;
  font-weight: bold;
}

/* Estilo para los campos de texto */
input[type="text"],
input[type="date"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]::placeholder,
input[type="date"]::placeholder {
  color: #999;
}

input[type="text"]:focus,
input[type="date"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

/* Estilo para el botón */

/* Estilos para accesibilidad */
input[type="text"]:disabled,
input[type="date"]:disabled {
  background-color: #e9ecef;
  opacity: 1;
}

@media (max-width: 768px) {
  .form-container {
    padding: 15px;
  }

  input[type="text"],
  input[type="date"] {
    font-size: 14px;
  }
}

#img-home{
  min-width: 250px;
  max-width: 800px;
  width: 30%;
}

.logo-image {
  width: 150px; /* Ajusta el tamaño de la imagen según sea necesario */
  margin-right: 20px;
}

canvas {
  max-width: 600px; /* Ajuste para que la gráfica sea responsiva */
  height: 100px; /* Ajuste para mantener la proporción */
}

.controls {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .controls {

    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .controls {
    width: 100%;
    max-width: none;
  }
}

.control-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.control-oido {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #333333;
}

input[type="range"] {
  width: 100%;
}

.frequency-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  margin-bottom: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

.control-group {
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.14);
  padding: 5px 15px;
  border-radius: 10px;
}

#playPauseButton.playing {
  background-color: red;
}

#playPauseButton.paused {
  background-color: blue;
}

.app-bar {
  width: 100%;
  padding: 10px 20px;
  background-color: #333333;
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s, color 0.3s; /* Transición de tema */
}

.app-bar.light-theme {
  background-color: #f0f0f0;
  color: #000;
}

.app-logo {
  width: 40px; /* Ajustar el tamaño según sea necesario */
  height: 40px;
  margin-right: 10px;
}

.app-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.app-nav li {
  margin-right: 20px;
}

.nav-item {
  color: #ffffff;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}






.nav-item:hover {
  background-color: #555555;
}

.nav-item.active {
  background-color: #007bff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.card {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  margin: 10px;
  background-color: #ffffff;
  border-radius: 10px;
}

.card img {
  width: 60%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.card h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #333333; /* Color de texto para ambos temas */
}

.card p {
  color: #666666;
  margin-bottom: 10px;
}

.card .button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.card .button:hover {
  background-color: red;
}


.title{
  font-size: 18px;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.graph {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Estilos para iconos de luna y sol */
.slider:before {
  content: "🌙"; /* Icono de luna */
}

input:checked + .slider:before {
  content: "☀️"; /* Icono de sol */
}

#themeToggle {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#themeToggle:hover {
  background-color: #0056b3;
}

.dark-theme #themeToggle {
  background-color: #121212; /* Ajuste de color para tema oscuro */
}

.light-theme #themeToggle {
  background-color: #f0f0f0; /* Ajuste de color para tema claro */
  color: #000; /* Ajuste de color de texto para tema claro */
}

.light-theme .form-container {
  background-color: #fff;
}

.dark-theme .form-container {
  background-color: #121212;
}

.dark-theme {
  background-color: #121212;
  color: #ffffff;
}

.dark-theme .container {
  background-color: #1e1e1e;
}

.dark-theme label {
  color: #cccccc;
}

.light-theme {
  background-color: #f0f0f0;
  color: #000;
}

.light-theme .container {
  background-color: #ffffff;
}

.light-theme label {
  color: #333333;
}

.light-theme .card {
  background-color: #ffffff; /* Fondo blanco */
  color: #333333; /* Texto oscuro */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); /* Sombra en tema claro */
}

.dark-theme .card {
  background-color: #333333; /* Fondo oscuro */
  color: #ffffff; /* Texto claro */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Sombra en tema oscuro */
}

.light-theme .card h2 {
  color: #333333 /* Borde inferior para imagen en tema claro */
}

.dark-theme .card h2 {
  color: #121212; ; /* Borde inferior para imagen en tema oscuro */
}

/* Ajustes de colores según tu solicitud */
.light-theme {
  background-color: #ffffff; /* Fondo blanco */
  color: #333333; /* Texto oscuro */
}

.light-theme .app-bar {
  background-color: #007bff; /* Azul */
}

.light-theme .nav-item {
  background-color: #007bff; /* Azul */
}

.light-theme .nav-item.active {
  background-color: #0056b3; /* Azul más oscuro */
}

.light-theme .slider.round {
  background-color: #007bff; /* Azul */
}

.light-theme .slider.round:before {
  color: #ffffff; /* Icono blanco */
}

.light-theme #themeToggle {
  background-color: #007bff; /* Azul */
}

.dark-theme {
  background-color: #121212; /* Fondo oscuro */
  color: #ffffff; /* Texto claro */
}

.dark-theme .app-bar {
  background-color: #ff0000; /* Rojo */
}

.dark-theme .nav-item {
  background-color: #ff0000; /* Rojo */
}

.dark-theme .nav-item.active {
  background-color: #a30000; /* Rojo más oscuro */
}

.dark-theme .slider.round {
  background-color: #ff0000; /* Rojo */
}

.dark-theme .slider.round:before {
  color: #ffffff; /* Icono blanco */
}

.dark-theme #themeToggle {
  background-color: #ff0000; /* Rojo */
}
