
body{
    margin: 0;
    padding: 0;
    background-color: black;
}
.logo{
  float: left;
  margin-left: 50px;
  margin-top: -10px;
}
.menu{
    font-family: "Ubuntu", sans-serif;
    width: 100%;
    position: absolute;
    top: 0px;
    text-align: center;
     background-color: rgba(0, 0, 0, 0.651);
     height: 100px;
     padding-top: 50px;
     
}
.links{ 
    
    
    text-decoration: none;
    color: white;
    
    font-size: 24px;
    margin-right: 3%;
    color: #fff;
 
  text-decoration: none;
  letter-spacing: 0.15em;
  
  display: inline-block;
  padding: 15px 20px;
  position: relative;
}
.links:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }
  .links:hover:after { 
    width: 100%; 
    left: 0; 
  }
  .slider{
    background-size: cover;
    width: 100%;
    height: 100vh;
    transition: 24s;
    animation-name:photos ;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    position: relative;
    top: 0px;
}
@keyframes photos{
    0%{
        background-image: url(mercedes-pic25.jpg);
        background-attachment: fixed;
    }
    8%{
        background-image: url(mercedes-pic13.jpg);
        background-attachment: fixed;
    }
    16%{
        background-image: url(mercedes-pic14.jpg);
        background-attachment: fixed;
    }
    24%{
        background-image: url(mercedes-pic15.jpg);
        background-attachment: fixed;
    }
    32%{
        background-image: url(mercedes-pic16.jpg);
        background-attachment: fixed;
    }
    40%{
        background-image: url(mercedes-pic17.jpg);
        background-attachment: fixed;
    }
    48%{
        background-image: url(mercedes-pic19.jpg);
        background-attachment: fixed;
    }
    56%{
        background-image: url(mercedes-pic18.jpg);
        background-attachment: fixed;
    }
    64%{
        background-image: url(mercedes-pic20.jpg);
        background-attachment: fixed;
    }
    72%{
        background-image: url(mercedes-pic21.jpg);
        background-attachment: fixed;
    }
    80%{
        background-image: url(mercedes-pic22.jpg);
        background-attachment: fixed;
    }
    88%{
        background-image: url(mercedes-pic23.jpg);
        background-attachment: fixed;
    }
    100%{
        background-image: url(mercedes-pic24.jpg);
        background-attachment: fixed;
    }
    
}
.far, .fas{
    margin-right: 10px;
}
.models{
    width: 95%;
    margin: 50px auto;
    padding: 15px;
    padding-top: 50px;
    background-color: white;
    border-radius:10px ;
    height: 1700px;
}
.first-h1{
    color: black;
    margin-top: 20px;
    text-align: center;
    font-size: 45px;
    margin-top: -20px;
 
    
}
.first-row{
    width: 100%;
    margin-bottom: 20px;
    height: 400px;
}
.a-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
  }
  
  .a-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .a-class:hover:before {
    opacity: 0.6;
  }
  .a-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .a-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .a-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }










  .b-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
  }
  
  .b-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .b-class:hover:before {
    opacity: 0.6;
  }
  .b-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .b-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .b-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }





  .c-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
  }
  
  .c-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .c-class:hover:before {
    opacity: 0.6;
  }
  .c-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    float: left;
  }
  .c-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .c-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }





  .second-row{
    width: 100%;
    margin-bottom: 20px;
    height: 400px;
}
  .e-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
  }
  
  .e-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .e-class:hover:before {
    opacity: 0.6;
  }
  .e-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .e-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .e-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }





  .g-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .g-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .g-class:hover:before {
    opacity: 0.6;
  }
  .g-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .g-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .g-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }







  .r-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .r-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .r-class:hover:before {
    opacity: 0.6;
  }
  .r-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .r-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .r-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }





  .third-row{
    width: 100%;
    margin-bottom: 20px;
    height: 400px;
}

  .s-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .s-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .s-class:hover:before {
    opacity: 0.6;
  }
  .s-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .s-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .s-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }







  .v-class {
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .v-class:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .v-class:hover:before {
    opacity: 0.6;
  }
  .v-class img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .v-class .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .v-class:hover .info {
    opacity: 1;
    transform: translateY(0);
  }






  .GLE{
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .GLE:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .GLE:hover:before {
    opacity: 0.6;
  }
  .GLE img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .GLE .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .GLE:hover .info {
    opacity: 1;
    transform: translateY(0);
  }





  .fourth-row{
    width: 100%;
    margin-bottom: 20px;
    height: 400px;
}

  .GT{
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .GT:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .GT:hover:before {
    opacity: 0.6;
  }
  .GT img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .GT .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .GT:hover .info {
    opacity: 1;
    transform: translateY(0);
  }




  


  .AVTR{
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .AVTR:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .AVTR:hover:before {
    opacity: 0.6;
  }
  .AVTR img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .AVTR .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .AVTR:hover .info {
    opacity: 1;
    transform: translateY(0);
  }
  











  .Classic{
    margin: 10px;
    display: flex;
    width: 31.5%;
    position: relative;
    transition: 0.5s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    float: left;
    
  }
  
  .Classic:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.01) 0,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 75%,
      rgb(0, 0, 0) 100%
    );
    z-index: 2;
    transition: 0.5s all;
    opacity: 0;
    border-radius: 10px;
  }
  .Classic:hover:before {
    opacity: 0.6;
  }
  .Classic img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  .Classic .info {
    position: absolute;
    z-index: 3;
    color: #fff;
    top: 50%;
    left: 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s all;
    font-size: 20px;
  }
  .Classic:hover .info {
    opacity: 1;
    transform: translateY(0);
  }




  .footer{
    font-family: "Ubuntu", sans-serif;
    width: 100%;
    
    text-align: center;
     background-color: rgb(255, 255, 255);
     height: 100px;
     padding-top: 50px;
     color: black;
}
.links2{ 
    
    
    text-decoration: none;
    color: white;
    
    font-size: 24px;
    margin-right: 3%;
    color: rgb(0, 0, 0);
 
  text-decoration: none;
  letter-spacing: 0.15em;
  
  display: inline-block;
  padding: 15px 20px;
  position: relative;
}
.links2:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: rgb(0, 0, 0);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }
  .links2:hover:after { 
    width: 100%; 
    left: 0; 
  }
  hr{
    width: 95%;
    border: 2px solid white;
    border-radius: 5px;
}
.third-p{
    color: white;
    text-align: center;
}
.link{
    color: white;
    text-decoration: none;
    text-decoration: none;
    color: white;
    
    
    
    color: #fff;
 
  text-decoration: none;
  
  
  display: inline-block;
  padding: 15px 20px;
  position: relative;
    
}
.link:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }
  .link:hover:after { 
    width: 100%; 
    left: 0; 
  }






  @media screen and (min-device-width: 375px) and (max-device-width: 812px){
        .slider{
    background-size: cover;
    width: 100%;
    height: 100vh;
    transition: 24s;
    animation-name:photos ;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    position: relative;
    top: 0px;
}
@keyframes photos{
    0%{
        background-image: url(mercedes-mob-pic9.jpg);
        background-attachment: fixed;
    }
    8%{
        background-image: url(mercedes-mob-pic8.jpg);
        background-attachment: fixed;
    }
    16%{
        background-image: url(mercedes-mob-pic10.jpg);
        background-attachment: fixed;
    }
    24%{
        background-image: url(mercedes-mob-pic11.jpg);
        background-attachment: fixed;
    }
    32%{
        background-image: url(mercedes-mob-pic12.jpg);
        background-attachment: fixed;
    }
    40%{
        background-image: url(mercedes-mob-pic13.jpg);
        background-attachment: fixed;
    }
    48%{
        background-image: url(mercedes-mob-pic14.jpg);
        background-attachment: fixed;
    }
    56%{
        background-image: url(mercedes-mob-pic15.jpg);
        background-attachment: fixed;
    }
    64%{
        background-image: url(mercedes-mob-pic16.jpg);
        background-attachment: fixed;
    }
    72%{
        background-image: url(mercedes-mob-pic17.jpg);
        background-attachment: fixed;
    }
    80%{
        background-image: url(mercedes-mob-pic18.jpg);
        background-attachment: fixed;
    }
    88%{
        background-image: url(mercedes-mob-pic19.jpg);
        background-attachment: fixed;
    }
    100%{
        background-image: url(mercedes-mob-pic20.jpg);
        background-attachment: fixed;
    }
    
}
.models{
  width: 95%;
  margin: 50px auto;
  padding: 15px;
  padding-top: 50px;
  background-color: white;
  border-radius:10px ;
  height: 2050px;
}
.first-h1{
  color: black;
  margin-top: 20px;
  text-align: center;
  font-size:80px;
  margin-top: -20px;

  
}
.first-row{
  width: 100%;
  margin-bottom: 20px;
  height: 400px;
}
.a-class, .b-class,.c-class,.e-class,.g-class,.r-class,.s-class,.v-class,.GLE,.GT,.AVTR,.Classic {
  margin: 10px;
  display: flex;
  width: 47.5%;
  position: relative;
  transition: 0.5s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 10px;
  float: left;
  height: 300px;
}

.a-class:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 123, 255, 0.01) 0,
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.75) 75%,
    rgb(0, 0, 0) 100%
  );
  z-index: 2;
  transition: 0.5s all;
  opacity: 0;
  border-radius: 10px;
}
.a-class:hover:before {
  opacity: 0.6;
}
.a-class img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.a-class .info {
  position: absolute;
  z-index: 3;
  color: #fff;
  top: 50%;
  left: 10%;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.5s all;
  font-size: 20px;
}
.a-class:hover .info {
  opacity: 1;
  transform: translateY(0);
}
.e-class{
  margin-top: -85px;
}
  }
