body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

nav {
  background-color: #333;
  padding: 10px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
}

nav ul li a:hover {
  background-color: #575757;
}

header {
  background-color: #61b44f;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 6em 0;
  padding-bottom: 28em;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}

.search-bar {
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 20px;
  width: 200px;
}

.search-button {
  padding: 0.5em 1em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 20px;
  background-color: white;
  color: #3f3e3e;
  cursor: pointer;
}

.search-button:hover {
  background-color: #4a8e3f;
}

h1 {
  margin-bottom: 0px;
}

h3 {
  margin-top: 0px;
  font-weight: 100;
}

/* Media Queries */
@media (max-width: 768px) {
  nav ul {
      justify-content: center; /* Center navigation items on smaller screens */
  }

  header {
      padding: 4em 0;
      padding-bottom: 20em;
  }

  .search-container {
      flex-direction: column;
      align-items: center;
  }

  .search-bar {
      width: 300px; /* Wider search bar on iPad */
  }

  .search-button {
      width: auto; /* Keep button width auto */
  }
}

@media (max-width: 480px) {
  header {
      padding: 2em 0;
      padding-bottom: 15em;
  }

  .search-bar {
      width: 250px; /* Wider search bar on mobile */
      font-size: 0.9em;
  }

  .search-button {
      width: auto; /* Keep button width auto */
      font-size: 0.9em;
  }
}