:root {
    --top-nav-height: 120px; /* Adjust this value to match the actual height of your .top-nav */
    --bottom-nav-height: 48px; /* Adjust this value to match the actual height of your .top-nav */
    --primary-color: #002f2a;
    --button-color: Green;
    --button-hover-color: #fbbd09;
    --background-color: white;
    --text-color: white;
    --spacing: 1vw;
    --font-size: 16px; /* Adjusted for better readability */
    --border-radius: 0.25rem; /* Adjusted for better readability */
    --modal-margin: 2% auto 20% auto; /* 2% from the top and centered */
}

body {
    margin: 0;
    font-family: 'Roboto Condensed', 'Arial Narrow';
    font-size: var(--font-size);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

legend {
    color: var(--text-color);
}

li {
    padding: 1vw;
}

li:hover {
    background-color: var(--button-hover-color);
}

.home_button:hover {
    background-color: var(--button-hover-color);
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.size_50 {
    width: 100%;
    height: auto;
    max-width: 50vw;
}

.size_35 {
    width: 100%;
    height: auto;
    max-width: 25vw;
}

.size_25 {
    width: 100%;
    height: auto;
    max-width: 25vw;
}

.size_20 {
    width: 100%;
    height: auto;
    max-width: 20vw;
}

.size_15 {
    width: 100%;
    height: auto;
    max-width: 15vw;
}

.size_12 {
    max-width: 12vw;
}

.home_header {
    padding: 0.5vw 0.5vw 0 0.5vw;
}

.home_content {
    flex: 1 1 10%; /* flex-grow, flex-shrink, flex-basis */
    background-color: var(--background-color);
}

.home_button {
    background-color: var(--button-color);
    border: none;
    color: var(--text-color);
    padding: 0.2vw;
    margin-right: 0.5vw;
    font-size: var(--font-size);
    cursor: pointer;
}

.content {
    flex: 1 1 80%; /* flex-grow, flex-shrink, flex-basis */
}

.display_area {
    background-color: #1a1a1a; /* Dark gray background */
    background-image: linear-gradient(45deg, #000000 25%, transparent 25%), linear-gradient(-45deg, #000000 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #000000 75%), linear-gradient(-45deg, transparent 75%, #000000 75%);
    background-size: 20px 20px; /* Adjust grid size */
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.content.display_area {
    display: flex;
    justify-content: center; /* Center the images horizontally */
    align-items: center; /* Optional: if you want to vertically align the images */
}
.flex-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.flex_item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1vw; /* Space between image and text */
}

.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: var(--spacing); /* Add space between items */
    margin-top: var(--top-nav-height); /* Account for fixed topnav */
    margin-bottom: var(--top-nav-height); /* Account for fixed bottom-nav */
}

.flex-item .top-nav-content {
    display: flex; /* Enables flexbox */
    flex-direction: row; /* Aligns items in a row */
    justify-content: space-around; /* Distributes space evenly */
    align-items: flex-start; /* Align items at the top of the container */
    gap: 10px; /* Space between items */
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--background-color);
    border-radius: 2px;
}

#vehicle_fieldset {
    max-height: calc(var(--top-nav-height) - 1vw); /* Ensure it fits within the top-nav height */
    border-radius: var(--border-radius);
    color: var(--text-color);
    margin-bottom: 0.75vw;
    padding: 7px;
}

/* The navigation bar */
.bottom-nav {
    overflow: hidden;
    max-height: var(--top-nav-height);
    background-color: var(--primary-color);
    position: fixed; /* Set the navbar to fixed position */
    bottom: 0; /* Position the navbar at the bottom of the page */
    width: 100%; /* Full width */
    font-size: var(--font-size);
    z-index: 1;
}

/* Links inside the navbar */
.bottom-nav a {
    float: left;
    display: block;
    color: var(--text-color);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Change background on mouse-over */
.bottom-nav a:hover {
    background-color: var(--button-hover-color);
    color: var(--primary-color);
}

.bottom-nav p {
    margin: 0;
    padding: 14px 16px 5px 3px; /* Adjust padding to match the links */
    display: block;
    float: right; /* Float the element to the right */
}

#copyright {
    color: var(--text-color);
    margin-left: auto;
    padding-right: 3px;
    font-size: var(--font-size);
}

.vehicle-count-container {
    margin-bottom: 10px; /* Add spacing below the vehicle count */
}

.vehicle-actions {
    display: flex;
    flex-direction: row; /* Display Add and View in a row */
    gap: 10px; /* Add spacing between the links */
}

.vehicle-actions a {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 5px 10px;
    background-color: var(--button-color);
    border-radius: var(--border-radius); /* Rounded corners */
    font-size: var(--font-size);
}

.vehicle-actions a:hover {
    background-color: var(--button-hover-color); /* Optional: Add hover effect */
    color: var(--primary-color);
}

.display_banner {
    font-size: var(--font-size);
    text-align: center;
}

.top-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-height: var(--top-nav-height);
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    gap: var(--spacing);
    padding: 0.5vw 1vw; /* Padding around the navbar */
    box-sizing: border-box; /* Include padding in the element's width */
}

/* Links inside the navbar */
.top-nav a {
    display: block;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
}

/* Change background on mouse-over */
.top-nav a:hover {
    /* background: #ddd; */
    color: var(--button-hover-color);
}

#logo {
    max-height: calc(var(--top-nav-height) - var(--spacing)); /* Adjust logo height based on top-nav height */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Maintain aspect ratio */
    margin-right: auto;
}

.close-menu {
    display: none;
}
/* Footer styling */

.home_footer {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 1vw 0.5vw 0.5vw 0.5vw;
}

.password-reset-section {
    margin-top: 20px;
}

.password-reset-section .editable-field {
    display: block;
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

.reset-password-button {
    padding: 10px 20px;
    background-color: var(--button-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.reset-password-button:hover {
    background-color: var(--button-hover-color);
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    -moz-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s;
}

@-webkit-keyframes animatezoom {
    from {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    to {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes animatezoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.location {
    text-align: left;
    margin: 0.2vw;
    border-radius: var(--border-radius);
    background: var(--button-color);
    color: var(--primary-color);
    height: 4.3vw;
    width: 10vw;
    padding: 0.75vw;
    font-size: var(--font-size);
}

/* The Close Button */
.close {
    color: var(--primary-color);
    font-style: normal;
    font-size: var(--font-size);
    font-weight: bold;
    float: right; /* Float the element to the right */
}

.close:hover,
.close:focus {
    color: grey;
    text-decoration: none;
    cursor: pointer;
}

.close-login {
    color: var(--primary-color);
    font-style: normal;
    font-size: var(--font-size);
    font-weight: bold;
    padding-right: 1vw;
    float: right; /* Float the element to the right */
}

.close-login:hover,
.close-login:focus {
    color: grey;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Content/Box */
.modal-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    margin: var(--modal-margin);
    padding: 2em;
    border: var(--modal-border);
    width: 90%; /* Could be more or less, depending on screen size */
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: var(--top-nav-height); /* Place it below the topnav */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
    -webkit-animation: fadeIn 1s;
    -moz-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

button {
    background-color: var(--button-color);
    color: var(--text-color);
    padding: 12px;
    margin: 10px 0;
    border: none;
    width: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size);
}

button:hover {
    background-color: var(--button-hover-color);
}

/* Green Hover Button */
.button {
    background-color: var(--button-color); /* Green */
    border: none;
    color: var(--text-color);
    /*
  padding: .5vw 1vw;
  */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    /*
  font-size: var(--font-size);
  margin: .5vw .25vw;
  transition-duration: 0.1s;
  */
    cursor: pointer;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.loader {
    border: 16px solid var(--text-color);
    border-radius: 50%;
    border-top: 16px solid var(--primary-color);
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.txt-frame {
    border: 2px solid #000;
    padding: 10px;
}

/* General container styling */
.vehicle-head {
    padding: 20px;
    background-color: var(--background-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Title styling */
.vehicle-head-title {
    text-align: center;
    font-size: var(--font-size);
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Content layout styling */
.vehicle-head-content {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adds spacing between sections */
    flex-wrap: wrap; /* Ensures wrapping on smaller screens */
}

/* Section styling */
.vehicle-head-section {
    flex: 1 1 30%; /* Each section takes up 30% of the width */
    box-sizing: border-box;
    padding: 10px;
    text-align: center; /* Center-align content for consistency */
}

/* Image styling */
.vehicle-head-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Details section styling */
.vehicle-head-details {
    text-align: left; /* Align text to the left for readability */
    padding: 10px;
}

.vehicle-detail-row {
    margin-bottom: 10px;
    font-size: var(--font-size);
    color: #555;
}

.vehicle-detail-row strong {
    color: #333;
}

/* Actions section styling */
.vehicle-head-actions {
    text-align: center;
}

.vehicle-head-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: var(--font-size);
    background-color: var(--button-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vehicle-head-actions .btn:hover {
    background-color: var(--button-hover-color);
}

/* Target fieldset and legend inside the modal */
.modal fieldset {
    border: 1px solid var(--primary-color);
    padding: 1vw;
    margin: 1vw;
    color: var(--primary-color);
}

.modal legend {
    color: var(--primary-color);
    font-weight: bold;
}

#lbl-checkout-taxable {
    display: none;
}

#a-view-cart {
    display: none;
}

#store-search {
    display: none;
}

#your-store {
    display: none;
}

#car_image_large {
    height: 40vw;
}

.image_wrapper {
    background-color: var(--primary-color);
    padding: 2vw 1vw 1vw 1vw;
    border-radius: var(--border-radius);
    transform: rotate(-10deg);
    overflow: hidden; /* Optional: if you want to hide the part of the image that overflow the .image_wrapper element */
}

#vehicle_rear_matte {
    padding-top: 1vw;
    color: var(--text-color);
}

#img-vehicle-rear {
    border-radius: var(--border-radius);
    height: 25vw;
}

#img-catalog_back {
    height: 20vw;
}

#catalog_search {
    position: fixed;
    top: var(--top-nav-height);
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--top-nav-height) - var(--bottom-nav-height));
    z-index: 1;
    overflow: hidden; /* Prevent any overflow */
}
#vehicle_search,
#ymm_search,
#catalog_search,
#profile,
#order,
#address,
#invoice {
    display: none;
    color: var(--primary-color);
}

#vehicle_iframe,
#ymm_iframe,
#catalog_iframe,
#profile_iframe,
#order_iframe,
#address_iframe,
#invoice_iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-info {
    color: var(--button-color);
    padding-right: 0.5vw;
}

.nav-container {
    display: flex;
    align-items: center;
}

#register-container-flex {
    display: flex;
    justify-content: space-between;
}

#register-container-flex-left {
    flex: 1;
    margin-right: 10px;
}

#register-container-flex-right {
    flex: 1;
    margin-left: 10px;
}

#vehicle_fieldset {
    display: none;
}

#vehicle_fieldset-2 {
    display: none;
    margin: 10px;
}
#a-view-cart-2 {
    display: none; /* Hide the view cart link */
}

#top-sidenav {
    width: 0;
}

#top-sidenav-2 {
    width: 0;
}

#bottom-sidenav {
    width: 0;
}

/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: calc(var(--top-nav-height) + 1px); /* Place it below the topnav */
    right: 0;
    background-color: var(--primary-color);
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
    border-top: var(--text-color);
    border-top-width: 1px;
    padding: 8px 8px 8px 32px;
    text-decoration: none; /* Remove underline from links */
    font-size: var(--font-size); /* Set font size */
    color: var(--text-color);
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: var(--button-hover-color);
}

/* Position and style the close button (top right corner) */
.sidenav .close_sidenav {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.sidenav .close_sidenav:hover,
.sidenav .close_sidenav:focus {
    color: grey;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1vw; /* Space between form groups */
    width: 100%; /* Ensure it spans the full width of the container */
}

.form-group label {
    font-size: 1rem; /* Match the font size of the button */
    margin-bottom: 0.5vw; /* Add spacing between the label and input */
}

.form-group input {
    padding: 12px; /* Match the padding of the button */
    font-size: 1rem; /* Match the font size of the button */
    border: 1px solid #ccc; /* Add a border for consistency */
    border-radius: var(--border-radius); /* Keep the border radius consistent */
    width: 100%; /* Ensure the input spans the full width */
    box-sizing: border-box; /* Include padding and border in the width */
}

#message-buttons {
    display: flex;
    flex-direction: row; /* Align buttons in a row */
    justify-content: center; /* Center the buttons */
    align-items: center; /* Vertically center the buttons */
    gap: 10px; /* Space between buttons */
}

#message-buttons button {
    width: 100%; /* Ensure the button spans the full width */
    padding: 12px; /* Match the padding of the input */
    font-size: 1rem; /* Match the font size of the input */
    border-radius: var(--border-radius); /* Keep the border radius consistent */
    background-color: var(--button-color); /* Green background */
    color: var(--text-color); /* White text */
    border: none; /* Remove default button border */
    cursor: pointer; /* Add a pointer cursor for interactivity */
}

#message-buttons button:hover {
    background-color: rgb(46, 143, 50); /* Slightly darker green on hover */
}

#copyright {
    font-size: calc(var(--font-size) - 4px); /* Ensure consistent font size */
    margin-right: 3px; /* Adjust margin for better alignment */
    color: var(--text-color);
    padding: 0.5vw; /* Add padding for better spacing */
}

/* Responsive Design */
/* Media Queries for top and navigation Bar  */
@media only screen and (max-width: 900px) {
    :root {
        --font-size: 16px; /* Adjusted for better readability */
    }

    .flex-item .top-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        color: var(--text-color);
        cursor: pointer;
        padding-top: 8px; /* Adjust padding for better alignment */
        padding-right: 3px; /* Adjust padding for better alignment */
    }
    #cart-menu-icon {
        display: none; /* Hide the cart icon */
    }
    #a-locations {
        display: none; /* Hide the cart icon */
    }
    #login-menu-icon {
        display: none; /* Hide the login icon */
    }
    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }
    :root {
        --font-size: 16px; /* Adjusted for better readability */
        --top-nav-height: 90px; /* Adjust this value to match the actual height of your .top-nav */
    }

    .flex-item .top-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        color: var(--text-color);
        cursor: pointer;
        padding-top: 8px; /* Adjust padding for better alignment */
        padding-right: 3px; /* Adjust padding for better alignment */
    }
    #vehicle_fieldset {
        display: none !important; /* Force the rule to apply */
    }
    #vehicle_fieldset-2 {
        display: block;
    }
    #a-view-cart-2 {
        display: block; /* Show the view cart link */
    }
    .vehicle-head-content {
        flex-direction: column; /* Stack sections vertically on smaller screens */
    }

    .vehicle-head-section {
        flex: 1 1 100%; /* Each section takes full width */
    }
    /* Bottom Navigation Bar for Mobile Devices and Tablets */
    #bottom-menu {
        display: none;
    }
    #bot-nav-content {
        display: flex; /* Enable Flexbox for the parent container */
        justify-content: space-between; /* Space out the hamburger and copyright */
        align-items: center; /* Vertically align items */
    }
    .bottom-hamburger {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 0; /* Remove unnecessary margin */
        margin-bottom: 0; /* Remove unnecessary margin */
    }
    .flex-item .bot-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        color: var(--text-color);
        cursor: pointer;
        padding: 8px 0px 8px 3px;
    }
    #copyright {
        margin-left: auto; /* Push copyright to the right */
        white-space: nowrap; /* Prevent text wrapping */
    }
    .cookie-notice {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        text-align: center; /* Ensure text wraps and aligns in the center */
        overflow-wrap: break-word; /* Break long words to prevent overflow */
        margin: 0 auto; /* Center the container horizontally */
        padding: 10px; /* Add padding for better spacing */
        box-sizing: border-box; /* Include padding in the element's width */
        font-size: 16px; /* Reduce font size for smaller screens */
    }
    .close-login {
        padding-right: 5vw;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .close-login {
        padding-right: 4vw;
    }
}
/* Media Queries for Bottom Navigation Bar  */
@media only screen and (min-width: 0px) and (max-width: 1024px) {
    .flex-container {
        display: flex; /* Ensure Flexbox is applied */
        flex-direction: column; /* Stack items vertically */
        justify-content: center; /* Center items vertically */
        align-items: center; /* Center items horizontally */
        justify-content: space-around; /* Space items evenly */
        gap: 5vw;
    }
    #item1 {
        order: 2; /* Box 1 will appear second */
    }

    #item2 {
        order: 1; /* Box 2 will appear first */
        margin-top: 5em;
        margin-bottom: 5em;
    }

    #item3 {
        order: 3; /* Box 3 will appear third */
    }

    #close-menu {
        position: fixed;
        top: 10px;
        right: 20px;
        font-size: var(--font-size);
        color: var(--button-color);
        cursor: pointer;
    }

    .content {
        flex: 1 1 80%; /* flex-grow, flex-shrink, flex-basis */
    }

    .display_area {
        padding-top: 10vw; /* Remove top padding */
        background-color: #1a1a1a; /* Dark gray background */
        background-image: linear-gradient(45deg, #000000 25%, transparent 25%), linear-gradient(-45deg, #000000 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #000000 75%), linear-gradient(-45deg, transparent 75%, #000000 75%);
        background-size: 40px 40px; /* Adjust grid size */
        background-position: 0 0, 0 10px, 10px -10px, -10px 0;
        min-height: 35vw; /* Adjust height as needed */
        width: 100%;
        height: 40vw; /* Set a specific height */
    }

    .image_wrapper {
        margin-top: 1vw;
        background-color: var(--primary-color);
        padding: 2vw 1vw 1vw 1vw;
        border-radius: var(--border-radius);
        transform: rotate(-15deg);
        overflow: hidden; /* Optional: if you want to hide the part of the image that overflow the .image_wrapper element */
    }

    #img-vehicle-rear {
        border-radius: var(--border-radius);
        height: 40vw;
    }

    #vehicle_rear_matte {
        padding-top: 1vw;
        color: var(--text-color);
    }

    #car_image_large {
        width: 75%;
        height: auto;
    }

    #img-catalog_back {
        width: 75%;
        height: auto;
    }
}
/* Media Queries for large Tablets and Desktops */
@media only screen and (min-width: 1025px) and (max-width: 1599px) {
    #item2 {
        margin-top: calc((var(--top-nav-height) * 0.3));
    }
    .close-login {
        padding-right: 2vw;
    }
}
@media only screen and (min-width: 1600px) and (max-width: 1699px) {
    #item2 {
        margin-top: calc((var(--top-nav-height) * 0.2));
    }
}
@media only screen and (min-width: 1600px) and (max-width: 1799px) {
    #item2 {
        margin-top: calc((var(--top-nav-height) * 0.1));
    }
}
@media only screen and (min-width: 1800px) {
    #item2 {
        margin-top: 0px;
    }
}
