body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: #ffffff;
    background-color: #f8f0e3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================================================nav-bar==================================================== */

#menu {
    height: 150px;
    width: 100%;
    background: linear-gradient(to right, #0d0d0d, #1a1a1a);
    position: relative;
   
}

#logo {
    display: inline-block;
}

#logo img {
    height: 150px;
    width: 200px;
    display: inline-block;
    position: absolute;
    bottom: 2px;
    left: 2px;
}

#nav-bar {
    display: inline-block;
    text-align: center;
    position: absolute;
    left: 420px;
    top: 35px;
}

#nav-bar ul {
    list-style: none;
    color: white;
    font-size: 28px;
    padding: 0;
}

#nav-bar ul li {
    display: inline-block;
    margin-left: 50px;
}

#nav-bar ul li a {
    margin-right: 10px;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    width: fit-content;
    position: relative;
}

#nav-bar ul li a::after {
    content: '';
    height: 2px;
    width: 0%;
    background: rgb(255, 0, 0, 1.0);
    position: absolute;
    left: 0;
    bottom: -2px;
    opacity: 0;
    transition: all 0.5s;
}

#nav-bar ul li a:hover::after {
    opacity: 1;
    width: 100%;
}


/* =====================================================hero==================================================== */

#hero {
    background-image: url(./Images/cover.png);
    background-color: #111111;
    height: 70vh;
    background-repeat: no-repeat;
    width: 100%;
    background-size: 60% 100vh;
    background-position: right, bottom;
    float: right;
}




#slogan {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    justify-content: center;
    align-items: center;
    height: 60vh;
    width: 40%;
}

#slogan h1 {
    font-weight: 600;
    font-size: 55px;
    margin-bottom: 0;
}

#slogan p {
    font-size: 18px;
    font-weight: 500;
    padding-left: 15px;
    margin-top: 0;
}


span {
    color: rgb(255, 0, 0, 1.0);
}

/* =====================================================listings==================================================== */

#listings {
    color: black;
    width: 90%;
    height: fit-content;
    margin: auto;
    margin-bottom: 3%;
    margin-top: 3%;
}

#listings h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 80px;
}

/* =====================================================card==================================================== */

#card-container {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 50px;
}

#card {
    background: rgba(55, 55, 55, 0.2);
    border-radius: 10px;
    width: fit-content;
    height: 380px;
}

#card img {
    height: 225px;
    border-radius: 10px 10px 0 0;
}

#card p {
    font-size: 22px;
    font-weight: 500;
    color: #111111;
    margin: 10px 0;
}

#info {
    padding-left: 15px;
}


#card-container a {
    height: fit-content;
    text-decoration: none;
    border-radius: 10px;
}

#card:hover p {
    color: blue;
    transition: all 0.1s ease;
}

#card-container a:hover {
    transition: all 0.1s ease-in-out;
    transform: scale(1.01);
}

/* =====================================================footer==================================================== */

footer {
    background-color: #1a1a1a;
    width: 100%;
    height: fit-content;
    margin-top: auto;
}


#about {
    display: flex;
    justify-content: space-around;
}

#about ul {
    list-style: none;
    padding-left: 2px;
}

#content {
    width: 30%;
}



#copyright {
    height: 50px;
    text-align: center;
}

#copyright p {
    line-height: 190%;
}

/* ====================================================car-info===================================================== */

#car-info {
    color: black;
    padding: 25px;
    padding-left: 40px;
    height: fit-content;
    margin-bottom: 12px;
}

#car-info h1 {
    margin-bottom: 0;
    font-size: 3em;
}

#car-info p {
    margin-top: 0;
    font-size: 1.5em;
}

/* ====================================================gallery===================================================== */

#grid-container {
    display: grid;
    grid-template-rows: 200px 200px;
    grid-template-columns: 325px 325px 238px 238px ;
    gap: 15px;
}

#image1 {
    height: 400px;
    width: 600px;
}

.mini img {
    height: 200px;
    width: 238px;
}

.mini {
    height: 200px;
    width: 238px;
}

#image1 img {
    object-fit: cover;
    height: 415px;
    width: 650px;
    border-radius: 12px 0 0 12px;
}

#image2 {
    grid-row: 1/1;
    grid-column: 3/3;
}

#image3 {
    grid-row: 1/1;
    grid-column: 4/4;
}

#image4 {
    grid-row: 2/2;
    grid-column: 3/3;
}

#image5 {
    grid-row: 2/2;
    grid-column: 4/4;
}

/* ====================================================details===================================================== */

#car-details ul {
    list-style: none;
    font-weight: 100;
    font-size: 18px;
    padding-left: 0;
    display: inline-block;
}

#car-details ul li {
    display: inline-block;
    margin: 10px 10px;
    border: 1px solid black;
    padding: 5px 10px;
    border-radius: 5px;
}

#car-details h2 {
    margin: 3px 0 0 8px;
    font-size: 35px;
}

/* ====================================================form===================================================== */


#form-container {
    margin-top: 19px;
    margin-left: 8px;
    border: 1px solid #0d0d0d;
    width: fit-content;
    height: fit-content;
    padding: 12px;
    padding-bottom: 20px;
    border-radius: 12px;
}


form input {
    width: 600px;
    height: 50px;
    margin-bottom: 19px;
    display: block;
    border-radius: 8px;
    font-size: 19px;
    border: 1px solid #0d0d0d;
}


label {
    display: block;
    font-size: 22px;
}

#message {
    height: 100px;
    width: 600px;
    margin-bottom: 19px;
    border-radius: 8px;
    padding: 6px;
    line-height: 1em;
    font-size: 18px;
    font-family: sans-serif;
}


h3 {
    font-size: 22px;
}

#submit-container {
    width: 100%;
    height: fit-content;
}

#submit-container a {
    text-decoration: none;
}



#submit {
    width: 600px;
    height: 50px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0987eb;
    border-radius: 8px;
    color: white;
}

#submit:hover {
    background-color: #007aff;
}

#final {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    justify-content: center;
    align-items: center;
    height: 60vh;
    width: 40%;
    margin-left: 20px;
}

#final h1 {
    font-weight: 600;
    font-size: 55px;
    margin-bottom: 0;
}

/* ====================================================contact===================================================== */

#contact {
    margin: 10px 0 20px 10px;
}

#contact ul {
    list-style: none;
    padding-left: 5px;
    font-size: 24px;
}

#contact ul li {
    margin-bottom: 15px;
}




































































