/* Your CSS code */

body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #007bff; /* Default color: Blue */
    padding: 20px;
    text-align: center;
    color: white;
    position: relative; /* Add position relative to the header */
}

/* Add styles to position the dropdown */
.dropdown {
    position: absolute;
    bottom: 0;
    right: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

nav li {
    float: left;
}

nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: bold;
}

nav li a:hover {
    background-color: #111;
}

h2 {
    text-align: center;
    margin-top: 50px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.car-card {
    max-width: 300px;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    background-color: white;
}

.car-card img {
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

.car-card h3 {
    margin: 0;
}

.car-card p {
    margin: 10px 0;
}

.car-card button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.car-card button:hover {
    background-color: #111;
}

.slideshow {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.slide {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: none;
}

.slide.active {
    display: block;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    text-align: left;
    margin: 0 20px;
}

.contact-person, .contact-detail {
    margin: 5px 0;
}

.contact-detail i {
    margin-right: 10px;
}

.message-button a {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.fa {
    margin-right: 5px;
}

/* Style the "Send a Message" links */
.contact-detail a {
    color: #007bff; /* Link text color */
    text-decoration: none; /* Remove underlines */
}

.contact-detail a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Add left padding to the contact names */
.contact-person strong {
    padding-left: 12px; /* Adjust as needed */
}

/* Styles for the contact popup */
#contactPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.popup-content {
    background-color: white;
    border-radius: 5px;
    padding: 10% 10%; /* Adjust padding as needed */
    width: 80%;
    max-width: 800px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
