/* Media query for smaller screens */
@media screen and (max-width: 600px) {
  main {
    padding: 10px;
  }

  .h1Home {
    font-size: 30px;
  }

  #Home {
    height: 400px; /* Set the desired height here */
  }

  .pHome {
    font-size: 20px;
    margin-top: 20px;
  }

  .openingTimesCard,
  .googleMap {
    max-width: 100%;
  }

  .openingTimesCard {
    grid-template-columns: 1fr;
  }

  #services img {
    width: 100%;
  }

  .ServiceList {
    min-width: 100%;
  }

  .times {
    margin-top: -20%;
  }

  #Openingstijden {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #services h2 {
    flex-basis: 100%;
    font-size: 25px;
    text-align: center;
    margin-bottom: 5%;
  }

  .banner {
    margin-top: 5%;
    width: 90%;
  }

  .BannerText h2 {
    font-size: 18px;
  }

  /* Reset some default styles and apply a modern font */
  body,
  h1,
  h2,
  h3,
  p,
  ul {
    margin: 0;
    padding: 0;
  }

  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #2c2c2c;
    color: #fff;
  }

  /* Header styling */
  header {
    /* background-color: #1a1a1a; */
    color: #fff;
    text-align: left;
    padding: 1em;
    font-size: 70%;
  }

  /* Main content styling */
  main {
    max-width: 80%;
    margin: 0 auto;
    /* padding: 20px; */
    /* background-color: #333; */
    /* border-radius: 10px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
  }

  .HomeImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #Home {
    background-image: url("../images/slijpen3.jpeg");
    background-size: cover;
    background-position: center;
  }

  .h1Home {
    color: white;
    /* font-size: 70px; */
    font-weight: bold;
    text-align: center;
    /* margin-top: 200px; */
  }

  .pHome {
    color: white;
    /* font-size: 30px; */
    font-weight: bold;
    text-align: center;
    /* margin-top: 200px; */
  }

  .PhoneIcon {
    /* width: 25px; */
    height: 25px;
    margin-left: -10%;
    margin-bottom: -3%;
  }

  /* Center the button within its parent container */
  .contactButton {
    background-color: #4e5157;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 32px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    display: block;
    margin: auto;
    margin-top: 35%; /* You can adjust the margin-top as needed */
  }

  /* Card styling */
  .openingTimesCard {
    /* max-width: 40%; */
    /* margin: 20px auto; */
    padding: 20px;
    display: grid;
    /* grid-template-columns: auto auto; */
    gap: 10px;
  }

  /* Day styling */
  .day {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px; /* Add margin to create spacing between days */
  }

  /* Opening times styling */
  .times {
    font-size: 16px;
    text-align: end;
    margin-bottom: 10px; /* Add margin to create spacing between times */
  }

  .ClockIcon {
    width: 40px;
    height: 40px;
    margin-bottom: -6%;
  }

  .googleMap {
    max-width: 100%;
    margin: 20px auto;
    /* padding: 20px; */
  }

  .googleMap h2 {
    margin: 0;
    text-align: center;
  }

  .googleMap iframe {
    width: 100%;
    /* height: 75%; */
    border: 0;
  }

  /* About section styling */

  /* Services section styling */
  #services {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .ServiceListTitel {
    word-wrap: break-word;
  }

  .ServiceList {
    max-width: 100%;
  }

  /* Clear float for subsequent elements */
  .clearFloat {
    clear: both;
  }

  #services img {
    flex-basis: 45%; /* Adjust the width of the image */
    /* width: 48%; */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 5%;
  }

  #services p {
    font-size: large;
    flex-basis: 100%; /* Adjust the width of the text content */
    margin-bottom: 10px;
  }

  .listP {
    margin-left: 10%;
  }

  /* Contact section styling */
  #contact {
    margin-bottom: 30px;
  }

  /* Footer styling */
  footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 1em;
  }

  /* Example of additional styles for links, headings, and address tag */
  a {
    color: #4e8cff;
    text-decoration: none;
  }

  h1,
  h2 {
    color: #fff;
  }

  address {
    font-style: normal;
  }

  /* Banner styling */
  .banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #6087b9; /* Use your preferred background color */
    padding: 15px;
    text-align: center;
    /* width: 100%; */
    border-radius: 15px;
  }

  #Bezoeken .contactButton {
    background-color: #4e5157;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 32px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    display: block;
    margin: auto;
  }


  #Voorraad h2 {
    flex-basis: 100%;
    font-size: 25px;
    text-align: center;
    /* margin-bottom: 5%; */
  }

  #Voorraad h3 {
    text-align: center;
    margin-bottom: 1%;
    color: #6087b9;
  }

  .AutoSelectie {
    align-items: center;
    justify-content: center;
    /* flex-wrap: wrap; */
  }

  /* 
 */

  .card {
    width: 100%;
    background: white;
    padding: 0.4em;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 3%;
  }

  .card-image img {
    background-color: rgb(236, 236, 236);
    width: 100%;
    height: 100%;
    border-radius: 6px 6px 0 0;
  }

  .category {
    text-transform: uppercase;
    font-size: 0.7em;
    font-weight: 600;
    color: rgb(63, 121, 230);
    padding: 10px 7px 0;
  }

  .category:hover {
    cursor: pointer;
  }

  .heading {
    font-weight: 600;
    color: rgb(88, 87, 87);
    padding: 7px;
  }

  .ModelInfo {
    color: gray;
    font-weight: 400;
    font-size: 16px;
  }

  .name {
    font-weight: 600;
  }

  .name:hover {
    cursor: pointer;
  }

  .collapsible {
    cursor: pointer;
    width: 100%;
    background-color: #4e5157;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 32px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    display: block;
    margin: auto;
    margin-top: 3%;
  }

  .AutoSelectie p {
    color: black;
    font-weight: 600;
  }

  .content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .CarButton {
    width: 100%;
    background-color: #4e5157;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 32px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    display: block;
    margin: auto;
  }
}
