:root {
    --main-color: #708097;
}

img {
    width: 100%;
}

.filter {
    margin-top: 60px;
}

.filter form {
    display: flex;
    justify-content: center;
}

.filter .input-wrapper {
    position: relative;
    max-width: 100%;
    min-width: 500px;
}

@media (max-width: 768px) {
    .filter .input-wrapper {
        max-width: 100%;
        min-width: 300px;
    }
}

.filter .input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.filter input {
    padding-left: 60px;
    width: 100%;
    font-family: inherit;
    border: 1px solid var(--grey);
    padding: 15px 0 15px 35px;
    font-size: 18px;
    outline-color: var(--main-color);
    border-radius: var(--border-radius);
}

.gallery {
    padding-top: 60px;
    
}

.gallery .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.gallery .car-card {
    width: calc((100% / 3) - 20px);
    height: 200px;
    aspect-ratio: 16 / 9;
    perspective: 1000px;
}

@media (max-width: 1200px) {
    .gallery .car-card {
        height: 200px;
        
    }
}

@media (max-width: 991px) {
    .gallery .car-card {
        width: calc((100% / 2) - 20px);
    }
}

@media (max-width: 768px) {
    .gallery .container {
        gap: 10px;
    }

    .gallery .car-card {
        
        width: 100%;
    }
}

.gallery .car-card .inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .8s;
    transform-style: preserve-3d;
}

.gallery .car-card:hover .inner {
    transform: rotateY(-180deg);
}

.gallery .car-card .front-card img {
    border-radius: var(--border-radius);
}

.gallery .car-card .front-card, 
.gallery .car-card .back-card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery .car-card .back-card {
    background-color: #F3F3F3;
    transform: rotateY(180deg);
    padding: 20px;
}

.gallery .car-card .back-card .name {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.gallery .car-card .back-card .details {
    font-size: 18px;
}

.gallery .car-card .back-card .details p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.gallery .car-card .back-card .details p .tag {
    font-weight: bold;
    margin-right: 10px;
}

.gallery .car-card .back-card .details p .tag i {
    color: var(--main-color);
    margin-right: 10px;
}

.gallery .car-card .back-card .details .color-circle {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 5px;
}

.gallery .car-card .back-card .details .red {
    background-color: #C72C2C;
}

.gallery .car-card .back-card .details .green {
    background-color: #4E5D47;
}

.gallery .car-card .back-card .details .purple {
    background-color: #673147;
}

.gallery .car-card .back-card .buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 10px;
}

.gallery .car-card .back-card .buttons a {
    padding: 5px 10px;
}