/* =============================== */
/* TIPOGRAFÍA Y ESTILOS BASE       */
/* =============================== */
h1, h2, h3, h4, h5, h6, p {
  font-family: Arial, sans-serif;
  transition: all 0.3s ease-in-out;
}

h3, h4, h5 {
  text-align: left;
}

h4 {
  font-size: 15px;
}

h5 {
  font-size: 10px;
}

p {
  font-size: 15px;
  text-align: center;
  line-height: 1.5;
}

/* =============================== */
/* RESPONSIVE Y CONTENEDORES       */
/* =============================== */
@media all and (min-width: 900px) {
  aside {
    float: right;
    padding-right: 24px;
    width: 34%;
    background-color: lightgray;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 15px;
    text-align: right;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .item {
    background-color: lightgray;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 15px;
    text-align: center;
  }
}

@media all and (max-width: 900px) {
  .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

.item {
  background-color: lightgray;
  padding: 10px;
  border: 1px solid lightgray;
  border-radius: 15px;
  text-align: center;
}

audio {
  width: 100%;
  border-radius: 5px;
}

#showNotification {
  margin: 20px;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background: #0078D7;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#showNotification:hover {
  background: #005fa3;
  transform: scale(1.05);
}

.notification {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f44336;
  color: white;
  padding: 16px;
  border-radius: 8px;
  z-index: 1000;
}

.notification.show {
  display: block;
}

.close {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
}

/* =============================== */
/* NAVBAR                          */
/* =============================== */
nav {
  border-radius: 15px;
}

nav ul {
  list-style-type: none;
  background-color: lightgray;
  border: 4px solid lightgray;
  border-radius: 10px;
  font-family: sans-serif;
  font-weight: bold;
  padding: 16px;
}

nav ul li {
  display: inline-block;
  border-right: 2px solid black;
  padding: 0 8px;
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #333;
}

/* Elemento seleccionado simple */
nav ul li.selecionado {
  color: #000;       /* texto negro */
  font-weight: bold;  /* destacado */
  text-shadow: none;  /* sin brillo */
  transform: none;    /* sin escala */
  transition: none;   /* sin animación extra */
}

/* =============================== */
/* FOOTER                          */
/* =============================== */
footer {
  background-color: lightgray;
  padding: 10px;
  border-radius: 15px;
  text-align: center;
}

/* =============================== */
/* EFECTO DE APARICIÓN (fade-in)  */
/* =============================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3, h4, h5, h6 {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

h1 { animation-delay: 0.1s; }
h2 { animation-delay: 0.3s; }
h3 { animation-delay: 0.5s; }
h4 { animation-delay: 0.7s; }
h5 { animation-delay: 0.9s; }

button {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

button:nth-child(1) { animation-delay: 0.2s; }
button:nth-child(2) { animation-delay: 0.4s; }
button:nth-child(3) { animation-delay: 0.6s; }
button:nth-child(4) { animation-delay: 0.8s; }

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =============================== */
/* MODO OSCURO                      */
/* =============================== */
body.dark-mode {
  background-color: #121212;  /* fondo de la página */
  color: #e0e0e0;             /* texto general */
}

body.dark-mode .quick-access button {
  background: #444;
}

body.dark-mode .quick-access button:hover {
  background: #666;
}

body.dark-mode .theme-toggle {
  background: #e0e0e0;
  color: #121212;
}
/*meme sounds bugs*/

body.dark-mode .item {
  background-color: #1e1e1e; /* fondo oscuro */
  color: #ffffff; /* texto blanco */
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Mantener nav y footer exactamente igual que en modo claro */

body.dark-mode footer {
  background-color: lightgray; /* igual que modo claro */
  color: #000000;               /* texto negro */
  box-shadow: none;
}

/* Mantener padding de nav igual que en modo claro para no verse fina */
body.dark-mode nav {
  background-color: #1e1e1e; /* fondo oscuro para nav */
  color: #ffffff; /* texto blanco */
  border-bottom: 1px solid #333; /* opcional para separar del contenido */
}

body.dark-mode nav ul li a {
  color: #ffffff; /* links en blanco */
}


