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


.section-one,
.section-two {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.vehicle-structure-image {
  transform: scale(0.95);
  transition: all 0.2s;
  border: 3px solid #7e2023;
}


.vehicle-structure-image:hover {
  transform: scale(1.0);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
}

.vehicle-structure-text {
  color: #F5F3F4;
  line-height: 26px;
  max-width: 945px;
  border-left: 2px solid #F5F3F4;
  padding-left: 10px;
  margin-top: 20px;
}


.car-brands {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 70px;
}


.section-two button {
  background-color: #7e2023;
  border: none;
  color:#F5F3F4;
  font-size: 20px;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.2s;
}

.section-two {
  margin-bottom: 50px;
}

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

.car-boxes {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  vertical-align: top;
}


.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 30px;
  border: 2px solid #7e2023;
  margin-top: 30px;
  vertical-align: top;
  cursor: pointer;
  background-color: #B1A7A6;
  height: 100%;
  max-height: 400px;
  transition: all 0.2s;
  filter: grayscale(100);
}

.box:hover {
  background-color: #161A1D;
  filter: grayscale(0);
}

.car-boxes img {
  width: 230px;
  object-fit: cover;
  height: 100%;
  max-height: 120px;

  

}



.car-boxes a {
  text-decoration: none;
  color: #7e2023;
  transition: all 0.2s;
  margin-bottom: 10px;
 
}

.car-boxes a:hover {
  color: #F5F3F4;
}


.car-boxes a:hover {
  text-decoration: underline;
}

.car-boxes p {
  color: #F5F3F4;
  background-color: #7e2023;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.2s;
}


.car-boxes p:hover {
  color: #7e2023;
  background-color: #F5F3F4;
}





.section-three {

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-wrap: wrap;
margin-bottom: 20px;
}





.electric-car-structure {
  max-width: 900px;
  transform: scale(0.95);
  transition: all 0.2s;
  border: 3px solid #7e2023;
  margin: 0 auto;
}





.electric-car-image {
  border: 3px solid #7e2023;

}










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



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

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

/* MAIN CONTENT */

.vehicle-structure-image,
.electric-car-structure,
.electric-car-image

 {
  width: 90%;
  margin: 0 auto;
}

.vehicle-structure-text {
margin: 0 auto;
width: 90%;
font-size: 14px;
line-height: 17px;
}



.car-brands {
  flex-direction: column;
  justify-content: center;
  row-gap: 1em;
}


.car-brands button {
  width: 100%;
}


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

.box {
  filter: grayscale(0);
}



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




}