* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

div.gridcontainer {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  max-width: 1200px;
  margin: auto;
}
div.gridcontainer > header {
  grid-area: "header";
  background-color: #a07e7e;
}
div.gridcontainer > header > h1 {
  font-size: 3rem;
  padding: 1rem 0.5rem;
}
div.gridcontainer > header > nav {
  /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
  /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
}
div.gridcontainer > header > nav > ul {
  display: flex;
  gap: 0.3rem;
  justify-content: space-between;
  list-style-type: none;
  border-radius: 0px 0px 20px 0px;
  /* Add a black background color to the top navigation */
  background-color: #1e90ff;
  overflow: hidden;
  /* Add an active class to highlight the current page */
}
div.gridcontainer > header > nav > ul > li {
  /* Change the color of links on hover */
}
div.gridcontainer > header > nav > ul > li > a {
  /* Style the links inside the navigation bar */
  width: 100%;
  display: block;
  color: #f2f2f2;
  text-align: center;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  background-color: #1e90ff;
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  div.gridcontainer > header > nav > ul > li > a {
    border-radius: 10%;
    display: block;
  }
}
div.gridcontainer > header > nav > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.5529411765);
  color: black;
}
div.gridcontainer > header > nav > ul li.active {
  background-color: #1e90ff;
  color: white;
}
div.gridcontainer > header > nav > ul.topnav.responsive {
  flex-direction: column;
  text-align: center;
}
div.gridcontainer > header > nav > ul.topnav.responsive > li {
  display: block;
  text-align: left;
}
div.gridcontainer > header > nav > ul.topnav.responsive > li.icon,
div.gridcontainer > header > nav > ul.topnav.responsive a.icon {
  display: block;
  position: absolute;
  right: 0;
}
@media screen and (max-width: 600px) {
  div.gridcontainer > header > nav .topnav li:not(:first-child) {
    display: none;
  }
  div.gridcontainer > header > nav .topnav li.icon,
  div.gridcontainer > header > nav .topnav a.icon {
    float: right;
    display: block;
    border-radius: 20px 0px 0px 20px;
  }
}
@media screen and (min-width: 600px) {
  div.gridcontainer > header > nav > ul.topnav {
    justify-content: center;
    gap: 20px;
  }
  div.gridcontainer > header > nav ul.topnav li.icon {
    display: none;
  }
}
div.gridcontainer > main {
  grid-area: "main";
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0.5rem;
}
div.gridcontainer > main section img {
  width: 100%;
  min-height: 200px;
  -o-object-position: left center;
     object-position: left center;
  -o-object-fit: cover;
     object-fit: cover;
}
div.gridcontainer > main.carsgrid > article {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
}
div.gridcontainer > main.carsgrid > article > button {
  background-color: #1e90ff;
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
@media screen and (min-width: 768px) {
  div.gridcontainer > main.carsgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  div.gridcontainer > main.carsgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
div.gridcontainer main.booking {
  max-height: 550px;
}
div.gridcontainer main.booking > form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 360px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
div.gridcontainer main.booking > form > label {
  font-weight: bold;
  font-size: 1.1rem;
}
div.gridcontainer main.booking > form > input,
div.gridcontainer main.booking > form select,
div.gridcontainer main.booking > form button {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
div.gridcontainer main.aboutgrid > section > section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
div.gridcontainer main.aboutgrid > section > section > h2 {
  width: 100%;
  padding: 20px 0px;
}
div.gridcontainer main.aboutgrid > section > section > section.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 250px;
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
}
div.gridcontainer main.aboutgrid > section > section > section.card > img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 15px;
}
div.gridcontainer > footer {
  grid-area: "footer";
  padding: 0px 1rem;
  text-align: center;
  background-color: #a07e7e;
}

/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav .active {
  background-color: #04AA6D;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav li:not(:first-child) {
    display: none;
  }
  .topnav li.icon,
  .topnav a.icon {
    float: right;
    display: block;
  }
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive li.icon .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    flex-direction: column;
    text-align: left;
  }
  .topnav.responsive li {
    display: block;
    text-align: left;
  }
}/*# sourceMappingURL=style.css.map */