/* Umumiy stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
  }
  
  header {
    background: rgb(116,236,147);
    background: linear-gradient(90deg, rgba(116,236,147,0.9887604700083158) 19%, rgba(255,210,55,0.9243346997001926) 31%, rgba(255,226,128,1) 56%);
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
  }
  
  header .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  header input {
    padding: 10px;
    width: 80%;
    max-width: 300px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .header-input {
    width: 100%;
    height: 40px;
  }
  
  .logo-header {
    width: 15%;
  }
  
  /* Filtrlar bo'limi */
  .filter-container {
    text-align: center;
    margin-top: 20px;
  }
  
  .filter-container button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .filter-container button:hover {
    background-color: #45a049;
  }
  
  /* Mashinalar ro'yxati */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
  }
  
  .car-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    width: 30%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease-in-out;
  }
  
  .car-card:hover {
    transform: scale(1.05);
  }
  
  .img-cart {
    width: 100%;
    height: 100%;
  }
  
  .car-card img {
    width: 100%;
    border-radius: 10px;
  }
  
  .car-card h3 {
    font-size: 20px;
    margin: 10px 0;
  }
  
  .car-card p {
    font-size: 16px;
    color: #555;
  }
  
  /* Modal oynasi (batafsil ma'lumot) */
  .modal {
    display: none;
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4); 
  }
  
  .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Footer */
  footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    padding-top: 15px;
    bottom: 0;
    width: 100%;
    position: fixed;
    font-size: 17px;
  }




  









.tillar-box {
    width: 90px;
    height: 60px;
    color: black;
}

.tillar-box:hover {
  width: 65px;
  height: 115px;
  color: black;
  background-color: white;
  width: 70px;
  height: 60px;
  padding-top: 7px;
}

.ota2-ul {
    display: none;
    width: 63px;
    margin-left: 3px;
    margin-top: 5px;
}

.ota1-ul:hover .ota2-ul {
    display: block;
}

.til-ota2-ul-a {
  color: black;
}

.til-img {
  width: 30px;
}










@media screen and (max-width: 640px) {
  .header-input {
      width: 100%;
       height: 40px;
  }
    
   .logo-header {
      width: 20%;
  }
}

@media screen and (max-width: 505px) {
  .tillar-box {
    margin-right: -30px;
  }
  .header-input {
    width: 200px;
    height: 40px;
}

.logo-header {
    width: 15%;
}

.car-card {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  margin: 10px;
  width: 28%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

}

@media screen and (max-width: 510px) {
    .header-input {
        width: 250px;
        height: 40px;
    }
    
    .logo-header {
        width: 20%;
    }

    header {
      width: 100%;
    }
}

@media screen and (max-width: 480px) {
    header {
        width: 100%;
        height: 125px;
    }

    .header-input {
        width: 220px;
        height: 40px;
        margin-right: 10px;
    }
    
    .logo-header {
        width: 20%;
    }

    .car-card {
        background-color: white;
        border-radius: 10px;
        padding: 10px;
        margin: 10px;
        width: 28%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        text-align: center;
        transition: transform 0.2s ease-in-out;
    }
}

@media screen and (max-width: 466px) {
  header {
      width: 100%;
      height: 125px;
  }

  .tillar-box {
    margin-left: 300px;
    margin-top: -25px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 20%;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 28%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 443px) {
  header {
      width: 100%;
      height: 125px;
  }

  .tillar-box {
    margin-left: 300px;
    margin-top: -25px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 20%;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 28%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 493px) {
  header {
      width: 100%;
      height: 125px;
  }

  .tillar-box {
    margin-left: 300px;
    margin-top: -25px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 20%;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 28%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 420px) {
  header {
      width: 100%;
      height: 125px;
  }

  .tillar-box {
    margin-left: 285px;
    margin-top: -25px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 20%;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 28%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 415px) {
  header {
      width: 100%;
      height: 140px;
  }

  .tillar-box {
    margin-left: 270px;
    margin-top: -25px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 20%;
      margin-left: 40%;
      margin-top: -15px;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 25%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 404px) {
  header {
      width: 100%;
      height: 140px;
  }

  .tillar-box {
    margin-left: 270px;
    margin-top: -25px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 20%;
      margin-left: 40%;
      margin-top: -15px;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 25%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 393px) {
  header {
      width: 100%;
      height: 125px;
  }

  .tillar-box {
    margin-left: 280px;
    margin-top: -40px;
  }

  .header-input {
      width: 200px;
      height: 40px;
      margin-right: 70px;
  }
  
  .logo-header {
      width: 25%;
      margin-left: 120px;
      margin-top: -20px;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 8px;
      margin: 10px;
      width: 25%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }
}

@media screen and (max-width: 376px) {
    .header-input {
        width: 185px;
        height: 40px;
        font-size: 15px;
    }

    .tillar-box {
      margin-left: 180px;
      margin-top: -40px;
    }
    
    .logo-header {
        width: 25%;
    }

    .car-card {
        background-color: white;
        border-radius: 10px;
        padding: 10px;
        margin: 10px;
        width: 27%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        text-align: center;
        transition: transform 0.2s ease-in-out;
    }

    footer {
        background-color: #333;
        color: white;
        text-align: center;
        padding: 10px;
        padding-top: 15px;
        bottom: 0;
        width: 100%;
        position: fixed;
        font-size: 15px;
    }

    .card-asosiy-ism {
        font-size: 15px;
    }
}

@media screen and (max-width: 357px) {
  .header-input {
      width: 185px;
      height: 40px;
      font-size: 15px;
  }

  .tillar-box {
    margin-left: 200px;
    margin-top: -40px;
  }
  
  .logo-header {
      width: 25%;
  }

  .car-card {
      background-color: white;
      border-radius: 10px;
      padding: 10px;
      margin: 10px;
      width: 27%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      text-align: center;
      transition: transform 0.2s ease-in-out;
  }

  footer {
      background-color: #333;
      color: white;
      text-align: center;
      padding: 10px;
      padding-top: 15px;
      bottom: 0;
      width: 100%;
      position: fixed;
      font-size: 15px;
  }

  .card-asosiy-ism {
      font-size: 15px;
  }
}

@media screen and (max-width: 320px) {
    .header-input {
        width: 155px;
        height: 40px;
        font-size: 13px;
    }
    
    .logo-header {
        width: 33%;
    }

    footer {
        background-color: #333;
        color: white;
        text-align: center;
        padding: 10px;
        padding-top: 15px;
        bottom: 0;
        width: 100%;
        position: fixed;
        font-size: 12px;
    }

    .car-card {
        background-color: white;
        border-radius: 10px;
        padding: 10px;
        margin: 10px;
        width: 25%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        text-align: center;
        transition: transform 0.2s ease-in-out;
    }

    .card-asosiy-ism {
        font-size: 11px;
    }
}


