
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: rgb(170, 243, 219);
 color: white;
  height: 100%;
  overflow-x: hidden;
}


@media (max-width: 430px) {
 .grid-container {
  display: grid;
  grid-template-areas:
    'nav'
    'menu'
    'right'
    'main'
    'footer';
  grid-template-columns: 1fr;
  grid-gap: 16px;
  padding: 16px;
}

.nav { grid-area: nav; }
.menu   { grid-area: menu; }
.right  { grid-area: right; }
.main   { grid-area: main; }
.footer { grid-area: footer; }
  
  nav {
  grid-area: nav;
  background: #2a9d8f;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
    nav ul {
      list-style: none;
      display: flex;
      justify-content: left;
      gap: 1.6rem;
      flex-wrap: wrap;
padding-left: 20px;
    }
nav li {
display: inline-block;
}
  
    nav a {
text-align: center;
      font-size: 16px;
      display: inline-block;
      color: #2a9d8f;
      background: white;
      text-decoration: none;
      padding: 0.5rem 0.5rem;
      border-radius: 6px;
      font-weight: bold;
      transition: all 0.2s ease-in-out;
      width: 100%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
  
    nav a:hover {
      background: #21867a;
    }
  
.nav-logo {
  width: 80px;
  height: 95px;
  object-fit: contain;
  margin-left: 0;
  margin-right: auto;
  align-self: flex-start;
} 
    
    .item2 ul {
      list-style: none;
    }
  
    .item2 li {
      background-color: #2a9d8f;
      color: rgb(65, 64, 64);
      padding: 0.5rem;
      margin-bottom: 0.5rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
  
    .item2 p {
      background-color: #2a9d8f;
      color: rgb(72, 71, 71);
      padding: 0.5rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
  
    .item2 a {
      display: inline-block;
      padding: 9px 15px;
      background-color: white;
      color: #2a9d8f;
      text-decoration: none;
      border-radius: 8px;
      font-weight: bold;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
      transition: all 0.15s ease-in-out;
      user-select: none;
    }
  
    .item2 a:hover {
      box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
      transform: translateY(1px);
    }
  
    .item2 a:active {
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
      transform: translateY(2px);
    }
  
    .item3 h1 {
      color: #016c60;
      text-align: center;
    }
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
  width: 85;              /* Full width inside the label */
  padding: 0.8rem 1rem;     /* More space inside the box */
  font-size: 1rem;          /* Bigger text */
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 0.5rem;       /* Space from label text */
  box-sizing: border-box;   /* Keep padding inside the width */
} 
     .BMI-CAL label,
.unit-group label,
div label {
  font-size: 18px;
  display: inline-block;
  background-color:  #2a9d8f; /* light teal background */
  color: white; /* dark text for contrast */
  padding: 1rem;
  margin-bottom: 1rem;
margin-left: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.calculateButton {
  display: inline-block;
  background-color: #2a9d8f;
  color: white;
  padding: 1rem 1.0rem;
margin-left: 40px;
margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.calculateButton:hover {
  background-color: #21867a;
}


.result  {
      font-size: 1.5rem;
      font-weight: bold;
      margin-top: 1rem;
      margin-left: 40px;
    }


  
    .item3 div {
      text-align: left;
      color: #016c60;
      font-size: 1.5rem;
    }
  
    .item3 {
      color: #016c60;
      font-size: 15px;
      font-weight: bold;
    }
  
    .info-box {
      display: none;
      margin-top: 10px;
      font-size: 0.9em;
      background: white;
    }
  
    #genderInfoBox,
    #bmiInfoBox {
      font-size: 15px;
      color: #016c60;
    }
  
    .stickout {
      color: #2a9d8f;
      padding: 12px 20px;
      display: inline-block;
      background-color: white;
      text-decoration: none;
      border-radius: 8px;
      font-weight: bold;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
      transition: all 0.15s ease-in-out;
    }
  
    .item4 {
      text-align: left;
      background: #2a9d8f;
      color: white;
      padding: 2rem;
      border-radius: 5px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
      font-size: 16px;
      transition: all 0.15s ease-in-out;
    }
  
    .item4 h2 {
      margin-bottom: 0.5rem;
    }
  
    .raised-text {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 1.2em;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
      transition: all 0.1s ease-in-out;
    }
  
    .raised-text:hover {
      color: white;
      text-decoration: underline;
      transform: translateY(-2px);
    }
  
    .raised-text:active {
      color: #1b5e20;
      text-shadow: none;
      transform: translateY(1px);
    }

   .stickout {
font-size: 20px;
      color: #2a9d8f;
      padding: 12px 20px;
      display: inline-block;
      background-color: white;
      text-decoration: none;
      border-radius: 8px;
      font-weight: bold;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
      transition: all 0.15s ease-in-out;
    }

  
    footer {
      background-color: #2a9d8f;
      color: white;
      padding: 2rem 1rem;
      text-align: center;
      margin-top: 3rem;
      border-top: 5px solid #21867a;
      box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
    }
  
    .footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 2rem;
      margin: 1rem 0;
    }
  
    .footer-links a,
    .footer-social a {
      color: white;
      font-weight: bold;
      text-decoration: none;
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      transition: background-color 0.3s ease-in-out;
    }
  
    .footer-links a:hover,
    .footer-social a:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }
  
    .footer-social {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      font-size: 1.2rem;
      margin-top: 0.5rem;
    }
  }















/* ********** MIN WIDTH 1024px ********** */
@media (min-width: 431px) and (max-width: 1024px) {
    
  .grid-container {
     grid-template-areas:
       'nav nav nav'
       'menu main main'
       'right right right'
       'footer footer footer';
     grid-template-columns: 1fr 2fr 1fr;
   }
 
 
 
 
 .header { grid-area: nav; }
 .menu   { grid-area: menu; }
 .right  { grid-area: right; }
 .main   { grid-area: main; }
 .footer { grid-area: footer; }
 
    nav {
  grid-area: nav;
  background: #2a9d8f;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
    nav ul {
      list-style: none;
      display: flex;
      justify-content: flex-start;
      gap: 1.6rem;
      flex-wrap: wrap;
padding-right: 80px;
    }
nav li {
display: inline-block;
}
nav a {
  text-align: center;
        font-size: 16px;
        display: inline-block;
        color: #2a9d8f;
        background: white;
        text-decoration: none;
        padding: 0.5rem 0.5rem;
        border-radius: 6px;
        font-weight: bold;
        transition: all 0.2s ease-in-out;
        width: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
      } 
 
  nav a:hover {
       background: #21867a;
     }
     .nav-logo {
       width: 130px;
       height: 130px;
       object-fit: contain;
       position: relative;
     }
 
 
     .item2 ul {
         list-style: none;
       }
     
       .item2 li {
         background-color: #2a9d8f;
         color: rgb(65, 64, 64);
         padding: 0.7rem;
         margin-bottom: 0.5rem;
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
       }
     
       .item2 p {
         background-color: #2a9d8f;
         color: rgb(72, 71, 71);
         padding: 0.5rem;
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
       }
     
       .item2 a {
         display: inline-block;
         padding: 9px 15px;
         background-color: white;
         color: #2a9d8f;
         text-decoration: none;
         border-radius: 8px;
         font-weight: bold;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
         transition: all 0.15s ease-in-out;
         user-select: none;
       }
     
       .item2 a:hover {
         box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
         transform: translateY(1px);
       }
     
       .item2 a:active {
         box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
         transform: translateY(2px);
       }
     
        
     .item3 h1 {
       color: #016c60;
       text-align: center;
     }
 input[type="number"],
 select {
   width: 85;              /* Full width inside the label */
   padding: 0.8rem 1rem;     /* More space inside the box */
   font-size: 1rem;          /* Bigger text */
   border-radius: 6px;
   border: 1px solid #ccc;
   margin-top: 0.5rem;       /* Space from label text */
   box-sizing: border-box;   /* Keep padding inside the width */
 } 
      .BMI-CAL label,
 .unit-group label,
 div label {
   font-size: 18px;
   display: inline-block;
   background-color:  #2a9d8f; /* light teal background */
   color: white; /* dark text for contrast */
   padding: 1rem;
   margin-bottom: 1rem;
 margin-left: 40px;
   border-radius: 8px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }
 .calculateButton {
   display: inline-block;
   background-color: #2a9d8f;
   color: white;
   padding: 1rem 1.0rem;
 margin-left: 40px;
 margin-bottom: 1rem;
   border: none;
   border-radius: 8px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   font-size: 18px;
   cursor: pointer;
   transition: background-color 0.2s ease-in-out;
 }
 
 .calculateButton:hover {
   background-color: #21867a;
 }
 
 .result  {
       font-size: 1.5rem;
       font-weight: bold;
       margin-top: 1rem;
       margin-left: 40px;
     }
 
 
 
 
    .item3 div {
       text-align: left;
       color: #016c60;
       font-size: 1.5rem;
     }
   
 
   .item3 {
       color: #016c60;
       font-size: 16px;
       font-weight: bold;
     }
 
     .info-box {
       display: none;
       margin-top: 10px;
       font-size: 0.9em;
       background: white;
     }
 
      #genderInfoBox,
     #bmiInfoBox {
       font-size: 15px;
       color: #016c60;
     }
     .stickout {
       color: #2a9d8f;
       padding: 12px 20px;
       display: inline-block;
       background-color: white;
       text-decoration: none;
       border-radius: 8px;
       font-weight: bold;
       box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
       transition: all 0.15s ease-in-out;
     }
     .item4 {
       text-align: left;
       background: #2a9d8f;
       color: white;
       padding: 2rem;
       border-radius: 5px;
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
       font-size: 16px;
       transition: all 0.15s ease-in-out;
     }
     
 
 
 .item4 h2 {
       margin-bottom: 0.5rem;
     }
     .raised-text.raised-text {
       color: white;
       text-decoration: none;
       font-weight: bold;
       font-size: 1.2em;
       text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
       transition: all 0.1s ease-in-out;
     }
   
 
   .raised-text.raised-text:hover {
       color: white;
       text-decoration: underline;
       transform: translateY(-2px);
     }
 
 
     .raised-text.raised-text:active {
       color: #1b5e20;
       text-shadow: none;
       transform: translateY(1px);
     }
 
   .stickout {
 font-size: 24px;
       color: #2a9d8f;
       padding: 12px 20px;
       display: inline-block;
       background-color: white;
       text-decoration: none;
       border-radius: 8px;
       font-weight: bold;
       box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
       transition: all 0.15s ease-in-out;
     }
 
     footer {
       background-color: #2a9d8f;
       color: white;
       padding: 2rem 1rem;
       text-align: center;
       margin-top: 3rem;
       border-top: 5px solid #21867a;
       box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
     }
     .footer-links {
       display: flex;
       justify-content: center;
       flex-wrap: wrap;
       gap: 2rem;
       margin: 1rem 0;
     }
     .footer-links a,
     .footer-social a {
       color: white;
       font-weight: bold;
       text-decoration: none;
       padding: 0.4rem 0.8rem;
       border-radius: 4px;
       transition: background-color 0.3s ease-in-out;
     }
     .footer-links a:hover,
     .footer-social a:hover {
       background-color: rgba(255, 255, 255, 0.2);
     }
     .footer-social {
       display: flex;
       justify-content: center;
       gap: 1.5rem;
       font-size: 1.2rem;
       margin-top: 0.5rem;
     }
   }














/* ********** MIN WIDTH 1025px ********** */
  @media (min-width: 1025px) {
    
    .grid-container {
       grid-template-areas:
         'nav nav nav nav'
         'menu main main right'
       'footer footer footer footer';
       grid-template-columns: 1fr 3fr 1fr;
       max-width: 1400px;
       margin: 0 auto;
     }
   
   
   .header { grid-area: nav; }
   .menu   { grid-area: menu; }
   .right  { grid-area: right; }
   .main   { grid-area: main; }
   .footer { grid-area: footer; }
   
      nav {
  grid-area: nav;
  background: #2a9d8f;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
    nav ul {
      list-style: none;
      display: flex;
      justify-content: left;
      gap: 2.6rem;
      flex-wrap: wrap;
padding-right: 290px;
    }
nav li {
display: inline-block;
}
nav a {
  text-align: center;
        font-size: 16px;
        display: inline-block;
        color: #2a9d8f;
        background: white;
        text-decoration: none;
        padding: 0.5rem 0.5rem;
        border-radius: 6px;
        font-weight: bold;
        transition: all 0.2s ease-in-out;
        width: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
      } 
   
    nav a:hover {
         background: #21867a;
       }
       .nav-logo {
         width: 180px;
         height: 180px;
         object-fit: contain;
         position: relative;
       }
   
   
       .item2 ul {
           list-style: none;
         }
       
         .item2 li {
           background-color: #2a9d8f;
           color: rgb(65, 64, 64);
           padding: 0.9rem;
           margin-bottom: 0.5rem;
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
         }
       
         .item2 p {
           background-color: #2a9d8f;
           color: rgb(72, 71, 71);
           padding: 0.5rem;
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
         }
       
         .item2 a {
           display: inline-block;
           padding: 9px 15px;
           background-color: white;
           color: #2a9d8f;
           text-decoration: none;
           border-radius: 8px;
           font-weight: bold;
           box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
           transition: all 0.15s ease-in-out;
           user-select: none;
         }
       
         .item2 a:hover {
           box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
           transform: translateY(1px);
         }
       
         .item2 a:active {
           box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
           transform: translateY(2px);
         }
   
   
   .item3 h1 {
         color: #016c60;
         text-align: center;
       }
   input[type="number"],
   select {
     width: 85;              /* Full width inside the label */
     padding: 0.8rem 1rem;     /* More space inside the box */
     font-size: 1rem;          /* Bigger text */
     border-radius: 6px;
     border: 1px solid #ccc;
     margin-top: 0.5rem;       /* Space from label text */
     box-sizing: border-box;   /* Keep padding inside the width */
   } 
   
   
   
   
   
   
    .BMI-CAL label,
   .unit-group label,
   div label {
     display: inline-block;
     background-color:  #2a9d8f; /* light teal background */
     color: white; /* dark text for contrast */
     padding: 1rem;
     margin-bottom: 1rem;
     border-radius: 8px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   }
   .calculateButton {
     display: inline-block;
     background-color: #2a9d8f;
     color: white;
     padding: 1rem 1.5rem;
     margin-bottom: 1rem;
     border: none;
     border-radius: 8px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     font-size: 20px;
     cursor: pointer;
     transition: background-color 0.2s ease-in-out;
   }
   .calculateButton:hover {
     background-color: #21867a;
   }
   
   
   
   
   
   
   .result  {
         font-size: 1.5rem;
         font-weight: bold;
         margin-top: 1rem;
         margin-left: 40px;
       }
   
     
       
   
   
    .item3 div {
         text-align: left;
         color: #016c60;
         font-size: 1.5rem;
       }
       .item3 {
         color: #016c60;
         font-size: 16px;
         font-weight: bold;
       }
      
   
    .info-box {
         display: none;
         margin-top: 10px;
         font-size: 0.9em;
         background: white;
       }
      
    #genderInfoBox,
       #bmiInfoBox {
         font-size: 20px;
         color: #016c60;
       }
       .stickout {
         color: #2a9d8f;
         padding: 12px 20px;
         display: inline-block;
         background-color: white;
         text-decoration: none;
         border-radius: 8px;
         font-weight: bold;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
         transition: all 0.15s ease-in-out;
       }
       .item4 {
           display: flex;
           justify-content: space-between; /* push content to left/right */
           gap: 2rem; /* optional spacing between the columns */
           background: #2a9d8f;
           color: white;
           padding: 4rem;
           border-radius: 7px;
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
           font-size: 26px;
           transition: all 0.15s ease-in-out;
           flex-wrap: wrap; /* allows responsiveness on smaller screens */
         }
         
           .item4 h2 {
         margin-bottom: 0.9rem;
       }
          .raised-text.raised-text {
         color: white;
         text-decoration: none;
         font-weight: bold;
         font-size: 9.5em;
         text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
         transition: all 0.1s ease-in-out;
       }
       .raised-text.raised-text:hover {
         color: white;
         text-decoration: underline;
         transform: translateY(-2px);
       }
       .raised-text.raised-text:active {
         color: #1b5e20;
         text-shadow: none;
         transform: translateY(1px);
       }
   
     
   
    .stickout {
   font-size: 28px;
         color: #2a9d8f;
         padding: 12px 20px;
         display: inline-block;
         background-color: white;
         text-decoration: none;
         border-radius: 8px;
         font-weight: bold;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
         transition: all 0.15s ease-in-out;
       }
   
       footer {
         background-color: #2a9d8f;
         color: white;
         padding: 2rem 1rem;
         text-align: center;
         margin-top: 3rem;
         border-top: 5px solid #21867a;
         box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
       }
       .footer-links {
         display: flex;
         justify-content: center;
         flex-wrap: wrap;
         gap: 2rem;
         margin: 1rem 0;
       }
       .footer-links a,
       .footer-social a {
         color: white;
         font-weight: bold;
         text-decoration: none;
         padding: 0.4rem 0.8rem;
         border-radius: 4px;
         transition: background-color 0.3s ease-in-out;
       }
       .footer-links a:hover,
       .footer-social a:hover {
         background-color: rgba(255, 255, 255, 0.2);
       }
       .footer-social {
         display: flex;
         justify-content: center;
         gap: 1.5rem;
         font-size: 1.2rem;
         margin-top: 0.5rem;
       }
     }
   
 


