* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
  font-family: Arial, Helvetica, sans-serif;
font-size: 80%;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: white;
  font-family: "Satisfy", cursive;
  background-attachment: fixed;
  position: relative;  
}
.main {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  background-color: black;
  margin: 4rem auto;
  overflow-x: hidden;
  gap: 2rem;
  transition: all 1s;
}
.main-image{
  width:100%;
  position:relative;
}
.no-lights{
  z-index: 100;
  width: 100%;
  left:0;
  top:0;
}
.lights{
  position:absolute;
  width: 100%;
  left:0;
  top:0;  
  animation: lights 8s ;  
}
@keyframes lights {
  0%{z-index: -1;}
  100%{
    z-index: 1; 
  }
}
.logo {
  width: 5rem;
  opacity: 0.7;
  border-radius: 100px;
  z-index: 3;
  transition: all 500ms ease-in;
  animation: logoAppear 4s linear;
}
.logo:hover {
  opacity: 1;
  transform: rotate(1800deg);
}
.logo-div {
  z-index: 2;
}
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 5rem 2rem;
  background-color: white;
  color: rgb(29, 25, 25);
  font-size: 2rem;
  font-style: italic;
  }
.about h3 {
  margin-bottom: 2rem;
}
p {
  opacity: 0.7;
}
p:hover {
  opacity: 1;
}
.presentation-img{
  width:80%;
  margin: 2rem auto;
  border-radius: 15px;
  }
.nav-bar {  
  width: 100vw;  
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left:50%;
  transform: translateX(50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  font-weight: 500;
  font-size: 1.5rem;
  z-index: 20;  
  transform: translateX(-50%);
}
.btn-nav {
  display: block;  
}
.links-list {
  background-color: white;
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 15rem;
  padding: 1rem;
  top: 5rem;
  right:0;
  left:0;  
  border-radius: 5px;
  list-style: none;
  align-items: center;
  z-index: 5;
  animation: none;
  gap: 2rem;
  transition: all 0.5s;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.open-nav .links-list {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.open-nav .icon-nav[name="close-outline"] {
  display: block;
}
.open-nav .icon-nav[name="menu-outline"] {
  display: none;
}
.nav-link {
  border: none;
  margin: 0;
  display: block;
  padding: 0 auto;
  color: currentcolor;
  font-size: 1.2rem;
  text-decoration: none;
}
.nav-link:focus,
.nav-link:hover {
  color: #df4a30;
  border: none;
}
.nav-link:hover {
  color: #df4a30;
  border: none;
}
.orders-button{  
  padding:0.7rem;
  font-size: 1.5rem;
  color:rgb(243, 238, 196);
  border-radius: 10px;
  width: 10rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  z-index: 25;
}
.orders-button:hover{
  background-color: #fff;
  color: rgb(241, 9, 9);
}
.motto,
.quote{
  color:#fff;
  font-size: 1.5rem;
  text-align: center;
}
.carousel {
  background: transparent;  
  position: relative;
  display:flex;
  justify-content:stretch;
  width: 1420rem;
  height: 10rem;  
}
.images {
  position: absolute;
  display: flex;
  justify-content: space-between;
  height: 85%; 
  left: 0;
  bottom: 0;
  gap: 5rem;
  margin: 0;
  z-index: 19;  
}
.images div{
height:100%;
width:10rem;
margin-left:5rem;
}
.images img{
 max-width:10rem;
height:100%;
}
.first {
  animation: primary 80s linear infinite;
}
.second {
  animation: secondary 80s linear infinite; 
}
@keyframes primary {
  0%{transform:translateX(0)}
  100% { 
    transform:translateX(-100%)    
  }
}
@keyframes secondary {
  0%{    
    transform:translateX(100%)
  }
  100% { transform:translateX(0); 
}
}
.car-parts {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  ;
}
.car-parts img {
  max-width: 80%;
  border-radius: 15px;
  margin-bottom: 1rem;
  transition: all 1s
}
.batteries{
  display: flex; 
  justify-content: center;
}
.batteries img{
  width: 60%;
}
.bat2{
  transform: translate(3rem, -3rem);
}
.bat3{
  transform: translate(-3rem, -10rem);
}
.batteries div{
  transform: translateY(-7rem)
}
.speedometer{
  color: black;
  font-size: 1.7rem;
}
.contact {
  background: linear-gradient(0deg, hsla(0, 1%, 56%, 1) 47%, hsla(210, 27%, 96%, 1) 100%);
}
.contact-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 15rem;
  margin-bottom: 2rem;
  gap: 1rem;
  font-size: 1.3rem;
  padding: 2rem;
  text-align: center;
}
.contact-data {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact a {
  color: black;
  text-decoration: none;
  margin-right: 1rem;
  font-size: 1.7rem;
}
.contact a:hover {
  color: white;
}
h1 {
  color: red;
  font-size: 2.5rem;
}
.chat { 
  max-width: 80%;
  font-size: 1.5rem;
  color: black;
  margin:2rem auto;  
  background: transparent;
  padding: 1rem;
  cursor: pointer;
}
.chat-form {
  display: flex;
  flex-direction: column;
  gap:0.5rem;
  margin-top: 1rem;
  border: 2px solid black;
  border-radius: 15px;
  padding: 1rem;
}
.chat-form label{
  padding-top: 0.5rem;
}
.chat-form input{
  height: 1.7rem;
}
#conversation {
  min-height: 7rem;
  max-width: 100%;
  padding: 1rem; 
}
.btn-send{
border-radius: 5px;
background-color: #2c2b2b;
color: white;
height: 2rem;
font-size: 1.2rem;
}
.btn-send:hover{
  background-color: white;
  color: black;
}
iframe{
  max-width: 90%;
 height:auto;
}
footer{
  background-color: black;
  color: white;
  font-size: 1rem;
  padding: 2rem;
  text-align: center;
  min-height: 5rem;
}
footer .social-media a {
  color:white;
  text-decoration: none;
  font-size: 1.5rem;
  margin-right: 0.7rem;
  margin-left: 0.2rem;
  padding-top: 1rem;
}
.fa{
transition:all 0.3s;
}
.fa:hover{
transform:translateY(-0.2rem);
}
.btn-nav {
  cursor: pointer;
  opacity: 0.8;
z-index: 199;
}
.icon-nav {
  height: 4rem;
  width: 4rem;
  color: #5c4c1d;
}
.icon-nav[name="close-outline"] {
  display: none;
}
.confirm-message{
  width: 25rem;
  height: 20rem;
  position: absolute;
  top:5rem;
  text-align: center;
  left:50%;
  right:50%;
  transform: translateX(-50%);
font-size: 2rem;
color: white;
padding: 1rem;
border: 2px solid white;
background-color: black;
border-radius: 15px;
}
.confirm-message div{
  margin-top: 3rem;
}
.scroll{
  transition: all 1s;
}
.scrolled{
  animation: raise 1s;
}
@keyframes raise{
from{
  transform: translateY(7rem);
  opacity:-1;
}
to{
  transform: translateY(0);
  opacity:1;
}
}
@keyframes logoAppear {
  0% {   
    border-radius: 0;    
    opacity:1;
  } 
  100% {
    border-radius: 100px;
  }
}
@media (min-width: 600px) {
  .menu-wrapper,
  .menu-elements {
    flex-direction: row;
    gap: 1rem;
  }
  .motto {
    margin-top: 3rem;
  }
  .btn-nav {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
  }
  .links-list {
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    position: static;
    gap: 2rem;
    list-style: none;
    opacity: 0.9;
    pointer-events: auto;
    visibility: visible;
    justify-content: flex-end;
    width: auto;
    height: auto;
    padding: 0;
  }
  .nav-link {
    text-decoration: none;
    color: rgb(243, 238, 196);
    padding: 0.5rem;
    position: relative;
  }
  .contact-data {
    flex-direction: row;
    align-items: center;
  }
}
@media (min-width: 1000px) {
  .twin-images {
    display:flex;
    flex-direction: row;
  flex-wrap: nowrap;
  width: fit-content;
  padding: 3rem 0;
  align-items: center;
  }
  .car-parts {   
    flex: 1;
  flex-basis: 50%;
  }
  .batteries{
    flex-direction: row;
    justify-content: space-around;
    margin-top: 3rem;
  }
  .batteries img{
    max-width: 25%;
  }
  .bat2{
    transform: translate(-5rem, -7rem);
  }
  .bat3{
    transform: translate(-10rem, 4rem);
  }
  .commander{
    display:flex;
    flex-direction: row-reverse;
    padding: 2rem;
  }
  iframe{   
    height: inherit;
  }
}
@media(min-width:1200px){
  .nav-bar{
    width: 1200px;
  }
}