/* styles.css */
body {
  margin: 0;
  background-color: #000;
  color: white;
  font-family: sans-serif;
}

header {
  text-align: center;
  padding: 1rem;
}

header img {
  max-width: 150px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

nav a,
.dialog-box a,
.submenu a {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}

nav a:hover,
.dialog-box a:hover,
.submenu a:hover {
  background: #444;
}

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog-box {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 300px;
  color: white;
  display: flex;
  flex-direction: column;
}

.dialog-box input {
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  outline: none;
}

.dialog-box button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.dialog-box button:hover {
  background-color: #777;
}

/* agregado para lo de la actualizacion */
#update-banner button {
  background-color: #555;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  border-radius: 5px;
}

#update-banner button:hover {
  background-color: #777;
}

/* submenús ocupando toda la pantalla con mismo estilo que el menú principal */
.submenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: none;
  flex-direction: column;
  padding: 1rem;
  z-index: 1001;
  overflow-y: auto;
}

.submenu a {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.submenu.active {
  display: flex;
}
/* Asegura que todos los menús y submenús compartan el mismo estilo */
.menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.menu a {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.menu a:hover {
  background: #444;
}
