@font-face {
    font-family: 'Inter';
    src: url('website/Inter/Inter-VariableFont_slnt,wght.ttf'), format(ttf);
}

body, html{
    font-size: 1.3vw;
    align-items: center;
    justify-content: center;
    background-color: #166F00;
    overflow-x: hidden;

}

.navbar {
    background-image: linear-gradient(to right, #1D8F00 , #166F00);    
    text-align: right;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 9.1vh;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
}



.navbar-item a{
    text-decoration: none;
    color: #B1FFB9;
    font-family: 'Inter';
    padding: 1.3vw;
    
}

.navbar-logo img{
    left: 0;
    height: 5vh; 
    width: auto;
    margin-inline-start: 1.3vw;
    padding-right: 62vw;
}

@media (width <= 700px){
  .body .html {
    background-color: white;
  }
  .navbar {
    justify-content: center;
    height: 9.1vh;

  }
  .navbar-logo img {
    height: 25px;
    padding-right: 3vw;
    left: 10vw;
    padding-top: 0.75vh;
    transform: scale(1.2);
    padding-left: 2vw;
  }

  .navbar-item a{
    font-size: 17px;
    padding-top: 1vh;
  }

  .navbar-item:last-child {
    font-size: 17px;
  }

  
}

.navbar-item a:hover{
    color: white;
}

.navbar-item:last-child {
    padding-inline-start: 0.65vw;
    padding-inline-end: 1.3vw; /* Add margin to the last navbar item */
}

.video {
    position: absolute;
    display: flex;
    top: 9.1vh; /* Height of the navbar */
    left: 0;
    width: 100vw; /* Set the width of the video to 100% of the viewport width */
    height: 80vh; /* Set the height of the video to fill the remaining viewport height */
    overflow: hidden; /* Hide any overflow content */
    padding-right: 1vw;

}

.video video {
    position: absolute;
    width: 100%; /* Ensure the video fills the container */
    height: 80%; /* Ensure the video fills the container */
    display: block; /* Ensure proper display */
    z-index: -2; /* Move the video behind the overlay */
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.65); /* Semi-transparent black overlay */
    z-index: -1;
}

.video-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%; /* Ensure the text container spans the entire width of the video */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    justify-content: center;
    align-items: center;
    font-family: 'Inter';
}


.video-text h1 {
    font-size: 2.5em; /* Adjust the font size as needed */
    margin: 0;
    padding: 0;
    font-family: 'Inter';
}

.video-text p {
    font-size: 1em;
}

.video-text button {
    font-family: 'Inter';
    background-color: #125C00;
    color: #B1FFB9;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 20px;
}

.video-text button:hover {
    color: white;
    background-color: #0d3f00
}

@media (width <= 700px) {
  .video-text h1{
    font-size: 35px;
  }

  .video-text p {
    font-size: 20px;
  }

  
}

.testimonials {
    position: absolute;
    top: 73vh; 
    left: 0;
    width: 100vw; 
    height: 30vh; 
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-items: center;
    padding-right: 1.05vw;
    z-index: 2;
}

.testimonials h1 {
    color:#0d3f00;
    width: 100vw;
    align-items: center;
    font-family: 'Inter';
    text-align: center;
    margin-top: 4vh;
    margin-bottom: 3vh;
}

.testimonials .testimonial-track {
  animation: scroll 43s linear infinite;
  display: flex;
  width: calc(300px * 10 * 2); /* Assuming 10 slides and 2 tracks */
  margin-top: -6vh;
  margin-bottom: 2vh;
}

.testimonials .testimonial-track .slide {
  width: 300px; /* Width of each slide */
  height: 200px; /* Height of each slide */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Ensure content doesn't overflow */
  transform: scale(0.4);
  margin-inline: -25px;
}

.slider img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensures the image scales down to fit the container without cropping */
  
}

@keyframes scroll {
    0%{
        transform: translateX(0);
    
    }
    100% {
        transform: translateX(calc(-250px * 10));
    }
}

@media (width <= 700px) {
  .testimonials h1 {
    font-size: 25px;
    margin-top: 4vh;
    margin-bottom: 2vh;
  }
  .testimonials {
    height: 25vh;
  }

  .testimonials .testimonial-track {
    animation: scroll 70s linear infinite;
    display: flex;
    width: calc(300px * 10 * 2); /* Assuming 10 slides and 2 tracks */
    margin-top: -4vh;
    margin-bottom: 3vh;
  }
  .testimonials .testimonial-track .slide {
    width: 300px; /* Width of each slide */
    height: 200px; /* Height of each slide */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    transform: scale(0.35);
    margin-inline: -70px;
  }
}




.slider-wrapper h2{
    text-align: center;
    font-family: 'Inter';
    color: #F7FFF7;
    margin-top: 10vh;
    font-size: 3em;
    margin-bottom: 5vh;
    
}

#slider-section {
    position: absolute;
    left: 0;
    padding-right: 1.05vw;
    top: 98vh;
    width: 100vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f4b00;
    overflow: -moz-hidden-unscrollable;
  }
  
  .container {
    width: 1600px;
    margin: 0;
  }
  
  .subcontainer {
    width: 85%;
    margin: auto;
  }
  
  .slider-wrapper{
    position: relative;
  }
  
  .previous,
  .next {
    padding: 2px;
    width: 30px;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    transition: 0.7s ease-in-out;
    border: 3px solid white;
    background-color: white;
    box-shadow: 0 0 5px #bbb;
    position: absolute;
    top: 50%;
  }
  
  .previous {
    left: -5%;
  }
  
  .next {
    right: -5%;
  }
  
  .previous:hover,
  .next:hover {
    border: 3px solid #0f4b00;
  }
  
  #controls i {
    color: #0f4b00;
    font-size: 18px;
  }
  
  .tns-nav {
    text-align: right;
  }
  
  .tns-nav button {
    border: none;
    padding: 8px;
    border-radius: 50%;
    background-color: white;
    margin-left: 15px;
  }
  
  .tns-nav .tns-nav-active {
    background-color: gray;
  }
  
  /* DYNAMIC HTML */
  
  .slide{
    width: auto;
    height: fit-content;
    text-align: center;
  }
  
  .slide img {
    width: 100%;
    height: 275px;
  }
  
  @media(max-width:1600px) {
    .container {
      width: 100%;
    }
  }

  .car-info {
    margin-top: 10px;
  }
  
  .car-model {
    font-family: 'Inter';
    font-size: 1.2em;
    font-weight: 400;
    color: #F7FFF7;
  }
  
  .car-type {
    font-size: 1em;
    color: #777;
    font-family: 'Inter';
    display: none;

  }

  @media (width <= 700px) {
    .slider-wrapper h2 {
      margin-top: 2vh;
    }

    #slider-section {
      position: absolute;
      left: 0;
      padding-right: 1.05vw;
      top: 98vh;
      width: 100vw;
      height: 65vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #0f4b00;
      overflow: -moz-hidden-unscrollable;
    }

    .slider-wrapper h2{
      text-align: center;
      font-family: 'Inter';
      color: #F7FFF7;
      font-size: 25px;
      
    }

    .tns-nav {
      text-align: right;
    }
    
    .tns-nav button {
      border: none;
      padding: 8px;
      border-radius: 50%;
      background-color: white;
      margin-left: 15px;
      margin-bottom: 10px;
    }
    
    .tns-nav .tns-nav-active {
      background-color: gray;
    }

    .slide{
      width: auto;
      height: fit-content;
      text-align: center;
    }

    .subcontainer {
      width: 85%;
      margin: auto;
    }

    .container {
      width: 100vw;
      margin: auto;
      top: 100vh;
    }

    .car-model {
      font-family: 'Inter';
      font-size: 20px;
      font-weight: 400;
      color: #F7FFF7;
    }
    
    .car-type {
      font-size: 1em;
      color: #777;
      font-family: 'Inter';
  
    }

    
      
    }

  .about-us{
    position: absolute;
    top: 188vh;
    display: flex;
    flex-direction: row;
    background-color: white;
    width: 100vw;
    height: 90vh;
    left: 0;
    font-family: 'Inter';
    justify-content: center;
    align-items: center;
    overflow: hidden;
    right: 0;
    padding-right: 1.05vw;
  }

  .left, .right{
    margin: 5vw;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 2.5vw;
  }

  .left img{
    width: 50vw;
    height: auto;
  }

  .left-text {
    margin-top: 10vh;
    display: flex;
    flex-direction: row;
    font-weight: bold;
    font-size: 2.5em;
  }

  .left-text p {
    padding-inline: 0.5vw;
  }

  .left-text .blue {
    color: blue
  }

  .right .writing{
    margin-top: -2.5vh;
    color: #F10100;
  }

  @media (width <= 700px) {
    .about-us{
      top: 163vh;
      height: 50vh;
      position: absolute;
      display: flex;
      flex-direction: column;
      background-color: white;
      width: 100vw;
      left: 0;
      font-family: 'Inter';
      justify-content: center;
      align-items: center;
      overflow: hidden;
      right: 0;
      padding-right: 1.05vw;
    }
    .right .writing {
      font-size: 20px;
    }
    .left img {
      display: none;
    }
    .left-text {
      font-size: 30px;
      margin-top: 0;

    }
    .right .writing{
      margin-top: 1vh;
      color: #F10100;
    }
    .right .number {
      font-size: 25px;
    }
    .left-text .blue {
      color: black;
    }
    .left {
      margin-bottom: 0;
    }
  }


  .bio{
    position: absolute;
    top: 278vh;
    display: flex;
    flex-direction: column;
    background-color: #0f4b00;
    width: 100vw;
    height: 100vh;
    left: 0;
    font-family: 'Inter';
    justify-content: center;
    align-items: center;
    overflow: hidden;
    right: 0;
    padding-right: 1.05vw;
    align-items: left;
    justify-content: center;
  }

  .bio img {
    width: 7.5%;

  }

  .bio h1 {
    color: #9FFF9D;
    font-weight: 450;

  }

  .bio p {
    text-align: justify;
    width: 70%;
    margin-inline: 2.5vw;
    margin-inline-start: 5%;
    color: #78AA70;
  }

  @media (width <= 700px) {
    .bio {
      top: 213vh;
      height: 70vh;
    }
    .bio img {
      width: 25%;
    }

    .bio h1 {
      font-size: 20px;
      margin-block: 35px;
      margin-inline: 15px;
      text-align: center;
    }
    .bio p {
      width: 85vw;
      font-size: 12.5px;
    }
  }

  .contact-info {
    position: absolute;
    top: 378vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 100vw;
    height: 80vh;
    left: 0;
    font-family: 'Inter';
    justify-content: center;
    align-items: center;
    overflow: hidden;
    right: 0;
    padding-right: 1.05vw;
    align-items: left;
    justify-content: center;
  }

  .email {
    display: flex;
    flex-direction: row;
    font-size: 30px;
    margin-block: 0px;
    margin-inline: 25px;
    left: 10vw;
  }
  .phone-numbers {
    display: flex;
    flex-direction: column;
    font-size: 30px;
    margin-top: 5vh;
    justify-items: center;
    align-items: center;


  }

  .na, .tr .fax .address{
    display: flex;
    flex-direction: row;
    margin-block: 10px;
    justify-items: center;
    align-items: center;

  }

  .big-text {
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 10vh;
    color: #125C00
  }
  
  .phone-numbers .textnr, .email-place {
    margin-right: 5vw;
  }

  .email i {
    align-self: center;
  }

  .phone-numbers i {
    margin-right: 5vw;
  }

  .email a{
    color: black;
    text-decoration: none;
    transition: color 0.2s;
  }

  .email a:hover {
    color: #166F00;
    transition: color 0.2s;
  }

  .number .adres {
    width: 20vw;
    font-size: 20px;
    font-weight: 400;
    text-align: justify;
  }

  .na i {
    margin-right: 28px;
  }

  .usflag {
    margin-right: 27px;
  }

  .last {
    margin-top: 25px;
  }

  @media (width <= 700px) {
    .contact-info {
      top: 283vh;
      height: 50vh;
    }

    .big-text {
      font-size: 35px;
      margin-bottom: 10px;
    }
    .email {
      font-size: 20px;
      margin: 7.5px;
    }
    .phone-numbers {
      font-size: 20px;
      margin-top: 10px;
    }
    .na, .tr .fax .address{
      display: flex;
      flex-direction: row;
      margin-block: 6px;
  }
  .number .adres {
    width: 250px;
  }
}