@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Racing+Sans+One&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Üldine */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Keha */
body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eeeeee;
}

/* Padding kõigi lehtede jaoks navbari all välja arvatud avaleht */
body:not(#home) {
  padding-top: 72px;
}

/* Number tekst (1/6) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  color: white;
  background: linear-gradient(rgba(34, 40, 49, 1), rgba(57, 62, 70, 0.7));
}

/* Logo */
.navbar .logo {
  font-family: "Racing Sans One", sans-serif;
  font-size: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo i {
  color: #00adb5;
}

/* Pealkiri */
.heading1 {
  font-family: "Racing Sans One", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  color: #fff;
  padding: 10px;
}

/* Põhiline pealkiri */
.main_header {
  font-family: "Racing Sans One", sans-serif;
  text-align: center;
  font-weight: 400;
  font-size: 3rem;
  color: #333;
  padding: 10px;
}

/* Menüü */
.menu {
  display: none;
}

/* Nav lingid */
.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #eeeeee;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Nav kriipsud */
.nav-links a:hover,
.nav-links a.active {
  color: #00adb5;
  border-bottom: 2px solid #00adb5;
  transition: 0.5s;
}

/* Homepage */

/* Background */
#showcase {
  background: url("img/gif/fzcB.gif") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Intro tekst ja taust */
#showcase .intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  margin: auto;
}

#showcase .intro-text p {
  font-family: "Rambla", sans-serif;
  font-weight: bold;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  margin: 20px;
}

/* Button */
.button {
  font-family: "Racing Sans One", sans-serif;
  font-size: 1.5rem;
  display: flex;
  flex-direction: row;
  background-color: #00adb5;
  color: rgb(0, 0, 0);
  padding: 10px 30px;
  border-radius: 30px;
  text-decoration: none;
  margin: 10px;
}

.button:hover {
  background-color: rgba(34, 40, 49, 0.8);
  color: white;
}

/* Tuuning leht */
/* Intro tekst */
.intro-tuning {
  text-align: center;
  font-family: "Rambla", sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
}

/* auto sektsioon */
.car-section {
  font-family: "Rambla", sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
  border-radius: 20px;
  margin-top: 1%;
  display: flex;
  align-items: center;
  justify-content: space-between; 
}

/* pildi stiil */
.car-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 700px;
  height: auto;
  padding: 10px;
}

/* auto nimi */
.car-name {
  font-family: "Playfair Display", sans-serif;
  font-size: 3rem;
  color: #333;
  padding: 10px;
}

/* auto info */
.car-info {
  font-family: "Rambla", sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
  padding: 10px;

}

/* auto halloffame */
.car-halloffame {
  font-family: "Rambla", sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
  padding: 2rem;
  margin: 40px;
  text-align: center;
  width: 80%;
  height: 50%;
  background-color: #00acb536;
  border-radius: 20px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
}

/* põhi tekst */
.maintext {
  text-align: start;
  font-weight: normal;
  padding: 1%;
}

/* Video */
.vid {
  max-width: 800px;
  margin: 20px;
  margin-top: 40px;
  text-align: start;
}

.vid iframe {
  width: 800px;
  height: 450px;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
}

/* Eraldusjoon */
.separator-line {
  height: 4px;
  margin: 20px 0;
  background: linear-gradient(90deg, red, #b500a6, #00adb5);  background-size: 200% 100%;
  animation: glow 3s ease-in-out infinite alternate;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), 0 0 15px rgba(181, 0, 166, 0.5), 0 0 15px rgba(0, 173, 181, 0.5);
}

@keyframes glow {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/* Hamburger menüü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 4px;
  width: 25px;
  background: #fff;
  margin: 4px;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Hamburger menüü */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #eeeeee;
}

.container {
  width: 90%;
  max-width: 1100px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Kontakt vorm */
/* Kontakt vormi joondamine keskele */
.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-form,
.map-container {
  flex: 1 1 300px;
  min-width: 250px;
}

.contact-form label {
  font-weight: bold;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.contact-form label i {
  color: #00adb5;
  margin-right: 8px;
}

.contact-form button i {
  margin-right: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  background-color: #00adb5;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #393e46;
}

.map-container h2 {
  margin-bottom: 10px;
}

/* Kaart */
#map {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 30px;
  display: flex;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-container {
  width: 100%;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

#map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  /* Space between map and GIF */
}

/* Gif kontakt vormis */
.gif-container {
  padding: 10px 0;
  text-align: center;
}

.gif-container img {
  width: auto;
  /* Maintain aspect ratio */
  max-width: 100%;
  /* Fit within container width */
  height: auto;
  border-radius: 10px;
  opacity: 0.9;
}



/* Jalus */
.footer {
  background-color: #222831;
  color: #eeeeee;
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer .social-icons a {
  color: #eeeeee;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #00adb5;
  transition: background-color 0.3s;
  text-decoration: none;
}

.footer .social-icons a:hover {
  background-color: #393e46;
}

.footer .copyright {
  font-size: 0.9rem;
  color: #bbbbbb;
  margin-top: 10px;
}

/* Hall of Fame Carousel Styling */

/* Carousel Styles */
.carousel-container {
  position: relative;
  max-width: 80%;
  margin: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-carousel {
  position: relative;
  width: auto;
  height: 450px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
}

/* Pildid */
.mySlides {
  height: fit-content;
  display: none;
  position: relative;
}

.numbertext {
  position: absolute;
  top: 8px;
  left: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 3px;
}

/* Nupp "järgmine" paremale */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Järgmine ja eelmine nupud */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 15px;
  color: white;
  font-size: 20px;
  border-radius: 10%;
  background-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Väikeste piltide container */
.thumbnail-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.thumbnail-container .demo {
  width: 60px;
  height: 40px;
  margin: 0 5px;
  opacity: 0.6;
  cursor: pointer;
}

.thumbnail-container .demo:hover,
.demo.active {
  opacity: 1;
  border: 2px solid #333;
}


/* Pildid */
.mySlides img {
  width: 720px;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  min-width: 400px;
  min-height: 400px;
  display: block;
}

/* Thumbnail Container */
.thumbnail-container {
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

.thumbnail-container img {
  width: 90px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: opacity 0.3s, border-color 0.3s;
}

.thumbnail-container img.active,
.thumbnail-container img:hover {
  opacity: 1;
  border-color: #00adb5;
}

/* Auto info sektsioon */
.car-info {
  text-align: center;
}

/* Keskmised ekraanid - tabletid ja väikesed sülearvutid */
@media (max-width: 1000px) {
  .car-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 50px;
  }

  /* Auto Pildid */
  .car-image,
  .main-carousel {
    width: 100%;
  }

  /* Auto info stiilimine */
  .car-info {
    text-align: center;
    padding: 10px;
  }

  /* Main carousel pildi stiilimine */
  .main-carousel {
    position: relative;
    width: auto;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
  }

  .mySlides img {
    width: 700px;
    height: 400px;
    max-height: 100%;
    object-fit: cover;
    margin: auto;
    min-width: auto;
    min-height: 400px;
    display: block;
  }

  /* Video */
  .vid {
    width: 700px; /* Match carousel width */
    height: 400px; /* Match carousel height */
    margin: 0 auto; /* Center the video */
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
  }
  
  /* Video iframe styling */
  .vid iframe {
    width: 100%; 
    height: 100%;
    object-fit: cover;
  }
}

/* Telefoni stiil */
@media (max-width: 700px) {

  /* Navigation bar */
  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background: linear-gradient(rgba(34, 40, 49, 1), rgba(238, 238, 238, 0.9));
    background-color: rgba(0, 0, 0, 0);
    flex-direction: column;
    align-items: center;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
    z-index: 10;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  /* Näita nav kui active */
  .nav-active {
    transform: translateX(0);
  }

  .hamburger.toggle {
    z-index: 10;
  }

  .menu {
    display: flex;
    font-family: "Racing Sans One", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    color: #fff;
    padding: 15px;
  }

  /* Animeeri hamburgeri ikooni */
  .hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.toggle span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
  }

  /* Main Carousel Image Styling */
  .carousel-container {
    width: 100%;
    max-width: 100%;
  }

  .main-carousel {
    position: relative;
    width: auto;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
  }

  /* Auto informatsiooni sektsioon */
  .car-halloffame {
    padding: 10px;
    padding-bottom: 30px;
    font-size: 1rem;
    text-align: center;
  }

  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
  }

  /* Väikese pildi stiilimine */
  .thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .thumbnail-container img {
    width: 60px;
    height: auto;
  }

  /* Avalehe nupp */
  .button {
    font-family: "Racing Sans One", sans-serif;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    background-color: #00adb5;
    color: black;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin: 10px;
  }

  /* Video */
  .vid {
    width: 100%;
    max-width: 80%;
    margin: 20px auto;
    text-align: center;
  }

  .vid iframe {
    max-width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
  }

}