@font-face {
  font-family: 'IBM 3270';
  src: url('./fonts/3270-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'IBM 3270', monospace;
  font-size: 16px;
  background: black;
  color: white;
  height: 100vh;
  position: relative;
}

img {
  display: block;
  margin-left: 0;
  margin-right: auto; /* Alineación a la izquierda */
}

/* Posicionamiento absoluto para header, menú y footer */
header, .pre-menu, nav, footer {
  width: 100%;
  z-index: 10;
  background: none;
  text-align: left;
  padding: 15px;
}

header {
  position: absolute;
  top: 0;
}

header h1 {
  margin: 0;
  font-size: 1.5em;
}

header h1 a {
  text-decoration: none;
  color: white;
}

.pre-menu {
  position: absolute;
  top: 170px;
  font-size: 0.8em;
}


nav {
  width: 100%;
  position: absolute;
  top: 40px; 
  padding: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  
}

nav ul li {
  display: inline-block;
  margin: 0 5px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1em;
}

/* Centrado del contenido usando posicionamiento absoluto y transform */
.content {
  width: 100%;
  text-align: center;
  position: absolute;
  top: 100px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

footer {
  position: absolute;
  bottom: 0;
  font-size: 0.8em;
}

table {
  width: 100%;
}

th, td {
  padding: 10px;
  text-align: center;
}

a {
  color: green;
  text-decoration: none;
}

a:hover {
  color: darkgreen;
}



/* Media query para dispositivos con pantallas más pequeñas */
@media (max-width: 768px) {
  html, body {
    display: block;
    overflow: auto;
  }
  img {
    margin: 0 auto; /* Centrado en móviles */
    display: block;
  }
  header,
  .pre-menu,
  nav,
  footer {
    text-align: left;
    padding: 2px;
    text-align: center;
  }
  .content {
    position: static;
    transform: none;
    width: 90%;
    margin: 20px auto;
    padding: 15px 0;
    text-align: center;
  }
}
