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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #111;
    color: #ccc;
}

header {
    background-color: #000;
    color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}
nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background-image: url(/media/backgroundGIF.gif);
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: fadeInBackground 2s forwards ease-in-out;
}

.hero-text {
    position: absolute;
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
}

/* Animation */
@keyframes fadeInBackground {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.scroll-message {
    background-color: #222;
    padding: 20px;
    text-align: center;
}

.scroll-message h1 {
    margin-bottom: 10px;
    color: gold; /* Changed color to gold */
}
.car-selection {
    padding: 50px 20px;
    text-align: center;
}

/* Search Bar */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    padding: 10px;
    width: 250px; /* Adjusted width */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background-color: #333; /* Button background color */
    color: #fff; /* Button text color */
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}
.search-bar button:hover {
    background-color: #555; /* Button hover effect */
}

/* Car Listing */
.car-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.car-image {
    border: 2px solid #333;
    padding: 10px;
    text-align: center;
    width: 300px; /* Adjusted width */
}

.car-image img {
    width: 100%;
    height: 180px; /* Adjusted height */
    object-fit: cover;
    margin-bottom: 10px;
}
.car-image p {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #fff;
}

/* Price Styling */
.price {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: gold; /* Change price color to gold */
}

/* Link Styles */
.car-image a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.car-image a:hover {
    color: gold;
}
/* Individual Car Page */
.individual-car-page {
    padding: 50px 20px;
    background-color: #111;
    color: #fff;
    text-align: center;
}

.individual-car-page h2 {
    margin-bottom: 20px;
    color: gold;
}

.individual-car-listing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
 
.car-model {
    width: 300px;
    border: 1px solid #333;
    background-color: #222;
    padding: 20px;
    text-align: center;
}
.car-model img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.car-model p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.car-model .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: gold;
}

/* Services Section */
.services {
    background-color: #222;
    padding: 50px 20px;
    text-align: center;
}
.services h2 {
    margin-bottom: 20px;
    color: gold;
}

.services ul {
    list-style: none;
    padding-left: 0;
}

.services ul li {
    margin-bottom: 10px;
}

/* Dealership Section */
.dealership {
    padding: 50px 20px;
    text-align: center;
}

.dealership h2 {
    margin-bottom: 20px;
    color: gold;
}
.dealership-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.dealership-item {
    border: 1px solid #333;
    padding: 20px;
    width: 300px;
    background-color: #000;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto; /* Allow scrolling */
}

.popup-content {
    background: linear-gradient(135deg, #1f1c2c, #928DAB); /* Luxury gradient */
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

h2 {
    margin-top: 0;
    color: white;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: white;
}
input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
input[type="time"],
input[type="radio"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #fff;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.8);
}

.rent-button {
    background-color: #ff6f61; /* Coral */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.rent-button:hover {
    background-color: #ff5a47; /* Darker coral */
}

#confirmBtn {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#confirmBtn:hover {
    background-color: #45a049; /* Darker green */
}

.discount {
    color: red;
    margin-bottom: 15px;
}

.total-field {
    color: white;
    margin: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    color: white;
    margin: 10px 0;
}

.inline-label {
    display: inline-block;
    margin-right: 20px;
}

input[type="radio"] {
    margin-right: 5px;
}

.car-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Adjust spacing between cars */
}

.car-row .car-image {
    flex: 1 1 calc(33.33% - 20px); /* 33.33% width minus gap for 3 cars per row */
    max-width: 300px; /* To keep the width consistent */
}