.search-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  .search-modal-content {
    background-color: #39424E;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
  }
  
  .search-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .search-modal-close:hover,
  .search-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .search-modal-open {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
  }
/* Existing styles */

/* New styles for responsiveness */
@media screen and (max-width: 768px) {
  .search-modal-content {
    width: 80%;
  }
}

@media screen and (max-width: 480px) {
  .search-modal-content {
    width: 95%;
  }
}

/* New styles for modern search form */
#search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

#search-input {
  flex-grow: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border 0.3s;
}

#search-input:focus {
  border-color: #007bff;
}

#search-form button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.3s;
}

#search-form button:hover {
  background-color: #535353;
}

#search-results h3 {
  margin-top: 0;
}

#search-results a {
  text-decoration: none;
  color: #007bff;
}

#search-results a:hover {
  text-decoration: underline;
}
