body{
    background-color: #eaeef3;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
h1 {
    font-family: 'Poppins', sans-serif;
}
h2 {
    font-family: 'Poppins', sans-serif;
}

*{
    padding: 0;
    margin: 0;
}

:root {
  --nav-footer-bg: #3F72AF;
  --nav-footer-text: #F9F7F7;
  --link-color: #112D4E;
  --accent-color: #3F72AF;
  --text-color: #112D4E;
  /*hover sobre el boto answer*/
  --hover-bg: #112D4E;
  --box-bg: #7fffd400;
  --shade-box-bg: #e4e3d5;
  --big-block-bg: #F9F7F7;
  --big-block-shadow: #0000001a;
  --derecha-bg: #4caf50;
  --derecha-text: white;
  --bloque-bg: #F9F7F7;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh; /* Prevent vertical growth beyond the viewport */
  overflow-y: auto; /* Allow scrolling if content exceeds the height */
}

.navigator{
    list-style: none;
    background: var(--nav-footer-bg); 
}
.navigator li{
    display: inline-block;
    background-color: var(--nav-footer-bg);
}
.navigator li a{
    display: block;
    padding: 15px 20px;
    color: var(--nav-footer-text);
    text-decoration: none;
    text-align: center;
    font-size: 20px;
}
.navigator li ul.dropdown li{
    display: block;

}
.navigator li ul.dropdown{
    width:100%;
    position: absolute;
    z-index: 999;
    display: none;
}
.navigator li a:hover {
    background-color: var(--hover-bg);
}

.navigator li:hover ul.dropdown{
    display: block;
}
.align-right{
    float: right;
    margin: 0 0 1rem 1rem;
    width: 150px;
}
.box {
    color: var(--text-color);
    background-color: var(--box-bg);
    padding: 20px;
    border: 1px solid;
    margin-left: 200px;
    margin-right: 200px;
    outline-color: var(--text-color);
    border-radius: 25px;

}
.shade_box {
    color: var(--text-color);
    background-color: var(--shade-box-bg);
    padding: 20px;
    border-radius: 25px;
    outline-color: #112D4E;
}
.go_button{
    margin-top: 10px;
    position: relative; 
    width: 250px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--nav-footer-text);
    border-radius: 25px;
    text-align: center;
    border: none; 
    box-shadow: 0 4px 6px rgba(63, 114, 175, 0.3); 
}
.go_button:hover {
    background-color: var(--hover-bg);
}
.second_button{
    margin: 0 auto; 
    position: relative; 
    left: 50%;
    transform: translateX(-50%); 
    width: 350px;
    height: 80px;
    color: #3F72AF;
    border-radius: 25px;
}
  
  .site-footer {
    background-color: var(--nav-footer-bg);
    color: var(--nav-footer-text);
    padding: 10px 20px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto; /* Push the footer to the bottom */
  }
  
  .authors-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .authors-inline a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .authors-inline a:hover {
    color: var(--hover-bg);
  }
  
.fila {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align vertically */
    padding: 30px;
    max-width: 800px;
    margin: auto; /* Center the block horizontally and vertically */
    background: var(--big-block-bg);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--big-block-shadow);
    flex: 1; /* Ensures the content takes up available space */
    max-height: 500px; /* Increased height limit */
    overflow-y: auto; /* Allow scrolling if content exceeds the height */
    position: absolute;
    top: 50%; /*50% from the top*/
    left: 50%;
    transform: translate(-50%, -50%); /* Center the block */
}

  .izquierda {
    display: flex;
    flex-direction: column; /* columna vertical */
    gap: 15px;
  }

  .izquierda h1 {
    text-align: center;
    margin: 0 auto;
  }

  .derecha {
    padding: 20px;
    background: var(--derecha-bg);
    color: var(--derecha-text);
    border-radius: 8px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
  }

  .bloque {
    padding: 15px 20px;
    background: var(--bloque-bg);
    border-radius: 6px;
    font-weight: bold;
    min-width: 150px;
  }

.profile-block {
    display: block; /* Ensure it takes up the full width */
    width: 80%; /* Optional: Adjust width to fit the layout */
    max-width: 400px; /* Limit the maximum width */
    max-height: 400px; /* Limit the maximum height */
}

.center-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
  }
  
  .button-primary,
  .button-secondary {
    padding: 0.9rem 3rem;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  /* Primary: filled with accent */
  .button-primary {
    background-color: var(--accent-color);
    color: white;
  }
  
  .button-primary:hover {
    background-color: #112D4E;
  }
  
  /* Secondary: outlined */
  .button-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
  }
  
  .button-secondary:hover {
    background-color: var(--accent-color);
    color: white;
  }
  
  html, body {
    height: 100%;
    margin: 0;
  }
  
  main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Optional: vertically center content */
    padding: 2rem;
  }
  
  @media (max-width: 768px) {
    .box {
      margin: 0 10px;
    }
  
    .navigator li {
      display: block;
      text-align: center;
    }
  
    .navigator {
      padding: 0;
    }
  
    .navigator li ul.dropdown {
      position: static;
      display: block;
      text-align: center;
      background: #3F72AF;
    }
  
    .navigator li ul.dropdown li {
      display: block;
      width: 100%;
    }
  
    .form-container {
      margin: 20px 10px;
      padding: 15px;
    }
  
    .authors-inline {
      flex-direction: column;
      gap: 10px;
    }
  }