header {
  background: #d0d2d0;
}

/* Vertical spacing lives mostly on the <ul> (once) rather than on every <li>,
   so when the items wrap onto extra lines each extra line only adds a little. */
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
}

nav li {
  margin-left: 4rem;
  padding: 0.25rem 1rem;
}

nav li form {
  margin: 0;
}

nav a {
  color: #444;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover{
  color: #000;
}

/* Define a generic button class */
.button-link {
  /* Basic box properties */
  display: inline-block; /* Essential to allow padding/margin/width */
  padding: 10px 18px;    /* Vertical and horizontal padding */
  border: 1px solid #007bff; /* Small border */
  border-radius: 4px;    /* Rounded corners */
  
  /* Color and background */
  background-color: #007bff; /* Primary button color */
  color: white;            /* White text */
  
  /* Text styling */
  text-decoration: none; /* Remove the default underline */
  font-weight: 600;      /* Make the text bold */
  text-align: center;
  
  /* Smooth transition for hover effects */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover effect for interaction */
.button-link:hover {
  background-color: #0056b3; /* Darker blue on hover */
  border-color: #004085;
  cursor: pointer;         /* Change cursor to indicate clickability */
}

/* Optional: Active/Click effect */
.button-link:active {
  transform: translateY(1px); /* Slight press down effect */
}

/* Phone size: tighten the horizontal spacing so more items fit per line. */
@media (max-width: 650px) {
  nav li {
    margin-left: 0;
    padding: 0.25rem 0.6rem;
  }
}
