* {
  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 {
  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;
}

h1,h2{
  color: #F5F3F4;
  font-size: 30px;
}


h2 {
  font-style: italic;
}



.section-one {
  background-image: url("audi-background-section-one.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 40px;
  margin-bottom: 30px;
  
}


.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;
}



.section-two {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}




.car-model-overview {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: 2px solid #7e2023;
  width: 100%;
}


.model-and-img {
  position: relative;
  background-color: #7e2023;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;

 

}


.main-model {

height: 300px;
width: 400px;
object-fit: contain;
object-position: right;

  
 
}


.models-overview {
  width: 400px;
}












h4 {
  color: rgb(240, 233, 233);
  font-size: 140px;
  position: absolute;
  top: -70%;
  left: 5%;
  z-index: 1;
 
}


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





/* 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;
}



/* SLIDER */

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

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

.slide {
  min-width: 100%;
  box-sizing: border-box;
}



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

.prev {
  left: 10px;
}

.next {
  right: 10px;
}




















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


/* NAVIGATION BAR */



  nav {
    justify-content: center;
 
  }



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

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


  .car-model-overview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #7e2023;
    width: 100%;
  }





  .model-and-img {
    width: 100%;
    overflow: hidden;
  }






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





footer {

  height: 20%;
 

}

.two-in-one,
.whole-div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 10%;
}



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







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

.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;
}







}