body {
    font-family: Arial, sans-serif;
    background: #f9fafb;
    margin: 0;
    text-align: center;
  }
  html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  body {
    font-family: Arial, sans-serif;
    background: #f9fafb;
    margin: 0;
    text-align: center;
  }
  
  .container {
    flex: 1; /* pushes footer to the bottom when content is short */
  }  

  /* Adsense banner */
  .ad-banner {
    width: 100%;
    height: 90px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
  }
  
  /* Main container */
  .container {
    margin-top: 40px;
    background: white;
    width: 90%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  h1 {
    color: #333;
    margin-bottom: 20px;
  }
  
  input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-align: center;           /* Centers text and placeholder */
    font-size: 16px;              /* Better on mobile keyboards */
    box-sizing: border-box;
  }
  
  /* Ensures placeholder text is centered in all browsers */
  input::placeholder {
    text-align: center;
    color: #aaa;
  }
  
  
  button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  button:hover {
    background: #0056b3;
  }
  
  #result {
    margin-top: 20px;
    font-weight: bold;
  }
  
  /* Blog post style */
  .blog-post {
    text-align: left;
    margin-bottom: 25px;
  }
  
  .blog-post h2 {
    color: #007bff;
    margin-bottom: 5px;
  }
  
  .blog-post p, .blog-post ul {
    color: #333;
    line-height: 1.6;
  }
  
  /* Blog link at bottom */
  .blog-link {
    margin-top: 25px;
  }
  
  .blog-link a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
  }
  
  .blog-link a:hover {
    text-decoration: underline;
  }
  
  footer {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
  }
  /* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
  }
  
  .contact-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .contact-form button:hover {
    background: #0056b3;
  }
  footer {
  background: #f1f1f1;
  padding: 15px 10px;
  font-size: 14px;
  color: #000;
  text-align: center;
  margin-top: auto; /* ensures it stays at bottom */
}

footer a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

  .blog-link a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
  }
  
  .blog-link a:hover {
    text-decoration: underline;
  }
  @media (max-width: 600px) {
    .container {
      width: 95%;
      padding: 15px;
    }
  
    button {
      width: 100%;
    }
  }
  /* BMI Categories Table */
.bmi-table {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .bmi-table h3 {
    margin-bottom: 10px;
    color: #333;
  }
  
  .bmi-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  
  .bmi-table th,
  .bmi-table td {
    border: 1px solid #ddd;
    padding: 8px;
  }
  
  .bmi-table th {
    background-color: #f4f4f4;
    color: #000;
  }
  /* Highlight user's BMI category */
.highlight {
    background-color: #d1fae5 !important; /* light green highlight */
    font-weight: 600;
  }
  