body{
    background-color: #0071ff;
}
:root{
 --primary-color: #11121a;
 --hover-color: #272832;
 --accent-color: #0071ff;
  --text-color: #c9c9c9;
  
    --MenuIconSize: 45px;
    --MenuIconBarHeight: calc(var(--MenuIconSize) * 0.15);
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
html{
  color:var(--text-color);
}
body{
  min-height:100vh;
  min-height:100dvh;
  background-color:var(--primary-color);
}
main{
  padding: min(5em, 7%);
}
main p{
  margin-top: .35em;
}

.invisibility{
  display:none;
}
.menu-button{
  display:none;
}
h1{
  font-size: 2.5rem;
}




nav{
  background-color: var(--primary-color);
  border-bottom:1px solid var(--hover-color);
  
  ul, li{
    list-style:none;
    display:flex;
  }
  .home-li{
    margin-right:auto;
  }
}
nav a.active-link{
  border-bottom:2px solid var(--text-color);
}
a{
  display:flex;
  text-decoration:none;
  color:var(--text-color);
  padding:1em 2em;
  transition: background-color 150ms ease;
}
a.accent-link{
  background-color:var(--accent-color);
  color:var(--text-color);
  margin-top:auto;
}
a:hover{
  background-color:var(--hover-color);
}

.inner-wrapper{
  padding-bottom:2.5rem;
  h1{
    font-size: 2.5rem;
    font-weight: bold;
  }
  p{
    font-size: 1.2rem;
    font-weight: 600;
  }
}

.car-container{
  width:100%;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  align-items: stretch;
  
  li{
    width:100%;
    border-radius:10px;
    border:2px solid var(--hover-color);
    padding:0.5rem;
    display:flex;
    flex-direction: column;
    flex:1;
  }
  .car-text{
    padding:0.5rem;
    h3{
      text-transform: capitalize;
    }
  }
  .lean_more{
    border-radius:99px;
  }
  
  a:has(>.car-img){
    padding:0.5rem;
    border-radius:10px;
    justify-content: center;
  }
  a:has(> h3) > h3{
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .car-img{
  max-width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
}


.overlay{
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  display: none;
  isolation: isolate;
}




@media screen and (max-width:700px){
  h1{
    font-size: 2.5rem;
  }
  nav{
    z-index:10;
    
  }
  nav ul.show{
    right:0;
  }
  nav:has(ul.show) ~ .overlay{
    display: block;
  }
    nav ul{
      background-color: var(--primary-color);
      width:100%;
      flex-direction:column;
      position:fixed;
      top:var(--MenuIconSize);
      right:-100%;
      height:100vh;
      width:min(15em,100%);
      z-index:10;
      border-left:1px solid var(--hover-color);
      border-top:1px solid var(--hover-color);
      transition: right 300ms ease-out;
    }
    nav a{
      width:100%;
      padding-left:2.5em;
    }
    nav a.active-link{
      border-bottom:none;
    }
    nav .home-li{
      margin-right:unset;
    }
  .bar{
    width: var(--MenuIconSize);
    height: var(--MenuIconBarHeight);

    background-color: var(--text-color);
    border-radius: 80px;
    transition-duration: .5s;
}

#Sidebar-btn:checked ~ .menu-button > #bar1{
    animation-name: topdown1;
    opacity: 0;
}
#Sidebar-btn:checked ~ .menu-button > #bar2{  
    animation-name: topdown2;
    transform-origin: center left;
    transform: translate(15%,-238%) rotate(45deg);
}
#Sidebar-btn:checked ~ .menu-button > #bar3{
    animation-name: topdown3;
    transform-origin: center right;
    transform: translate(-15%,-460%) rotate(-45deg);
}
.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: var(--MenuIconSize);
    height: var(--MenuIconSize);
    margin-left:auto;
    padding-right:10px;
    z-index:10;
    position: relative;
}
  
  
 
}
@media screen and (max-width:1000px){
   .car-container{
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}