* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}


body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1440px;
  margin: auto;
  background-color: #161A1D;
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  height: 100px;
  background-color: #7e2023;
  width: 100%;
}

nav img {
  max-width: 100px;
  margin-left: 5px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 50px;
}

nav a {
  text-decoration: none;
  color: #F5F3F4;
  cursor: pointer;
  
}

nav a:hover {
  text-decoration: underline;
}

.user-profile-img {
  width: 20px;
  cursor: pointer;
  
}

.sign-in-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 10px;
  column-gap: 6px;
}

h2{
  color: #F5F3F4;
  font-size: 40px;
  background-color: rgba(126, 32, 35,0.7);
  padding: 15px;
  
}





/* MAIN */


main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  
}


.sec-1 {
  position: relative;
}


.sec-1 h2 {
  position: absolute;
  top: 30px;
  left: 50px;

  
}


.sec-1 span {
  color: #F5F3F4;
  font-size: 30px;
  font-style: italic;
  position: absolute;
  top: 200px;
  left: 50px;


}



.sec-1 img {
width: 100%;
}




.sec-3 {
  display: flex;
  width: 100%;
  align-items: center;
  background-color: rgba(126, 32, 35,0.6);
}



.sec-text,
.sec-image {
  width: 50%;
}


.sec-image img {
  width: 100%;
}




.sec-text p {
  color: white;
  line-height: 1.5em;
  padding: 10px;
}




.audi-components {
  border: 2px solid #7e2023 ;
}








/* SLIDER CSS */


.explore-button {
  padding: 10px;
  background-color:  #7e2023;
  color:#F5F3F4;
  border: none;
  font-size: 20px;
  margin-right: 20px;
  transition: all 0.2s;
  border: 2px solid #F5F3F4;
  cursor: pointer;
}


.explore-button:hover {
  background-color: #F5F3F4;
  color: #7e2023;
}


.models-overview {
  width: 400px;
}


.model-overview-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}



.slider {
  
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  position: relative;
  
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}




.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #7e2023;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}






/* DEALER CARDS INFO CSS */





.contact-info-card-2,
.contact-info-card {
  width: 100%;
  background-color: rgba(126, 32, 35,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
 
}








.dealer-image {
  width: 30%;
}


.dealer-image img {
  width: 100%;
 
}


.dealer-info {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dealer-info p {
  color: white;
  font-size: 20px;
}




.back-button,
.contact-button {

  padding: 10px;
  background-color:  #7e2023;
  color:#F5F3F4;
  border: none;
  font-size: 20px;
  transition: all 0.2s;
  border: 2px solid #F5F3F4;
  cursor: pointer;

}

.back-button:hover,
.contact-button:hover {
  background-color: #F5F3F4;
  color: #7e2023;
}


h4 {
  color: white;
  font-size: 20px;
}



.contact-mini-container {
  display: flex;
  column-gap: 1.5em;
}





/* FOOTER */










footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background-color: #7e2023;
  height: 560px;
  font-size: 14px;

}


.glavni-div-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  vertical-align: top;
 
}


h3 {
  color: #F5F3F4;
}

.buy-sell ul {
  list-style: none;
  
  
}

.buy-sell a {
  color: #F5F3F4;
}


.buy-sell li {
  margin-bottom: 10px;
 
}


.buy-sell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}


.two-in-one {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  vertical-align: top;

}


.socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}


.socials-icons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
}



.socials-icons img {
  width: 30px;
}

.whole-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  height: 400px;
}


.our-company {
  justify-content: start;
}

.buying-selling {
  justify-content: start;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


.glavni-div-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}


.glavni-div-2 ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  column-gap: 20px;
 
}

.glavni-div-2 ul li a {
  color: #F5F3F4;

}

footer hr {
  width: 100%;
}

footer p {
  color: #F5F3F4;
}


.arrow-up {
  position: fixed;
  bottom: 50px;
  right: 50px;
}













@media only screen and (max-width:500px) {


/* NAVIGATION BAR */



  nav {
    justify-content: center;
    width: 100%;
 
  }






  nav ul,
  .sign-in-div {
    display: none;
  }

  
  nav img {
    width: 100px;
    margin: 0 auto;
  }
  

  main {

    width: 100%;
    
  }
  
  .sec-1 {
    position: relative;
    width: 100%;
  }

  .sec-1 h2 {
    position: absolute;
    top: 20px;
    left: 50px;
  
    
  }
  
  
  .sec-1 span {
    color: #F5F3F4;
    font-size: 20px;
    font-style: italic;
    position: absolute;
    top: 180px;
    left: 50px;
  
  
  }



  .sec-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
    background-color: rgba(126, 32, 35,0.6);
  }



  h2{

    font-size: 30px;
    text-align: center;
   
  }

  .sec-text {
    width: 100%;
  }

  .sec-image {
    width: 100%;
  }



.audi-components-image {
  width: 100%;
}



.contact-info-card-2,
.contact-info-card {
  width: 100%;
  background-color: rgba(126, 32, 35,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
 
}



.arrow-up {
  position: fixed;
  bottom: 3%;
  right: 3%;
  width: 15%;
}





footer {

  height: 20%;
 

}


.whole-div {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  height: 10%;
}


.two-in-one {
  justify-content: normal;
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  height: 10%;
}



.glavni-div-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
 
}




}