@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-snap-type: y mandatory;
}

body {
  overflow-x: hidden;
}

video,
.img-tesla {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  object-fit: cover;
  filter: brightness(60%);
}

.logo {
  filter: brightness(100);
  position: fixed;
  width: 120px;
}

.item {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  position: relative;
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
}

h1 {
  color: white;
  font-size: 50px;
}

.sub-titulo {
  color: white;
}

.info-carro {
  margin-top: 80px;
  text-align: center;
}

.rodape {
  text-align: center;
}

button {
  background-color: rgba(34, 34, 34, 0.8);
  color: white;
  padding: 7px 80px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.test-drive {
  color: black;
  background-color: white;
}

.texto-rodape {
  color: white;
  font-size: 12px;
  margin-top: 10px;
}

.formulario-drive,
.formulario-buy {
  position: fixed;
  top: 40px;
  width: 600px;
  height: 100%;
  z-index: 3;
  transition: 1s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.formulario-drive {
  right: -50%;
  transform: translateX(50%);
}

.formulario-buy {
  left: -50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 500px) {
  .formulario-drive,
  .formulario-buy {
    width: 400px;
  }

  .formulario-drive {
    right: -90%;
    transform: translateX(50%);
  }

  .formulario-buy {
    left: -90%;
    transform: translateX(-50%);
  }
}
