.header { grid-area: header; ;font-size: 12px; background-color: #3C3C3C; position: relative; text-align: center; aspect-ratio: 16 / 6; width: 100%; }

.article { grid-area: article; font-family:verdana; font-size: 22px;background-color: #A9C9D5; text-align:center; padding-left: 2%; padding-right: 2%; min-height: 200px;}

.search { grid-area: search; background-color: #4e734a; text-align: center; font-size: 100%; font-family: sans-serif;}

.footer { grid-area: footer;  font-size: 30px;  text-align:center;background-color: #3C3C3C; font-size: clamp(0.2rem, 1.5vw + 0.8rem, 3rem);}

.navbar { grid-area: nav;background-color: #80C778; z-index: 1000;}

#navbar{
  top: 0%; display: block; z-index: 1000; 
}

body{
  display: grid;
  grid-template-areas:
    "nav nav" 
    "header header"
    "search search" 
	  "article article"
    "footer footer";
  grid-template-rows: 50px 1fr 0.6fr auto 70px;  
  grid-template-columns: 20% 1fr;
  grid-row-gap: 5px;
  grid-column-gap: 10px;
  min-height: 100vh;
  margin: 0;
  background:#FEF5ED;
}

.center {
  text-align: center;
}

.navButton{
  height:100%;
  width:33.333333%;
  background-color: #4e734a;
  display: block;
  text-align: center;
  border: none;
  color: white;
  font-size: 100%;
  float: left;
}

.navButton:hover{
  background-color: #9de096;
  color: #000000;
}

input[type=text], select {
  width: 50%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type=submit] {
  width: 5%;
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type=submit]:hover {
  background-color: #45a049;
}

.item-box {
  border: 1px solid #ccc;
  margin: 20px;
  padding: 2%;
  background-color: #f9f9f9;
  text-align: center;
  width: 30%;
  min-width: 320px;
  height: auto;
  border-radius: 4px;
  display: inline-block;
  vertical-align: top;
  left:20%;
}

/* Styling for the image */
.item-image {
  max-width: 100%;
  margin-bottom: 15px;
  border-radius: 5px;
  height: 300px;
  width: 100%;
  overflow: hidden;
}

/* Styling for the description */
.item-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* Styling for the link */
.item-link {
  font-size: 16px;
  text-decoration: none;
  color: #007bff;
}

.item-link:hover {
  text-decoration: underline;
}

.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: none;  /* Remove centering transform when fixed */
  height: 50px;
}

* { box-sizing: border-box; }

.carousel {
  width: auto;
}

.carousel-cell {
  display: inline-block;
  width: 66%;
  aspect-ratio: 20 / 13;
  margin-right: 5px;
  border-radius: 5px;
  counter-increment: carousel-cell;
  background-color:rgb(96, 138, 91);
}

.car-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

.car-title{
  font-size: clamp(0.2rem, 2vw + 0.4rem, 3rem);
}

.car-items{
  text-align: center;
  width: 40%;
  min-width: 100px;
  height: 100%;
  left: 60%;
  position: absolute;
  font-size: clamp(0.1rem, 1vw + 0.2rem, 3rem);
  padding-left: 5%;
  padding-right: 5%;
  opacity: 0.7;
  background-color: #000000;
  color:white;
  font-family: Arial, sans-serif;
}

.car-button{
  width: 40%;
  background-color: #4CAF50;
  color: white;
  padding: 5px 5px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  font-size: clamp(0.1rem, 0.8vw + 0.2rem, 3rem);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.car-button:hover {
  background-color: #45a049;
}

.cta{
  font-size: clamp(1.5rem, 2vw + 1rem, 3rem);
  margin-bottom:4%;
  color: white;
}

.scroll-down {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 6px;
  animation: bounce 1.5s infinite;
}

/* bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}
