/* static/css/vin_lookup.css */

/* Container for the ad banner */
.ad-banner-container {
    position: relative;
    width: 100%;
    height: 65vh;
    background-color: #333;
    overflow: hidden;
    margin-bottom:2rem;
}

.ad-banner {
    display: flex;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    transition: transform 0.5s ease-in-out;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.ad-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.ad-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ad-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Container styles */

/* Centered VIN input field */
.vin-container {
    padding: 2rem;
    text-align: center;
    background-color: #f4f4f4;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* Input group styles */

.vin-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.vin-input-group input,
.vin-input-group button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

.vin-input-group button {
    background-color: #059e45;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 0 1 auto;
    min-width: 150px;
}

.vin-input-group button:hover {
    background-color: #218838;
}

/* Table styles for displaying vehicle information */
.vin-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.vin-results-table th,
.vin-results-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    background-color: #fff;
}

.vin-results-table th {
    background-color: #059e45;
    color: #fff;
    font-weight: bold;
}

.vin-results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Button styles */
.vin-container button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    /* margin-top: 2rem; */
}

.vin-container button:hover {
    background-color: #218838;
}


/* Payment Section */
.payment-section {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #059e45;
}

.payment-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-option input {
    transform: scale(1.5);
    margin-right: 0.5rem;
}

.payment-option label {
    font-size: 1.1rem;
    color: #333;
}

.payment-section button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    width: 100%;
}

.payment-section button:hover {
    background-color: #218838;
}
/* for demo vin lookup page, adding style for demo list */
.custom-message {
    font-size: 14px;         /* Change font size */
    color: #333;             /* Change font color */
    font-family: 'Arial', sans-serif;  /* Change font family */
}

.custom-message a {
    color: #0022ff;          /* Change link color */
    text-decoration: none;   /* Remove underline from the link */
}

.custom-message a:hover {
    text-decoration: underline;  /* Add underline on hover */
}

/* Position the logo in the top-right corner */
.top-right-logo {
    position: sticky; /* absolute for placeing in cornor, along with "top" and "right" */
    top: 10px;
    /* right: 10px;*/
    width: 60px; /* Adjust the width as needed */
    height: auto;
    z-index: 10; /* Ensure it stays on top */
}

/* Media Queries for Responsiveness */

@media (max-width: 768px) {
    .vin-container {
        padding: 1.5rem;
        max-width: 90%;
        transform: translateY(-5%);
    }

    .vin-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ad-controls button {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .vin-container {
        padding: 1rem;
        max-width: 100%;
        transform: translateY(-5%);
    }

    .vin-input-group input,
    .vin-input-group button {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .ad-controls button {
        padding: 0.25rem 0.5rem;
    }

    .vin-results-table th,
    .vin-results-table td {
        padding: 0.5rem;
    }

    .payment-section {
        padding: 1rem;
    }
}