body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Navigation Bar */
header {
    background-color: #003366;
    padding: 15px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    padding: 8px 15px;
    transition: 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: #ffcc00;
    color: #003366;
    border-radius: 5px;
}

/* Remove bullets from list inside modal */
.modal-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.modal-content ul li {
    margin-top: 5px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.car {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.car img {
    max-width: 60%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.car h2 {
    margin: 10px 0;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 70%;
    height: 80%;
}

.modal-content {
    background: rgb(217, 235, 213);
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    border-radius: 8px;
    text-align: center;
}

.modal-content img {
    max-width: 90%;
    border-radius: 5px;
}

.close {
    color: rgb(207, 205, 230);
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: rgb(219, 100, 100);
}

.randomImage {
    width: 200px; /* Adjust size */
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 1s ease-in-out;
}
.slider-container {
    width: 100%; /* Adjust size */
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Images inside slider */
.slider img {
    position: absolute;
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color:white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: inline-block;
}

/* Ensure the first image is visible initially */
.slider img:first-child {
    opacity: 1;
}
