/* Estilos para el body */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Espacio entre los elementos */
  align-items: center;
  height: 100vh; /* Esto asegura que el body ocupe toda la altura de la ventana */
  margin: 0;
  background-color: #f0f0f0;
}

/* Contenedor principal para que el contenido se alinee y ocupe el espacio disponible */
.main-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  flex-grow: 1; /* Permite que este contenedor ocupe todo el espacio disponible */
}

/* Estilización de la barra de navegación */
.navbar {
  background-color: #1b396a;
  color: white;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  margin-bottom: 10px;
}

.nav-container {
  width: 90%;
  margin: 0 auto;
  font-size: 16px;
}

.navbar h2 {
  margin-bottom: 10px;
}

/* Estilos para la sección intercalada */
.info-section {
  text-align: center;
  background-color: #ffffff;
  padding: 15px;
  width: 90%;
  margin-bottom: 20px;
  border-radius: 5px;
}

.info-section p {
  margin: 5px 0;
  font-size: 14px;
}

/* Estilos de la calculadora */
.calculator {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 260px;
}

h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

#display {
  width: 100%;
  height: 50px;
  text-align: right;
  font-size: 24px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.button {
  font-size: 20px;
  padding: 20px;
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #ddd;
}

.operator {
  background-color: #f8c000;
}

.operator:hover {
  background-color: #f2a900;
}

/* Estilos del footer */
.footer-info {
  background-color: #1b396a;
  color: white;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  /* Esto asegura que el footer se quede en la parte inferior de la ventana */
  position: relative;
  bottom: 0;
}

.footer-info p {
  margin: 5px 0;
}
