#search {
  width: 100%;
  height: 50em;
  background-image: url("https://images.unsplash.com/photo-1610809376778-928ee2c3a561?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

nav {
  background: #000000;
  position: fixed;
  width: 100%;
  margin-inline: auto;
}
.nav-child {
  display: flex;
  align-items: center;
  justify-content: start;
  margin: 0 auto;
  max-width: 1200px;
}

a,
li {
  list-style: none;
  display: inline-block;
  padding: 1em;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 200;
}
.title {
  color: white;
  text-align: center;
}

.title h1 {
  font-size: 3em;
  margin: 0;
}

.title p {
  font-size: 1.5em;
  margin: 0.5em 0;
}

.title hr {
  width: 50em;
  max-width: 90vw;
  border: 1px solid white;
  margin: 3em auto;
  opacity: 0.5;
}

.form-container {
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3em;
  border-radius: 1em;
  color: white;
  gap: 24px;
}

@media (max-width: 600px) {
  .form-container {
    flex-direction: column;
    padding: 2em;
  }
}

.form-container select,
.form-container input {
  box-sizing: border-box;
  padding: 0.5em;
  border: none;
  border-radius: 0.5em;
  width: 15em;
  height: 2.5em;
}

.form-container button {
  padding: 0.5em 1em;
  border: none;
  border-radius: 0.5em;
  background-color: #ff5722;
  color: white;
  cursor: pointer;
}

.car-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5em;
  align-content: center;
  padding: 2em 1em;
  align-items: start;
  max-width: 80rem;
  margin: 0 auto;
}

.car-list h2 {
  font-size: 2em;
  margin: 2em 0;
  grid-column: 1 / -1;
  text-align: center;
}

.car-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: min(22rem, 100%);
  border: 1px solid #d9d9d9;
  border-radius: 30px;
  overflow: hidden;
  padding: 16px;
}

.car-item h3 {
  font-size: 18px;
  margin-top: 12px;
}

.car-item p {
  font-size: 14px;
  margin-top: 8px;
}

.car-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.car-item span {
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
}

.car-item button {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 0.5em;
  background-color: #ff5722;
  color: white;
  cursor: pointer;
}
