/* General Body - for sticky header */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 60px; /* !!! ADJUST THIS to actual #main-header height !!! */
    overflow-x: hidden;
}

/* --- Header Styles --- */
#main-header {
    background-color: #333;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: padding 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px; /* Initial padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease-in-out;
}

.logo-area a {
    display: inline-block;
    line-height: 0;
}

.logo-area #logo {
    display: block;
    height: 48px; /* Initial height */
    width: auto;
    transition: height 0.3s ease-in-out;
}

/* Styles for when the header is 'scrolled' */
#main-header.scrolled .header-container {
    padding: 8px 20px; /* Reduced vertical padding when scrolled */
}

#main-header.scrolled #logo {
    height: 20px; /* Reduced logo height when scrolled */
}

.main-navigation a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1em;
    transition: color .3s ease;
}

.main-navigation a:hover {
    color: #00aaff;
}

.main-navigation a:first-child {
    margin-left: 0;
}


/* --- Main Content Styles --- */
main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
}

/* --- Home Page Specific Styles --- */
#main-banner {
    width: 100%;
    margin-bottom: 30px; /* Space below banner */
    text-align: center; /* Center the image if it's smaller than container */
}

#main-banner img {
    max-width: 100%; /* Makes the image responsive */
    height: auto;    /* Maintain aspect ratio */
    display: block; /* Removes extra space below image */
    margin: 0 auto; /* Center if max-width is less than container */
}

#intro-content {
    text-align: left;
    margin-bottom: 30px;
}

#intro-content h2 {
    font-size: 2em;
    margin-bottom: 0.2em;
    color: #333;
}

#intro-content p.tagline {
    font-size: 1.2em;
    color: #555;
    margin-top: 0;
    margin-bottom: 1em;
    font-style: italic;
}

#intro-content p {
    font-size: 1em;
    line-height: 1.2;
    color: #444;
}

#product-lineup {
    display: flex;
    justify-content: space-around; /* Distributes items evenly with space around them */
    align-items: flex-start; /* Align items to the top if they have different text lengths */
    flex-wrap: nowrap; /* Prevent wrapping, items will shrink */
    gap: 15px; /* Space between items */
    margin-bottom: 30px;
    overflow-x: auto; /* Allows horizontal scroll on very small screens if they still don't fit */
                      /* but the goal is for them to shrink */
}



#product-lineup2 {
    display: flex;
    justify-content: space-around; /* Distributes items evenly with space around them */
    align-items: flex-start; /* Align items to the top if they have different text lengths */
    flex-wrap: wrap; /* THIS IS THE CHANGE: Allows items to wrap to the next line */
    gap: 15px; /* Space between items */
    margin-bottom: 30px;
    /* You can remove overflow-x: auto; now, as wrapping will handle overflow */
}


.lineup-item {
    flex: 1 1 0; /* Allow items to grow and shrink from a basis of 0, effectively distributing space */
    min-width: 100px; /* Minimum width before extreme squishing, adjust as needed */
    max-width: 15%; /* Approximately 100% / 5 items, adjust if gap is large */
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.lineup-item2 {
    flex: 1 1 0; /* Allow items to grow and shrink from a basis of 0, effectively distributing space */
    min-width: 100px; /* Minimum width before extreme squishing, adjust as needed */
    max-width: 10%; /* Approximately 100% / 5 items, adjust if gap is large */
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.lineup-item:hover {
    transform: translateY(-5px);
}

.lineup-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.lineup-item img {
    width: 100%; /* Image takes full width of its .lineup-item container */
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lineup-item span {
    display: block;
    font-weight: bold;
    font-size: 0.95em;
}


.lineup-item2 {
    flex: 1 1 0; /* Allow items to grow and shrink from a basis of 0, effectively distributing space */
    min-width: 100px; /* Minimum width before extreme squishing, adjust as needed */
    max-width: 10%; /* Approximately 100% / 5 items, adjust if gap is large */
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.lineup-item2:hover {
    transform: translateY(-5px);
}

.lineup-item2 a {
    text-decoration: none;
    color: #333;
    display: block;
}

.lineup-item2 img {
    width: 100%; /* Image takes full width of its .lineup-item container */
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lineup-item2 span {
    display: block;
    font-weight: bold;
    font-size: 0.95em;
	padding: 0;
	margin: 0;
}

.adsense-placeholder-container {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.adsense-placeholder {
    width: 728px;
    height: 90px;
    background: #eee;
    text-align: center;
    line-height: 90px;
    max-width: 100%;
    overflow: hidden;
}


/* Accordion Styles */
#state-accordion {
    margin-top: 10px;
}

#state-accordion h3 {
 /*   font-size: .8em; */
    padding: 3px;
    margin: 0 0 5px 0;
}

.ui-accordion .ui-accordion-header em {
/*    font-size: .8em;  */
    line-height: .9;
	/*  white-space: nowrap;  hyphens: none; */
}
#state-accordion .ui-accordion-content {
    padding: 15px;
}

.ui-accordion .ui-accordion-header {
    padding: 0;
}

	.ui-accordion p {
        font-size: 1em !important;
        line-height: .9 !important;
        padding-left: 0 !important;
    }

.state-flag {
    width: 42px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}


/* Thumbnails Styles (inside state-fla) */
.design-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.design-thumbnails img.thumbnail {
    width: 200px;
    height: 100px;
    border: 0px solid #ccc;
    margin: 0;
    cursor: pointer;
    object-fit: cover;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.design-thumbnails img.thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.03);
}


/* --- Modal Lightbox Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 40px auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

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

#license-plate-canvas {
    border: 0px solid #ddd;
    margin-bottom: 20px;
    background-color: #fff;
    max-width: 100%;
    height: auto;
}

.controls label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    text-align: left;
}

.controls input[type="text"],
.controls select,
.controls input[type="range"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.voffset-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 15px;
}

.voffset-controls input[type="range"] {
    flex-grow: 1;
    margin: 0 10px;
}

.voffset-button {
    width: 35px;
    height: 35px;
    padding: 0;
    font-size: 1.4em;
    line-height: 35px;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.voffset-button:hover {
    background-color: #e0e0e0;
}

.voffset-button:active {
    background-color: #d0d0d0;
}

#voffset-value {
    display: inline-block;
    min-width: 30px;
    text-align: right;
    font-weight: normal;
    padding-left: 5px;
}

.controls button#order-now-button {
    background-color: #0074D9;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.controls button#order-now-button:hover {
    background-color: #0056b3;
}

/* --- Footer Styles --- */
footer {
    background-color: #282828;
    color: #ccc;
    padding: 40px 0 0;
    margin-top: 30px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 20px;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    flex-grow: 0;
    flex-shrink: 0;
}

.footer-column.footer-logo-area {
    line-height: 1.1;
    flex-basis: 15%;
}

.footer-column.footer-address {
    line-height: 1.5;
    flex-basis: 20%;
}

.footer-column.footer-description {
    line-height: 1.2; /* Reduced leading for better readability */
    flex-basis: 35%;
}

.footer-column.footer-links-quick {
    line-height: 1.1;
    flex-basis: 15%;
}

.footer-column.footer-links-products {
    line-height: 1.1;
    flex-basis: 15%;
}


.footer-column h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.footer-column p,
.footer-column ul {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-column a {
    color: #00aaff;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;

    line-height: 1.5;
    padding: 0;
    margin-bottom: 2px;

}

.footer-column ul li {
    margin-bottom: 0px !important;
}

.footer-logo-area img {
    max-width: 110px;
    height: auto;
    margin-bottom: 10px;
}

.footer-logo-area a {
    color: #ccc;
    text-decoration: none;
    display: inline-block;
}

.footer-bottom {
    background-color: #1c1c1c;
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
    color: #aaa;
}

.footer-bottom p {
    margin: 0;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .footer-column {
        flex-basis: 50% !important;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-logo-area img {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .footer-logo-area a {
        text-align: center;
        width: 100%;
    }

    .footer-column.footer-logo-area {
        display: none;
    }


.footer-column.footer-address {
    line-height: 1.5;
    flex-basis: 35%;
}

.footer-column.footer-description {
    line-height: 1; /* Reduced leading for better readability */
    flex-basis: 35%;
}
    
}

@media (max-width: 768px) {
    body {
        padding-top: 55px;
    }

    .logo-area #logo {
        height: 36px;
    }

    .main-navigation a {
        margin-left: 15px;
        font-size: 0.95em;
    }
	
	
#intro-content p {
    font-size: .8em;
    line-height: 1.2;
    color: #444;
}

    .modal-content {
        margin: 30px auto;
    }

    /* Design Thumbnails (in accordion): 2-wide and centered on mobile */
    .design-thumbnails {
        justify-content: center;
        gap: 8px;
    }

    .design-thumbnails img.thumbnail {
        width: 48%;
        height: auto;
        max-width: 150px;
    }
#state-accordion h3 {
font-size: .8em; 
padding: 3px;
margin: 0 0 5px 0;
}
	.ui-accordion .ui-accordion-header em {
font-size: .8em;  
line-height: .9;
/*  white-space: nowrap;  hyphens: none; */
}

    /* Home page product lineup thumbnails: Allow wrapping, aim for 2-3 wide */
    #product-lineup {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center items when they wrap */
        gap: 15px;
    }

    .lineup-item {
        flex: 1 1 120px; /* Try to fit 2-3 items, basis 120px, can grow/shrink */
        max-width: calc(33.33% - 10px); /* Aim for 3 wide if space, minus gap compensation */
    }
	
	  .lineup-item2 {
        flex: 1 1 100px; /* Try to fit 2-3 items, basis 120px, can grow/shrink */
        max-width: calc(25% - 10px); /* Aim for 3 wide if space, minus gap compensation */
    }

    /* If screen is small enough for only 2 wide: */
    @media (max-width: 480px) { /* Further refine lineup for very small screens */
        .lineup-item {
            max-width: calc(50% - 10px); /* Aim for 2 wide */
        }
		.lineup-item2 {
            max-width: calc(20% - 5px); /* Aim for 2 wide */
        }
    }
}

@media (max-width: 600px) {
    .adsense-placeholder {
        width: 300px;
        height: 250px;
        line-height: 250px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    #main-header {
        height: auto;
    }

    body {
        padding-top: 90px;
    }

    .main-navigation {
        text-align: center;
    }

    .main-navigation a {
        margin: 0 8px;
        font-size: 0.9em;
    }

    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }

    .controls label {
        font-size: 0.9em;
    }

    .controls button#order-now-button {
        font-size: 1em;
    }
}