* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* SECTION HOME */

.home {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  z-index: -1;
  margin-top: -30px;
  background-color: rgb(255, 255, 255);
}

.home img {
  width: 100%;
  /* height: 223px; */
}

.home h2 {
  font-family: "poppins", sans-serif;
  font-size: 32px;
  color: rgb(24, 24, 24);
  z-index: 1;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 600;
}

.home p {
  text-align: center;
  font-size: 16px;
}

.home .btn-home {
  z-index: 1;
  text-decoration: none;
  color: whitesmoke;
  font-family: "poppins", sans-serif;
  font-size: 14px;
  background-color: rgb(24, 24, 24);
  padding: 12px 20px;
  border-radius: 50px;
  margin-top: 10px;
}

/* NAVBAR */

.navbar nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.navbar .logo {
  width: 48px;
  height: 39px;
  position: absolute;
  top: 10px;
  left: 16px;
  display: flex;
  z-index: 1;
  background-color: red;
  padding: 4px;
}

.menu-btn {
  color: black;
  font-size: 26px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
}

.nav-links {
  display: flex;
  gap: 40px;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  margin-top: -10px;
  transition: all 1s;
  background: whitesmoke;
  width: 100%;
  height: 100vh;
  position: absolute;
}

.nav-links .search {
  color: rgb(0, 0, 0);
  font-family: "poppins", sans-serif;
  border: 1px solid rgb(0, 0, 0);
  padding: 12px;
  font-size: 18px;
  border-radius: 12px;
  margin-right: 18px;
  margin-top: -140px;
}

.hidden {
  margin-top: -900px;
}

.nav-links li a {
  color: black;
  text-decoration: none;
  font-family: "poppins", sans-serif;
  font-size: 16px;
  margin-left: 10px;
}

/* CARS SECTION */

.cars {
  width: 100%;
  height: 500px;
}

.cars h3 {
  font-family: "poppins", sans-serif;
  text-align: center;
  font-size: 42px;
  background-color: white;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -50px;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.line {
  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.322);
}

.cars p {
  font-family: "poppins", sans-serif;
  font-size: 14px;
  text-align: center;
  margin: 10px 20px;
}

/* SECTION BEST_SELLER */

.best-seller {
  width: 100%;
  height: 100vh;
  margin-top: -50px;
}

.container-shop {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  overflow-y: scroll;
}

.shop {
  width: 42%;
  height: 42vh;
  /* background-color: red; */
  margin: 12px 12px;
}

.shop img {
  width: 100%;
}

.shop h5 {
  text-align: center;
  font-family: "poppins", sans-serif;
}

.shop h6 {
  text-align: center;
  font-family: "poppins", sans-serif;
}

.shop p {
  text-align: center;
  font-family: "poppins", sans-serif;
  font-size: 12px;
  margin: 10px 10px;
}

.title {
  font-family: "poppins", sans-serif;
  text-align: center;
  background-color: rgb(110, 110, 110);
  padding: 20px;
  color: whitesmoke;
  display: flex;
  justify-content: center;
  margin: 12px auto;
}

.btn-see {
  text-decoration: none;
  text-align: center;
  background-color: rgb(110, 110, 110);
  padding: 8px 20px;
  color: whitesmoke;
  border-radius: 50px;
  margin-bottom: -10px;
}

/* SPORT SECTION */

.sport-cars {
  width: 100%;
  height: 100vh;
  margin-top: 160px;
}

.container-supra h1 {
  font-family: "poppins", sans-serif;
  text-align: center;
  font-weight: 600;
  font-size: 32px;
}

.sport-cars .line {
  width: 40%;
  margin: 12px auto;
}

.caption-supra {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caption-supra h2 {
  margin-top: 20px;
  font-family: "poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  border: 2px solid #6d6d6d;
  padding: 10px;
  box-shadow: -1px 10px 5px -8px rgba(0, 0, 0, 0.75);
  background-color: #eaeaea;
  border-radius: 6px;
}

.caption-supra p {
  text-align: left;
  margin-left: 16px;
}

.caption-supra a {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 50px;
  background-color: rgb(110, 110, 110);
  color: whitesmoke;
  margin-bottom: 20px;
}

/* ABOUT SECTION */

.about-toyota {
  width: 100%;
  height: 70vh;
  display: flex;
  background-image: url(images/nature.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
}

.container-about {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container-about .about-img {
  width: 100%;
  height: auto;
  position: relative;
  top: 70%;
  filter: brightness(70%);
}

.container-about .line-y {
  position: absolute;
  width: 2px;
  height: 46px;
  position: absolute;
  background-color: rgb(255, 255, 255);
  display: block;
  margin-top: 16px;
  margin-left: 36px;
}

.container-about .about-logo {
  width: 48px;
  height: 39px;
  position: absolute;
  background-color: red;
  display: block;
  left: 40%;
  margin-top: 18px;
  padding: 4px;
}

.container-about p {
  text-align: left;
  color: whitesmoke;
  position: relative;
  top: -14%;
  letter-spacing: 2px;
  font-family: "poppins", sans-serif;
  font-weight: 300;
  margin-left: 14px;
  margin-top: 6px;
}

.container-about h2 {
  text-align: left;
  color: whitesmoke;
  position: relative;
  top: -14%;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 12px;
  line-height: 40px;
  margin-top: 30px;
}

.container-about h3 {
  position: absolute;
  display: block;
  left: 57%;
  margin-top: 22px;
  color: whitesmoke;
  font-family: "poppins", sans-serif;
  opacity: 80%;
}

/* FOOTER */

footer {
  width: 100%;
  height: auto;
  background-color: #eaeaea;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
}

.sosmed-icon {
  justify-content: center;
  display: flex;
  box-sizing: border-box;
}

footer h3 {
  text-align: center;
  padding-top: 30px;
}

.sosmed-icon img {
  width: 46px;
  height: 46px;
  margin: 10px 8px;
  border: 1px solid black;
  padding: 4px;
  border-radius: 50%;
  position: relative;
}

.toyota-list {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.toyota-list ul {
  list-style: none;
}

.toyota-list ul li h2 {
  font-family: "poppins", sans-serif;
  font-weight: 600;
  font-size: 28px;
}

.toyota-list ul li p {
  font-family: "poppins", sans-serif;
  font-size: 14px;
  margin-top: -6px;
  margin-right: 10px;
  text-align: left;
}

.copyright {
  margin-left: 30px;
  display: flex;
}

.copyright .toyota {
  width: 38px;
  height: 29px;
  background-color: red;
  margin-left: 8px;
  padding: 2px;
}

.copyright h6 {
  font-size: 14px;
  margin-top: 6px;
  font-weight: 700;
  font-family: "poppins", sans-serif;
}

.line-y {
  width: 1px;
  height: 50px;
  background-color: rgb(0, 0, 0);
  margin-left: 10px;
}

.container-flag .flag {
  width: 42px;
  height: 28px;
  margin-left: 12px;
}

.container-flag p {
  font-family: "poppins", sans-serif;
  font-size: 12px;
  margin-left: 12px;
  margin-top: 6px;
}

.credit h2 {
  margin-top: 32px;
  margin-left: 14px;
}

.credit p {
  font-size: 12px;
  font-family: "poppins", sans-serif;
  margin-left: 12px;
  text-align: left;
}

.end {
  display: flex;
  justify-content: space-between;
  width: 300px;
  margin: 20px auto;
}

.end .line-y {
  width: 1px;
  height: 26px;
}

/* DEKSTOP */

@media only screen and (min-width: 768px) {
  .home img {
    width: 50%;
  }

  .home h2 {
    font-size: 52px;
  }

  .home p {
    font-size: 18px;
  }
  /* NAVBAR */

  .menu-btn {
    display: none;
  }

  .navbar nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: right;
    height: 30px;
    top: 0;
    left: 0;
    color: black;
  }

  .nav-links {
    margin-top: 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: none;
    width: 70%;
    height: 60px;
    position: static;
    margin-right: 12px;
  }

  .nav-links .search {
    margin-top: 10px;
    padding: 4px 20px;
  }

  .nav-links li a {
    color: black;
    text-decoration: none;
    font-family: "poppins", sans-serif;
    font-size: 16px;
    margin-left: 10px;
  }

  .nav-links li a:hover {
    color: rgb(51, 51, 51);
    text-decoration: underline;
  }

  /* CARS SECTION */

  .cars {
    margin-top: 20px;
  }

  .line {
    width: 50%;
    margin: auto;
  }

  /* BEST SELLER */
  .best-seller {
    margin-top: 25rem;
  }

  .container-shop {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    /* overflow-y: scroll; */
    /* overflow-x: hidden; */
    /* background-color: blue; */
  }

  .shop {
    width: 42%;
    height: 42vh;
    margin: 50px 12px;
    /* background-color: red; */
  }

  .shop h5 {
    font-size: 30px;
  }

  .shop h6 {
    font-size: 24px;
  }

  .shop p {
    font-size: 16px;
  }

  .btn-see {
    text-decoration: none;
    text-align: center;
    background-color: rgb(110, 110, 110);
    color: whitesmoke;
    border-radius: 50px;
    height: 100px;
  }

  /* SPORT SECTION */

  .sport-cars {
    margin-bottom: 40rem;
  }

  .sport-cars h1 {
    font-size: 60px;
  }

  .container-supra {
    margin-bottom: 38px;
  }

  .caption-supra {
    width: 90%;
    height: auto;
    background-color: #dbdbdb;
    border-radius: 10px;
    margin: 20px auto;
  }

  .caption-supra h2 {
    font-size: 40px;
    font-weight: 600;
    margin-top: 40px;
    transition: all 500ms;
    box-shadow: none;
    cursor: pointer;
  }

  .caption-supra h2:hover {
    transform: translateY(-10px);
    box-shadow: -1px 10px 5px -4px rgba(0, 0, 0, 0.75);
    background-color: #d8d8d8;
  }

  .caption-supra p {
    text-align: center;
    margin: 28px 0;
  }

  .caption-supra a {
    transition: all 500ms;
  }

  .caption-supra a:hover {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 50px;
    background-color: rgb(48, 48, 48);
    color: whitesmoke;
  }

  /* ABOUT SECTION */

  .about-toyota {
    width: 50%;
    height: 100vh;
    margin: 50rem auto;
  }

  .container-about .line-y {
    display: block;
    margin-left: 0;
  }

  .container-about .about-logo {
    position: absolute;
    left: 46%;
  }

  .container-about h3 {
    position: absolute;
    left: 50%;
    margin-left: 8px;
  }

  footer {
    margin-top: -40rem;
  }

  .sosmed-icon {
    justify-content: right;
    margin-right: 30px;
  }

  footer h3 {
    text-align: left;
    margin-left: 30px;
  }

  .sosmed-icon img {
    width: 56px;
    height: 56px;
    border: 2px solid black;
    cursor: pointer;
  }

  .sosmed-icon img:hover {
    border: 3px solid black;
  }

  .toyota-list ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
  }

  .toyota-list ul h2 {
    text-align: center;
  }

  .toyota-list ul li p {
    text-align: center;
  }

  .credit h2 {
    text-align: center;
  }

  .credit p {
    text-align: center;
  }
}
