/* Add the following CSS to your existing styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #131313; /* Set the background color for the entire page */
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 100%; /* Adjust the maximum width according to your design */
    overflow-x: hidden;
    margin: 0 auto; /* Center the container horizontally */
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    padding-left: 5px;
    padding-right: 50px;
    width: 100%;
    z-index: 1000;
}

header .logo img {
    height: 60px;
}

header nav {
    display: none; /* Hide nav by default */
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}

header nav a.build-price {
    background-color: #076820;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    align-items: center;
    margin-right: 30px;
    transition: all 0.3s ease;
}

.menu-icon .bar {
    width: 40px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.menu-icon span {
    color: white;
    margin-left: 3px;
}

.menu-icon.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-icon.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.overlay-menu {
    display: none;
    position: fixed;
    top: 70px; /* Adjusted to start below the hamburger button */
    right: 0;
    padding-top: 5px;
    width: 40%; /* Adjusted to be quarter to half the screen width */
    height: calc(100% - 70px);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    z-index: 999;
}

.overlay-menu.open {
    display: block;
}

.overlay-menu-content {
    position: absolute;
    top: 3%;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

.overlay-menu-content a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 10px;
    opacity: 0;
    transform: translateX(100%);
    animation: slide-in 1s ease forwards;
}

.overlay-menu-content a:nth-child(1) {
    animation-delay: 0.1s;
}

.overlay-menu-content a:nth-child(2) {
    animation-delay: 0.3s;
}

.overlay-menu-content a:nth-child(3) {
    animation-delay: 0.5s;
}

.overlay-menu-content a:nth-child(4) {
    animation-delay: 0.7s;
}

.overlay-menu-content a:nth-child(5) {
    animation-delay: 0.9s;
}

.overlay-menu-content a:nth-child(6) {
    animation-delay: 0.10s;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.titlecontainer {
    background-color: #131313;
    padding: 20px;
    text-align: left;
    width: 100%; /* Adjust the width of the container */
    max-width: 600px; /* Set a maximum width for responsiveness */
    padding-top: 60px;
    color: #fff;
    font-family: 'Gill Sans', 'Gill Sans MT','Trebuchet MS', sans-serif;

}

h2 {
    color: #fff;
    margin-bottom: 20px;
}

.line {
    width: 40%;
    height: 1px;
    background-color: #fff; /* Color of the line */
    margin: 20px 0; /* Adjust spacing around the line */
}

.line.small {
    width: 20%;
    height: 1px;
    background-color: #fff; /* Color of the line */
    margin: 20px 0; /* Adjust spacing around the line */
}

.content-container {
    display: flex; /* Arrange containers horizontally */
    flex-wrap: wrap; /* Allow wrapping of content */
    justify-content: space-between; /* Distribute content evenly */
    padding: 20px;
}

.search-container {
    width: 20%; /* Set width for the search container to cover 20% of screen */
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #fff;
}

.search-section h2, .filter-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}
.search-section p{
    font-size: 12px;
}

input[type="text"] {
    width: calc(100% - 100px); /* Calculate input width */
    padding: 10px;
    margin-right: 10px;
    font-size: 16px;
}

button.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #076820; /* Set background color for the search button */
    color: #fff; /* Set text color for the search button */
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.price-buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
}

.price-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #fff; /* Set background color for the price buttons */
    color: #000; /* Set text color for the price buttons */
    border: none;
    cursor: pointer;
    border: 1px solid #000; /* 1px solid black border */

}
.price-button.selected {
    background-color: #fff;
    color: #000;
    border: 1px solid #076820;
}

.no-results {
    color: #076820;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}


.car-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.car {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    width: calc(30% - 20px); /* 20% width with margin on both sides */
    background-color: #131313;
    color: #fff;
    border-radius: 10px;
    font-family: 'Gill Sans', 'Gill Sans MT','Trebuchet MS', sans-serif;

}

.car img {
    width: 100%;
    height: auto;
}

.description {
    background-color: #131313;
    padding: 10px;
}

.details {
    margin-bottom: 5px;
    background-color: #131313;
}

.btn-view-details {
    background-color: #076820;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    float: right;
    border-radius: 0px;
    width: 100px;
    height: 20px;
    text-align: center;
    margin-bottom: 10px;
}

.btn-view-details:hover {
    background-color: #fff;
    color: #076820;
}
.number-links {
    background-color: #131313 !important;
    padding: 20px;
    text-align: center;
    position: relative;
}

.number-links::before,
.number-links::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    border-top: 2px solid #076820; /* White border color for the lines */
}

.number-links::before {
    top: 0;
}

.number-links::after {
    bottom: 0;
}

.number-links a {
    text-decoration: none;
    color: #076820;
    font-size: 18px;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.number-links a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #076820; /* Circular line color */
    border-radius: 50%;
    transition: transform 1s ease; /* Add the transition property here */
    transform-origin: center;
    transform: rotate(180deg) scaleX(0); /* Initial state: line is not visible and rotated */
}

.number-links a:hover::before {
    transform: rotate(0deg) scaleX(3); /* Draw the circular line anticlockwise on hover */
}

.footer {
    background: #131313;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px; /* Adjust the height of the footer */
    position: relative;
    width: 100%;
  }
  
  .footer-links {
    display: flex;
    padding-left: 60px;
    font-size: 11px;
    color: white;
  }
  
  .separator {
    margin: 0 10px;
    border-right: 1px solid white;
    height: 30px; /* Adjust the height of the separator */
  }
  
  .logo {
    width: 200px; /* Adjust the width of the logo */
    height: auto;
  }
  
  .follow-on {
    display: flex;
    align-items: center;
  }
  
  .social-icon {
    width: 20px; /* Adjust the width of the social icons */
    height: auto;
    margin: 0 5px;
    margin-right: 30px;
  }
  /* Responsive Styles for Smaller Screens */
@media screen and (max-width: 48rem) { /* 768px */
    .container {
        padding: 0.625rem; /* 10px */
    }
    
    header {
        flex-direction: row;
        padding: 0.625rem;
    }
    
    .menu-icon {
        display: flex;
    }
    
    .overlay-menu {
        width: 70%; /* Make it wider for better access */
    }
    
    .titlecontainer {
        text-align: center;
        max-width: 100%;
    }
    
    .content-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-container {
        width: 100%;
        text-align: center;
    }
    
    .price-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .car-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .car {
        width: 90%;
        margin-bottom: 0.9375rem; /* 15px */
    }
    
    .description {
        text-align: center;
    }
    /* Footer remains the same but smaller */
    .footer {
        font-size: 0.875rem; /* Reduce text size slightly */
        padding: 0.625rem; /* Reduce padding */
        margin-left: 0.5rem; /* Move it more to the left */
        text-align: left; /* Align text to the left */
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align content to the left */
    }

    .footer-links {
        gap: 0.5rem; /* Slightly reduce the spacing */
    }

    .follow-on {
        display: flex;
        flex-wrap: wrap; /* Prevent overlap */
        justify-content: flex-start; /* Align icons to the left */
        gap: 0.5rem; /* Add spacing */
    }

    .follow-on img {
        width: 1.5rem; /* Reduce icon size */
        height: 1.5rem;
        margin: 0.3125rem; /* Keep spacing consistent */
    }

}

@media screen and (max-width: 30rem) { /* 480px */
    .menu-icon .bar {
        width: 1.875rem; /* 30px */
        height: 0.125rem; /* 2px */
    }
    
    .overlay-menu {
        width: 80%;
    }
    
    .price-buttons button {
        width: 45%;
        margin: 0.3125rem; /* 5px */
    }
    
    .car img {
        width: 100%;
        height: auto;
    }
     /* Further scale down the footer */
     .footer {
        font-size: 0.75rem; /* Reduce text size more */
        padding: 0.5rem; /* Adjust padding */
        margin-right: 0.5rem;
    }
    
    .follow-on img {
        width: 1.25rem; /* Make icons smaller */
        height: 1.25rem;
    }
}

