/* Index style */
.brands img {
    height: 200px;
    width: 306px;
    justify-content: space-between;
    align-items: center;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
}

.brands {
    text-align: center;
    font-family: 'Rokkitt', serif;
    font-size: x-large;
}

.brands img:hover {
    background-color: rgb(100, 105, 95);
    transform: scale(1);
}

#IndexPage {
    background-image: url(../Images/Background.jpg);
}

/* cars style */

ul {
    clear: left;
}

ul {
    padding-left: 10px;
}

.price {
    font-weight: bold;
    font-size: 1.2em;
}

h2,
h3,
h4,
h5 {
    font-family: 'Rokkitt', serif;
}

.Brandcars {
    background-color: rgb(124, 124, 122);
    text-align: center;

}

.Catalogue:hover {
    background-color: rgb(100, 105, 95);
    transform: scale(0.94);
}


/* Buy car style */
.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* About us style */
.sales-image:hover {
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sales-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    background: var(--bs-body-bg, Canvas);
    color: var(--bs-body-color, CanvasText);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-title:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.form-title h3,
.form-title h4,
.form-title p {
    color: inherit;
}

.form-title h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.4rem;
}

.form-title h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.form-title p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

h1 {
    font-family: 'Roboto', sans-serif;
}

p {
    font-family: 'Open Sans', sans-serif;
}

/*
navigation bar
*/
.navi {

    text-align: center;
    height: 80px;
    background-color: rgb(78, 82, 74);
    transition: transform 0.3s, background 0.3s;
    padding: 30px 0;
}

.navi:hover {
    background-color: rgb(100, 105, 95);
    transform: scale(1.1);
}

/*
modify navigation bar's links and delete underline
*/
.link {
    text-decoration: none;
    color: #ffffff;
}

footer {
    text-align: center;
}

canvas {
    display: block;
    margin: 0 auto;
}

.game-container {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

.col-md-2,
.navi,
.img {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .image-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-title {
        padding: 1rem;
    }
}