*{
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

nav > img{
    margin-top: 1%;
    margin-left: 1%;
    display: block;
    float: left;
    width: 100px;
    
}

#mainmenu{
    margin-left: 25%;
    font-family: Arial, 'Times New Roman', Times, serif;
    font-size: 95%;
    font-weight: solid black;
}

#mainmenu > ul li{
    display: block;
    float: left;
    padding-right: 2%;
    margin-top: 2%;
    font-weight: solid black;
}


#mainmenu > ul a{
    text-decoration: none;
    text-transform: uppercase;
    color: black;
}

#rightmenu ul li{
    display: flex;
    -ms-flex-align: end;
    padding: 20px;
    font-family: Arial, 'Times New Roman', Times, serif;
    text-transform: uppercase;
    font-weight: solid black;
    color: black;
    transition: all;
    position:relative;
    float: right;
    
}

#rightmenu ul li img{
    width: 20px;
}

article{
    clear: both;
    margin: 0 auto;
    text-align: center;
}

article h1{
    font-size: 2.75em;
    font-family:  Arial, Helvetica, sans-serif;
    font-stretch: wider;
    color: rgb(44, 44, 44);
}

.button1{
    display: block;
    border-radius: 20px;
    background-color: rgba(44, 44, 44, 0.801);
    float: left;
    width: 20em;
    height: 10%;
    line-height: 325%;
    margin-right: 5%;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: 75%;
    margin-top: 1%;
    margin-bottom: 1%;
    animation:infinite;  
}

.button2{
    display: block;
    border-radius: 20px;
    background-color: white;
    float: left;
    width: 20em;
    height: 10%;
    line-height: 325%;
    margin-right: 5%;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    font-size: 75%;
    margin-top: 1%;
    margin-bottom: 1%;
    text-overflow: none;
    
}

article .button :last-child{
    margin-right: 0;
}
.center1{
    display: block;
    margin: 0 auto;
    align-content: center;
    text-align: center;
    margin-left: 30%;
    margin-top: 25%;
    position:relative;
}


.center2{
    display: block;
    margin: 0 auto;
    align-content: center;
    text-align: center;
    margin-left: 30%;
    margin-top: 25%;
    position:relative;
}

#car1{
    background-image: url('IMG/modelsedi.png');
    background-repeat: no-repeat;
    
}
#car11{
    padding-top: 110px;
    padding-bottom: 6.9em;
    max-width: 100%;
    display:block;
    float: none;
    margin-top: 0%;
    margin-bottom: 0%;
    margin-left: 0%;
    margin-right: 0%;
    height: auto;

}

nav{
    position:fixed;
    width: 100%;
}

#car2{
    padding-top: 110px;
    background-image: url('IMG/modelyedi.png');
    background-repeat: no-repeat;
    padding-bottom: 6.9em;
}

#car3{
    padding-top: 110px;
    background-image: url('IMG/model3edi.png');
    background-repeat: no-repeat;
    padding-bottom: 6.9em;
}
    

#car4{
    padding-top: 110px;
    background-image: url('IMG/modelxedi.png');
    background-repeat: no-repeat;
    padding-bottom: 6.9em;
}

#car5{
    padding-top: 110px;
    background-image: url('IMG/roadsteredit.png');
    background-repeat: no-repeat;
    padding-bottom: 6.9em;
    max-width: 100%;
}

@media screen and (max-width: 1235px){
    #mainmenu{
        display: none;
    }
    #rightmenu{
        display: block;
        float: none; 
    }
    #car1{
        width: 100%;
        height: 100%;
    }
    #rmenu{
        display: none;
    }
}

@media screen and (max-width: 280px){
    #mainmenu{
        display: none;
    }
    #rightmenu{
        display: block;
        float: none; 
    }
    #car1{
        width: 100%;
        height: 100%;
    }
    #rmenu{
        display: none;
    }
    
}

@media screen and (max-width: 570px){
    .button1{
        width: 100%;
        
    }
    .button2{
        width: 100%;
    }
}