/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* Header Section */

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    font-size: 14px;
    text-transform: uppercase;
  }
  
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease;
    background-color: black;
    z-index: 1000;
  }
  
  #main-nav.scrolled {
      background: #04050457;
  }
  
  #main-nav a { 
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  #main-nav .logo {
    height: 40px;
  }


/* Container for Dropdowns & Buttons */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between dropdowns */
    flex-wrap: wrap; /* Ensures responsiveness */
    padding: 20px;
    position: relative;
    z-index: 1000;
}

/* Dropdown Styling */
.container select {
    width: 320px;
    padding: 12px 15px;
    font-size: 20px;
    border: 2px solid #000;
    border-radius: 5px;
    background-color: white;
    outline: none;
    text-align: center;
    appearance: none; /* Removes default browser styling */
    position: relative;
    z-index: 1001;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

/* Custom Dropdown Arrow */
.container select {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23000"%3E%3Cpath fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.583l3.71-4.353a.75.75 0 011.14.98l-4.25 5a.75.75 0 01-1.14 0l-4.25-5a.75.75 0 01.02-1.06z" clip-rule="evenodd" /%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Hover and Focus State */
.container select:hover,
.container select:focus {
    border-color: #ff1a1a;
    background-color: #f1f1f1;
}

/* Dropdown Options */
.container select option {
    color: #000;
    background-color: white;
    padding: 10px;
    font-size: 18px;
}

/* Fix for the dropdown's open state */
.container select:focus-visible {
    outline: none;
    border-color: #d30f60;
}

/* Button Styling */
.container button {
    width: 150px;
    padding: 8px 13px;
    font-size: 20px;
    border: 2px solid #000;
    border-radius: 5px;
    background-color: white;
    outline: none;
    text-align: center;
}

.container button {
    background-color: #fff;
    color: rgb(19, 5, 5);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.container button:hover {
    background-color: #d30f60;
}

/* Selected Info Box */
#selected-info {
    padding: 12px 20px;
    font-size: 16px;
    width: 800px;
    border-radius: 5px;
    border: 2px solid #fa0202;
    text-align: center;
    background-color: #f1f1f1;
}

/* Title for Dealership Finder */
.find-dealer-title {
    font-size: 30px;
    font-weight: bold;
    padding-left: 50px;
}

/*****************************************************************************Mobile Resposive**********************************************************************************/
@media (max-width: 1024px){
}
@media (max-width: 540px) and (orientation: portrait) {
    body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 2.5px;
    object-fit: cover;
}

/* Header Section */

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    font-size: 7px;
    text-transform: uppercase;
  }
  
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease;
    background-color: black;
    z-index: 1000;
  }
  
  #main-nav.scrolled {
      background: #040504e3;
  }
  
  #main-nav a { 
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  #main-nav .logo {
    height: 20px;
  }


/* Container for Dropdowns & Buttons */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7.5px; /* Space between dropdowns */
    flex-wrap: wrap; /* Ensures responsiveness */
    padding: 10px;
    position: relative;
    z-index: 1000;
}

/* Dropdown Styling */
.container select {
    width: 160px;
    padding: 6px 7.5px;
    font-size: 10px;
    border: 1px solid #000;
    border-radius: 2.5px;
    background-color: white;
    outline: none;
    text-align: center;
    appearance: none; /* Removes default browser styling */
    position: relative;
    z-index: 1001;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

/* Custom Dropdown Arrow */
.container select {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23000"%3E%3Cpath fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.583l3.71-4.353a.75.75 0 011.14.98l-4.25 5a.75.75 0 01-1.14 0l-4.25-5a.75.75 0 01.02-1.06z" clip-rule="evenodd" /%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 8px;
}

/* Hover and Focus State */
.container select:hover,
.container select:focus {
    border-color: #ff1a1a;
    background-color: #f1f1f1;
}

/* Dropdown Options */
.container select option {
    color: #000;
    background-color: white;
    padding: 5px;
    font-size: 9px;
}

/* Fix for the dropdown's open state */
.container select:focus-visible {
    outline: none;
    border-color: #d30f60;
}

/* Button Styling */
.container button {
    width: 75px;
    padding: 4px 6.5px;
    font-size: 10px;
    border: 1px solid #000;
    border-radius: 2.5px;
    background-color: white;
    outline: none;
    text-align: center;
}

.container button {
    background-color: #fff;
    color: rgb(19, 5, 5);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.container button:hover {
    background-color: #d30f60;
}

/* Selected Info Box */
#selected-info {
    padding: 6px 10px;
    font-size: 8px;
    width: 300px;
    border-radius: 2.5px;
    border: 1px solid #fa0202;
    text-align: center;
    background-color: #f1f1f1;
}

/* Title for Dealership Finder */
.find-dealer-title {
    font-size: 15px;
    font-weight: bold;
    padding-left: 25px;
}

}
