/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, serif;
}

/* Global styles */
body {
  line-height: 1.6;
  color: #333;
  background-color: #e4e9e1;
  margin-top: 60px;
}

.container {
  width: 90%;
  margin: 0 auto;
}

/* Header Styling */
.header {
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 1.8rem;
  border-bottom: 4px solid #ffffff;
  margin-top: 60px; /* Extra margin to prevent overlap by navbar */
}

header {
  background-color: #2a3d34;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  color: #2a3d34;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Intro Text Styling */
.intro-text {
  color: #333;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 20px;
  background-color: transparent;
  border: none;
  padding: 0;
  font-weight: normal;
}

/* Navbar styles */
.navbar {
  background-color: #2a3d34;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #4CAF50;
  height: 60px; /* Fixed height for consistent appearance */
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar-left .brand {
  font-family: cursive;
  color: white;
  text-decoration: none;
}

.navbar-left .brand:hover {
  color: #4CAF50;
}

.navbar-right {
  display: flex;
  gap: 20px;
  font-weight: bold;
  align-items: center;
}

.navbar-right a {
  color: white;
  font-size: 1rem;
  text-decoration: none;
  padding: 8px 10px;
}

.navbar-right a:hover {
  color: #4CAF50;
}

/* Exercise Program-Specific Styles */
.exercise-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* Individual Exercise Box Styling */
.exercise-box {
  background-color: #f9f9f9;
  border: 2px solid #e4e4e4;
  border-radius: 8px;
  padding: 15px;
  width: calc(33.333% - 20px); /* 3 columns on larger screens */
  min-width: 250px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #2a3d34;
}

.exercise-box h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.exercise-box h2, .exercise-box .description p {
  text-decoration: none;
}

.description p {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
}

/* Hover Effect for Exercise Boxes */
.exercise-box:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
  border-color: #4CAF50; /* Change border color to green on hover */
}

/* Disclaimer Styles */
.disclaimer {
  background-color: #ffe6e6; /* Light red background */
  border: 1px solid #ff4d4d; /* Red border */
  color: #b30000; /* Dark red text for visibility */
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-right {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a3d34;
    width: 100%;
    padding: 10px 0;
  }

  .navbar-right.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .header h1 {
    font-size: 1.8rem;
    margin-top: 10px; /* Extra spacing to avoid overlap */
  }

  .exercise-box {
    width: 48%; /* 2 columns on medium screens */
  }
}

@media (max-width: 480px) {
  .exercise-box {
    width: 100%; /* Stack boxes vertically on small screens */
  }
}
