 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #242729;
}

.divider{
    height: 1px;
    background-color: rgb(128, 128, 128);
    border-color: rgb(128, 128, 128);
}

abbr{
    text-decoration: none;
}

.search {
    display: flex;
    justify-content: center; 
    margin-top: 50px;
    margin-bottom: 50px;
}

.search_box {
    background-color: white;
    padding: 20px;
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    border: 1px solid #0c0d0e; 
    width: 40%; 
    background-color: #181a1b;
}

.search_form {
    display: flex;
    flex-direction: column;
}

.search_label {
    margin: 0px 0 5px;
    font-weight: bold;
    color: #ffffff;
}

.search_select {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #0c0d0e;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    background-color: #242729;
    color: #ffffff;
}


.price_div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price_form {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.price_label {
    font-weight: bold;
    margin-bottom: 5px;
    margin: 10px 0 5px;
    color: #ffffff;
}

select, .price_input[type="number"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #0c0d0e;
    width: 100%;
    font-size: 16px;
    background-color: #242729;
    color: #fff;
}

.search_button {
    padding: 10px;
    background-color: rgb(0, 177, 221);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 700;
}

.search_button:hover {
    background-color: rgba(0, 136, 169, 0.8);
}

.year_div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.year_form {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.year_label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
}

.year_input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #0c0d0e;
    width: 100%;
    font-size: 16px;
    background-color: #242729;
}


.car-section {
    padding: 30px;
    background-color: #181a1b;
    text-align: center;
}

.car-section h2 {
    margin-bottom: 30px;
    color: white;
}

.car-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.car-card-link {
    text-decoration: none;
    color: inherit; 
    display: block;
}

.car-card {
    background-color: #242729;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.car-card:hover {
    transform: scale(1.02); 
}

.car-image {
    width: 100%;
    border-radius: 8px;
}

.car-card img {
    width: 100%; 
    height: 150px;
    object-fit: cover; 
    border-radius: 5px;
    margin-bottom: 10px;
}


.car-name {
    font-size: 1.2em;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
    
    color: white;
}

.car-price{
    color: rgb(0, 177, 221);
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 5px 0 10px 0;
}

.car-details {
    text-align: left;
    font-size: 14px;
    color: rgb(219, 219, 219);
}




@media (max-width: 600px) {

    body{
        overflow-x: hidden;
    }
    
    .search{
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .search .search_box{
        width: 90%;
    }
    
    .car-section{
        padding: 15px;
    }

    .car-section h2{
        margin-bottom: 15px;
    }

    .car-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .car-card{
        padding: 10px;
    }

    .car-name{
        font-size: 18px;
        margin: 0;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .search .search_box{
        width: 80%;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .search_box{
        width: 60%;
    }
}