body{
    margin: 0;
    padding: 0;
   background-color: #020202;
   font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.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;
}
.slider{
    background-size: cover;
    width: 100%;
    height: 100vh;
    transition: 8s;
    animation-name:photos ;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    position: relative;
    top: 0px;
}
@keyframes photos{
    0%{
        background-image: url(mercedes-pic1.jpg);
        background-attachment: fixed;
    }
    25%{
        background-image: url(mercedes-pic2.jpg);
        background-attachment: fixed;
    }
    50%{
        background-image: url(mercedes-pic3.webp);
        background-attachment: fixed;
    }
    75%{
        background-image: url(mercedes-pic4.jpg);
        background-attachment: fixed;
    }
    100%{
        background-image: url(mercedes-pic5.jpg);
        background-attachment: fixed;
    }
}
.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; 
  }
.far, .fas{
    margin-right: 10px;
}

.mercedes-home1{
    width: 95%;
    border-radius: 15px;
    background-color: #eeeef4;
    border: 2px solid black;
    margin: 50px auto;
    padding: 15px;
    height: 380px;
    box-shadow: white;
    text-align: center;
}
.mercedes-pic1{
    width: 40%;
    border-radius: 15px;
    float: right;
    height: 375px;
    margin-left: 10px;
    box-shadow: rgba(0, 0, 0, 0.432) 0px 22px 70px 4px;
}
.first-h1{
    font-size: 45px;
    text-align: center;
    margin-top: 30px;
}
.p-first{
    font-size: 21px;
    margin: 10px;
}
.evolution{
    width: 80%;
    padding: 15px;
    margin: auto;
    margin-bottom: 50px;
   
}
.second-h1{
    color: white;
    font-size: 40px;
    text-align: center;
}
.first-car{
    width: 40%;
    border: 2px solid white;
    border-radius: 15px;
    float: left;
    padding: 15px;
    background-color: white;
    color: black;
    text-align: center;
    margin-bottom: 50px;
}
.mercedes-pic2{
    width: 100%;
    margin: auto;
    border-radius: 15px;
    box-shadow: rgb(0, 0, 0) 0px 1px 4px, rgb(0, 0, 0) 0px 0px 0px 3px;
}
.nowdays{
    width: 40%;
    border: 2px solid white;
    border-radius: 15px;
    float: right;
    padding: 15px;
    background-color: white;
    color: black;
    text-align: center;
    margin-bottom: 50px;
}
.mercedes-pic3{
    width: 100%;
    margin: auto;
    border-radius: 15px;
    box-shadow: rgb(0, 0, 0) 0px 1px 4px, rgb(0, 0, 0) 0px 0px 0px 3px;
}
hr{
    width: 95%;
    color: white;
    border: 2px white solid;
    margin: auto;
    border-radius: 5px;
}
.second-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; 
  }
.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; 
  }

@media screen and (min-device-width: 375px) and (max-device-width: 812px){
    .slider{
        background-size: cover;
        width: 100%;
        height: 100vh;
        transition: 8s;
        animation-name:photos ;
        animation-duration: 8s;
        animation-iteration-count: infinite;
        position: relative;
        top: 0px;
    }
    @keyframes photos{
        0%{
            background-image: url(mercedes-mob-pic1.jpg);
            background-attachment: fixed;
        }
        25%{
            background-image: url(mercedes-mob-pic2.jpg);
            background-attachment: fixed;
        }
        50%{
            background-image: url(mercedes-mob-pic3.jpg);
            background-attachment: fixed;
        }
        75%{
            background-image: url(mercedes-mob-pic4.jpg);
            background-attachment: fixed;
        }
        100%{
            background-image: url(mercedes-mob-pic5.jpg);
            background-attachment: fixed;
        }
    }

    .mercedes-home1{
        width: 95%;
        border-radius: 15px;
        background-color: #eeeef4;
        border: 2px solid black;
        margin: 50px auto;
        padding: 15px;
        height: 1600px;
        box-shadow: white;
        text-align: center;
    }
    .mercedes-pic1{
        width: 100%;
        border-radius: 15px;
        
        height: 580px;
        position: relative;
        top: 1000px;
        box-shadow: rgba(0, 0, 0, 0.432) 0px 22px 70px 4px;
    }
    .first-h1{
        font-size: 65px;
        text-align: center;
        position: relative;
        top: -550px;
    }
    .p-first{
        font-size: 40px;
        margin: 10px;
        position: relative;
        top: -550px;
    }
}