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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.car-card {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    width: 200px;
    margin: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.car-card:hover {
    border-color: #007bff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.car-logo {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    object-fit: contain;
}

.car-name {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.car-models {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.model-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.model-card:hover {
    border-color: #007bff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.model-card a {
    text-decoration: none;
    color: #333;
}

.model-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.year-selection {
    text-align: center;
    /* margin-bottom: 20px; */
}

.search-bar {
    width: 40%;
    margin: 20px auto;
    text-align: center;
}

.search-bar input {
    padding: 10px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #007bff;
    outline: none;
}

.parts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.part-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    width: 240px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.part-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.part-card h3 {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

.part-card p {
    margin: 5px 0;
    color: #666;
}

.part-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.part-card a:hover {
    background-color: #0056b3;
}

.no-parts {
    text-align: center;
    font-size: 1.2em;
    color: #666;
}

.filter-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #218838;
}

.filter-select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-left: 10px;
    font-size: 1em;
}

.filters-section {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
    }
    .search-bar {
        width: 100%;
    }
    .sorting {
        width: 100%;
    }
    .sorting select {
        width: 100%;
        padding: 5px 10px;
    }
    .year-selection {
        width: 100%;
    }
    .year-selection select {
        margin: 0;
        padding: 5px 10px;
        width: 100%;
    }
    .parts-list {
        margin-top: 40px;
    }
    .car-card {
        width: 150px;
    }
    .car-logo {
        width: 80px;
        height: 80px;
    }
}