body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .container {
    width: 90%;
    height: 85px;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  header {
    background: #4d7a28;
    color: #020202;
    padding: 0;
    height: 85px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }

  header.transparent {
    background: rgba(77, 122, 40, 0.5);
  }
  
  header .logo {
    display: flex;
    align-items: center;
    margin: 0;
  }

  header .logo img {
    max-height: 85px;
    display: block;
    
  }
  
  header nav {
    display: flex;
    align-items: center;
    
  }
  
  header .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
  }
  
  header .menu li a {
    color: #fff;
    text-decoration: none;
  }

  header .menu li a:hover  {
    color: #fffb00;
    
  }

  .hamburger {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  
  main {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 85px;
  }



  .warning {
    background-color: #ffcc00; /* Yellow background for visibility */
    color: #000; /* Black text for contrast */
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 2px solid #ffa500; /* Optional: Add a border for emphasis */
  }
  
  .warning p {
    margin: 0;
  }
  
  
  p {
    margin: 0rem 0;
  }

  h1 {
    margin: 0.5rem 0;
    font-size: 2rem;
  }

  h2{
    font-size: 1.5rem;
  }
  #bmi-form {
    margin-top: 2rem;
  }
  
  #calculators {
    display: flex;
    flex-direction: column; /* Stack items vertically by default */
    align-items: center;
    margin: 1rem auto;
    width: 90%;
    max-width: 1200px;
  }
  
  #bmi-and-other-forms {
    display: flex; /* Align forms side by side */
    gap: 2rem; /* Add spacing between forms */
    justify-content: center; /* Center forms horizontally */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }
  
  .form-wrapper {
    background-color: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px; /* Fixed width for each form */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visuals */
  }

  .checkbox-label {
    display: inline-block;
    vertical-align: middle;
    gap: 0.2rem; /* Add some spacing between the checkbox and text */
    font-size: 0.8rem; /* Ensure the text has a consistent size */
    line-height: 1;
    cursor: pointer; /* Make the label clickable */
    
  }
  
  .checkbox-label input[type="checkbox"] {
    margin: 0; /* Remove default margin from the checkbox */
    padding: 0;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    
  }
  
  
  #bmi-result {
    margin-top: 2rem;
    text-align: center;
  }
  
  #bmi-table {
    margin-top: 1rem;
  }
  

  #bmi-form label {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  #bmi-form input {
    width: 75%;
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
  
  #bmi-form button {
    background: #333;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    cursor: pointer;
  }
  
  #bmi-result {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.2rem;
  }

  #bmi-table {
    margin-top: 1 rem;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  
  table, th, td {
    border: 1px solid #ddd;
  }
  
  th, td {
    padding: 0.5rem;
    text-align: center;
  }

  
  #tdee-form label {
    display: block;
    margin-top: 1rem;
  }
  
  #tdee-form input, #tdee-form select, #tdee-form button {
    width: 75%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  #tdee-result {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #333;
  }

  #tdee-result table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
  }
  
  #tdee-result th, #tdee-result td {
    border: 1px solid #ddd;
    padding: 0.5rem;
  }
  
  #tdee-result th {
    background-color: #f4f4f4;
    font-weight: bold;
  }
  
  

  .donate {
    font-size: 0.8rem;
    color: black;
  }
  
  footer {
    background: #4d7a28;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
  }

/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  /* Table of Contents Styling */
  #table-of-contents {
    width: 90%; /* Full width for smaller screens */
    margin-top: 85px;
    max-width: 800px; /* Restrict maximum width for larger screens */
    margin: 1rem auto; /* Center horizontally and add spacing */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    position: relative;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow-x: hidden; /* Prevent horizontal scrolling */

  }
  
  #table-of-contents h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  #table-of-contents ul {
    list-style: none; /* Remove bullets */
    padding: 0;
  }
  
  #table-of-contents li {
    margin-bottom: 0.5rem;
  }
  
  #table-of-contents a {
    text-decoration: none; /* Remove underline */
    color: #0073e6; /* Link color */
    font-weight: bold;
  }
  
  #table-of-contents a:hover {
    text-decoration: underline; /* Add underline on hover */
  }
  
  /* Optional: Add styles for sections */
  main section {
    margin-bottom: 2rem;
    padding: 1rem;
  }
  
  main section h2 {
    margin-top: 2rem;
    color: #333;
  }
  
  
  
/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
      display: block; /* Show hamburger icon */
    }
  
    nav {
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
      background: #333;
      border-radius: 5px;
      overflow: hidden;
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }
  
    nav.active {
      transform: translateX(0); /* Show the menu */
    }
  
    .menu {
      flex-direction: column;
      text-align: right;
      padding: 0;
    }
  
    .menu li {
      padding: 0.5rem 1rem;
    }
  }
  
  
  