* {
    box-sizing: border-box;
    margin: 0;
  }
  
  
    :root {
      --primary: #ff4545;
      --white: #fff;
      --black: #000;
      --grey1: #3a3b3c;
      --grey2: #828282;
      --blue: hsl(199,92%,43%);
  }
  
  
  header {
    position: relative;
    background-image: url('https://www.carcovers.com/media/carcover/resource/classiccar.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 150px;   
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    right: 0;
    bottom: 0;
    padding: 0 !important;
    margin: 0 !important;
    background-color: rgba(10, 10, 10, 0.9);
  }
  
  nav {
    display: flex;
  }
  
  nav h1 {
    z-index: 2;
    color: #fff;
    margin-top: 20px;
    margin-left: 0px;
    font-size: 60px;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    margin-left: 0px;
  }
  
  nav ul li {
    margin: 30px 30px;
  }
  
  a {
    color: #fff;
    text-decoration: none;
    font-weight: bolder;
    font-size: 19px;
  }
  
  a:hover {
    opacity: 0.8;
  }
  
  .logo {
    text-transform: uppercase;
    background-color: var(--white);
    border: 3px solid var(--black);
    color: var(--primary);
    font-size: 28px;
    font-weight: bold;
    padding: 3px;
    margin-right: 600px;
  }
  
    section {
      padding: 20px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      margin: 30px auto;
    }
    
    section ul {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      transition: all 0.8s ease-in;
    }
    
    section ul li {
      list-style: none;
      background-color: #eee;
      padding: 12px 20px;
      margin: 5px 5px 35px;
      letter-spacing: 1px;
      cursor: pointer;
    }
    
    section ul li.active {
      background-color: #03a9f4;
      color: #fff;
    }
  
    .oldCar {
      display: flex;
      justify-content: space-between;
      margin: 20px 0px;
    }
  
  
    .pics {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
    }
    
    .pics .item-box {
      position: relative;
      width: 200px;
      height: 200px;
      margin: 40px 5px 0px 5px;
    }
    
    .pics .item-box.hide {
      display: none;
    }
    
    .pics .item-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: 1s;
    }
    
    .pics .item-box img:hover {
      filter: grayscale(100%);
      transform: scale(1.1);
    } 
      
    #lightbox {
      position: fixed;
      z-index: 1000;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, .8);
      display: none;
      perspective: 1000px;
      transition: 0.4s ease;
    }
    
    #lightbox.active {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    #lightbox img {
      max-width: 90%;
      max-height: 80%;
      padding: 4px;
      background-color: black;
      border: 2px solid white;
      transition: 0.4s ease;
    }
    
    /*#lightbox img .big {
      transform: rotateZ(360deg);
    }*/
  
    @media(max-width: 500px) {
      .logo {
        font-size: 14px;
        margin-left: 0px;
        padding: 1px 2px;
        border: 2px solid black;
      }
  
      body {
        overflow-x: hidden;
      }
    }