html,
body {
    margin: 0;
    padding: 0;
}

.main-header {
    background-color: rgba(0, 0, 0, .3);
    padding-bottom: 10px;
}

/* Nav bar Starts */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.7rem 10%;
    height: 1.5rem;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
  }
  .heading {
    font-size: 3.5rem;
    color: rgb(32, 32, 32);
    font-weight: 800;
    text-align: center;
  }
  
  header .logo {
    font-size: 1.9rem;
    font-weight: 800;
    text-decoration: none;
    color: #0e2431;
  }
  header .logo i {
    font-size: 2.2rem;
  }
  
  header .navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  header .navbar li {
    margin-left: 2.5rem;
  }
  header .navbar ul li a {
    font-size: 1.57rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.04rem;
    position: relative;
  }
  
  header .navbar ul li a::before{
    content: "";
    width: 0;
    height: 2px;
    background-color: #6b6b6b;
  
    position: absolute;
    top: 120%;
    left: 0;
  
    transition: all 0.5s;
  }
  
  header .navbar ul li a::after {
    content: "";
    width: 0;
    height: 2px;
    background-color: #6b6b6b;
  
    position: absolute;
    top: 120%;
    right: 0;
  
    transition: all 0.5s;
  }
  
  header .navbar ul li a:hover::before {
    width: 50%;
    transform: translate(100%);
  }
  
  header .navbar ul li a:hover::after {
    width: 50%;
    transform: translate(-100%);
  }
  
  header .navbar ul li a.active {
    color: #333;
    border-bottom: 0.2rem solid #6b6b6b;
    padding: 0.5rem 0;
  }
  #menu {
    font-size: 3rem;
    cursor: pointer;
    color: rgb(0, 0, 0);
    display: none;
  }
  
/* nav bar ends */



/* search Bar */

.SearchBar
{
  margin-top:100px;
  margin-left:70px;
}

/*Filter buttons */
.Make-buttons
{

 margin-left:70px;
}

.Year-buttons
{
  margin-left:70px;
}

.Color-buttons
{
  margin-left:70px
}
.Sort-button
{
  margin-left:70px;
}

/* Cards */
#card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-left: 3vh;
    margin-right:3vh;
    margin-top: 3vh;
}

.card {
  display: flex;
    width: 300px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2vh;
}

.card-content li{
  color: #033871;
  list-style: none;
}
.card-content {
    padding: 20px;
    font-family: "Verdana";
    color: #585858;
}

.card-content h2 {
    margin-top: 0;
    font-size: 20px;
}

.card img {
    width: 100%;
    height: auto;
}

/* cards end */

/* CSS for SearchBar */
.SearchBar {
  margin-top: 100px;
  text-align: center;
}
#searchInput {
  padding: 10px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: width 0.4s ease-in-out;
}
#searchInput:focus {
  width: 400px;
}

/* CSS for Filter-buttons */
.btn {
  margin: 5px;
  padding: 5px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover {
  background-color: rgb(4, 85, 48);
  color: white;
}

.is-checked {
  background-color: #ed3700;
  color:#fff
}

/* footer and form */
.Form {
  display: flex;
  justify-content: center;
  background-color: rgba(64, 59, 59, 0.3);
  padding: 10px;
}
.Form h2{
  color:#000000;
}

/* Buttons on the cards */
button {
  text-align: center;
  background-color: #1f41ff;
  border: none;
  padding: 5px 10px;
  height: 30px;
  border-radius: 10px;
  color: white;
  font-size: 17px;
  border: 1px solid #353535;
  cursor: pointer;
  margin: 5px 2px;
}

button:hover{
  background-color: #2fbf6d;
}

#page-container{
  display: flex;
  justify-content:center;
}

#pagination-container{
  display: flex;
  justify-content:center;
}

button.active {
  background-color: #2fbf6d; 
  color: white;
}


/* footer */
.footer {
  display: flex;
  justify-content: center;
  background-color: rgba(223, 218, 218, 0.3);
  padding: 10px;
}