/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-size: 16px; /* Base font size for scaling */
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2em; /* Increase heading size for better visibility */
}

.form-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 1em; /* Adjust font size */
}

input[type="text"], input[type="password"], input[type="number"], input[type="file"], textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em; /* Ensure font size scales */
}

input[type="submit"], input[type="button"] {
    width: 100%;
    padding: 15px; /* Larger padding for touch targets */
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
    font-size: 1em; /* Scale font size */
}

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #218838;
}

.vehicle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto;
}

.vehicle-box {
    width: 100%; /* Full width for better readability on mobile */
    max-width: 200px;
    margin: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 1em; /* Adjust font size */
}

.vehicle-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.details-container {
    width: 90%; /* Increased width for smaller screens */
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.details-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.details-container .gallery {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.details-container .gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
}

.details-container .gallery img:hover {
    opacity: 0.7;
}

.details-container h2, .details-container p {
    color: #333;
    font-size: 1em; /* Scaling font size */
}

.error {
    color: red;
    font-weight: bold;
    font-size: 1em; /* Font size adjustment */
}

.success {
    color: green;
    font-weight: bold;
    font-size: 1em; /* Font size adjustment */
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    body {
        font-size: 18px; /* Increase base font size for better readability */
    }

    .form-container, .details-container, .vehicle-container {
        width: 95%; /* Full width for mobile */
    }

    h1 {
        font-size: 2.5em; /* Larger heading for mobile */
    }

    .vehicle-box {
        max-width: 100%; /* Full width for readability */
        font-size: 1.2em; /* Increase font size for better visibility */
    }

    .details-container h2, .details-container p {
        font-size: 1.1em; /* Increase text size for readability */
    }

    input[type="submit"], input[type="button"] {
        font-size: 1.2em; /* Larger buttons for touch devices */
        padding: 15px 20px; /* Increased padding for easier touch */
    }

    .gallery img {
        width: 100px; /* Larger images for better viewing on mobile */
        height: 100px;
    }

    .error, .success {
        font-size: 1.2em; /* Make error and success messages more readable */
    }
}


.success {
    color: green;
    font-weight: bold;
}
