body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-image: url("images/b9bc8f06-ce94-41eb-a1bf-81b56e13d8ec.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
}

.HeaderItems {
  display: flex; /* Use Flexbox for layout */
  justify-content: space-between; /* Push logos to edges, center text */
  align-items: center; /* Vertically center items */
  width: 100%; /* Ensure it spans the full width */
  padding: 20px ; /* Optional: Add vertical padding */
  box-sizing: border-box;
}

.HANDlogo {
  width: 150px; /* Adjust logo size as needed */
  height: auto; /* Maintain aspect ratio */
  position: absolute;
  top: 20px;
  left: 20px;
}

h1 {
  font-size: 2.5rem;
  text-align: center; /* Center the text */
  flex-grow: 1;
  margin: 0; /* Remove default margin */
}

.nav-menu {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    padding: 2px 2px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
  }

  .nav-menu a:hover {
    background-color: #f0f0f0;
  }

  .nav-menu a.active {
    background-color: red;
    color: white;
    font-weight: bold;
  }

/*Reactive media*/
@media screen and (max-width: 768px){
  .HeaderItems {
    flex-direction: column;
    align-items: center;
    padding-top: 40px; /* Space for logo */
  }

  .HANDlogo {
    position: static; /* Remove absolute positioning */
    width: 80px; /* Smaller size for mobile */
    margin-bottom: 20px;
  }
  
  h1 {
    font-size: 1.8rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  
  .HANDlogo {
    width: 50%; /* Even smaller for very small screens */
  }

  h1 {
    font-size: 2rem;
  }

  .nav-menu {
    flex-direction: row;
    gap: 1px;
    margin-top: 0px;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 2px 2px;
  }
}

header {
  background: #ff6f61;
  color: white;
  padding: 1rem;
  text-align: center;
}
.Tabs:hover{
  padding: 5px;
  background-color: red;
  border-radius: 8px;
}
nav a {
  border: 1px  rgb(210, 57, 57);
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 5px;
  margin: 1rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.intro {
  padding: 1px;
  text-align: center;
  background: #ffe082;
}
.cards {
  display: flex;
  justify-content: space-around;
  padding: 2rem;
}
.card {
  background: #ffcc80;
  padding: 2rem;
  border-radius: 10px;
  width: 30%;
  text-align: center;
  box-shadow: 2px 2px 10px #ccc;
  transition: 0.3s;
}
.card:hover {
  transform: scale(1.05);
}
.hero:hover {
  transform: scale(1.05);
}
.center-wrapper {
  background: #ffcc80;
  padding: 15px;
  border-left: 50%;
  border-radius: 10px;
  margin: 0 auto; /* Center horizontally */
  max-width: 90%; /* Ensure it doesn't exceed screen width */
  width: 100%;
  display: flex;
  justify-content: center;
}
footer {
  background: #ff6f61;
  color: white;
  text-align: center;
  padding: 1rem;
  bottom: auto;
  position: static;
}
/*
@media screen and (max-width: 768){
 

}/*769 910
/*409 /*my phone







/*Make sure the screen sized work out
.nav-toggle {
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block; /* Show hamburger on mobile 
  }
  nav {
    display: none; /* Hide nav by default 
  }
  nav.active {
    display: flex; /* Show nav when toggled 
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ff6f61;
  }
  nav a {
    padding: 10px;
    text-align: center;
  }
}

/* Desktops (1024px and above) 
@media (min-width: 1025px) {
  .card {
    width: 25%; /* Original width for desktop 
  }
}

/* Mobile devices (up to 768px) 
@media (max-width: 768px) {
  .HeaderItems {
    flex-direction: column; /* Stack logo and text vertically 
    align-items: center;
  }
  .HANDlogo {
    width: 100px; /* Smaller logo on mobile 
  }
  h1 {
    font-size: 24px; /* Smaller heading on mobile 
  }
  nav a {
    margin: 0.5rem; /* Reduce spacing between nav links 
    font-size: 14px; /* Smaller font size 
  }
  .cards {
    flex-direction: column; /* Stack cards vertically 
    align-items: center;
  }
  .card {
    width: 80%; /* Full width for cards on mobile 
    margin-bottom: 1rem;
  }
  .center-wrapper {
    margin: 0 10px; /* Smaller margins on mobile 
  }
}

/* Tablets (768px to 1024px) 
@media (min-width: 769px) and (max-width: 1024px) {
  .HANDlogo {
    width: 120px; /* Medium-sized logo
  }
  h1 {
    font-size: 32px; /* Medium-sized heading 
  }
  .card {
    width: 40%; /* Two cards per row 
  }
}

/* Desktops (1024px and above) 
@media (min-width: 1025px) {
  .card {
    width: 25%; /* Original width for desktop 
  }
}*/











/*
.HeaderItems {
  display: flex; /* Use Flexbox for layout */
 /* align-items: center; /* Vertically center the logo and text */
 /* justify-content: flex-start; /* Align content to the left */
/*  gap: 50px; /* Add space between the logo and text */
/*  padding: 10px; /* Optional: Add padding for better spacing */
/*}

.HANDlogo {
  width: 150px; /* Adjust the logo size as needed */
  /*height: auto; /* Maintain aspect ratio */
/*
}*/

/*
footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333; /* Example background 
  color: white; /* Example text color 
  text-align: center;
  padding: 10px 0;
}*//*
footer {
  flex-shrink: 0; /* Prevent footer from shrinking 
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
}*/



/*
    body {
      margin: 0;
      font-family: Arial, sans-serif;
    }
    nav {
      background-color: #333;
      padding: 1rem;
      position: fixed;
      width: 100%;
      top: 0;
    }
    .Tabs {
      color: white;
      text-decoration: none;
      margin: 0 1rem;
      font-size: 1.2rem;
    }
    .Tabs:hover {
      color: #ddd;
    }
    section {
      min-height: 100vh;
      padding: 4rem 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: white;
    }
    #home { background-color: #4CAF50; }
    #about { background-color: #2196F3; }
    #training { background-color: #f44336; }
    #contact { background-color: #ff9800; }
  </style>
</head>
<body>
  <nav>
    <a href="#home" class="Tabs">Home</a>
    <a href="#about" class="Tabs">About</a>
    <a href="#training" class="Tabs">Training</a>
    <a href="#contact" class="Tabs">Contact</a>
  </nav>
  <section id="home">Home Section</section>
  <section id="about">About Section</section>
  <section id="training">Training Section</section>
  <section id="contact">Contact Section</section>
  <script>
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
      anchor.addEventListener('click', function (e) {
        e.preventDefault();
        const target = document.querySelector(this.getAttribute('href'));
        target.scrollIntoView({ behavior: 'smooth' });
      });
    });
  </script>
</body>
</html>*/
