@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-padding-top: 1rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

/* variables */
:root {
    --main-color: #d90429;
    --text-color: #000000;
    --bg-color: #fff;
}
/* preloader */
.loading-page {
    position: absolute;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    color: #000000;
    z-index: 10000;
  }
  
  .svg {
    height: 250px;
    width: 250px;
    animation: fade 2s ease;
    
  }
  
  @keyframes fade {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

/* Custom Scroll Bar */
html::-webkit-scrollbar {
    width: 0.5rem;
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    border-radius: 5rem;
    background: var(--main-color);
}

section {
    padding: 4rem 0 2rem;
}

img {
    width: 100%;
}

body {
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

header {
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    white-space: nowrap;
}

header.shadow {
    background: var(--text-color);
    box-shadow: 0px 11px 15px #c10929;
    transition: 0.5s ease;
}

header.shadow #menu-icon {
    color: var(--bg-color);
}

header.shadow #search-icon {
    color: var(--bg-color);
}

header.shadow a {
    color: var(--bg-color);
}

.nav {
    max-width: 87%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
}
#menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
    display: none;
}

.logo1 {
    max-width: 150px;
    margin-left: 0px;
    margin-top: 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--main-color);
}

.navbar {
    display: flex;
    column-gap: 2rem;
}

.navbar a {
    color: var(--bg-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}

.nav a:hover,
.navbar .active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#search-icon {
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
}

.search-box {
    position: absolute;
    top: 110%;
    right: 0;
    left: 0;
    background: var(--bg-color);
    box-shadow: 4px 4px 20px rgb(15 45 55 /10%);
    border: 1px solid var(--main-color);
    border-radius: 0.5rem;
    clip-path: circle(0% at 100% 0%);
}

.search-box.active {
    clip-path: circle(144% at 100% 0%);
    transition: 0.4s;
}

.search-box input {
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.home {
    max-width: 1300px;
    margin: auto;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center left;
    position: absolute;
    z-index: 5;
}

* {
    box-sizing: border-box
}


/* Slideshow container */


.slideshowcontainer {
    position: relative;
    width: 100vw;
    height: 80vh;
    background: #000000;
    box-shadow: 4px 4px 20px #ff002b8a;
}

.slideshowcontainer .slide .item {
    width: 170px;
    height: 230px;
    position: absolute;
    top: 35%;
    border-radius: 20px;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
    
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100vw;
    height: 80vh;
    filter: brightness(50%);
    animation-name: fade; 
    animation-duration: 2s; 
}


.slide .item:nth-child(3) {
    box-shadow: 0 0px 30px var(--main-color);
    left: 55%;
    top: 30%;
display: none;
}

.slide .item:nth-child(4) {
    box-shadow: 0 0px 30px var(--main-color);
    left: calc(55% + 190px);
    top: 30%;
    
    display: none;
}

.slide .item:nth-child(5) {
display: none;
    top: 30%;
    box-shadow: 0 0px 30px var(--main-color);
    left: calc(55% + 380px);
} 

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6) {
    box-shadow: 0 0px 30px var(--main-color);
    left: calc(55% + 570px);
    opacity: 0;
    top: 30%;
    visibility: hidden;
    display: none;
}


.slide .item:nth-child(2) .content {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slideshowbutton {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 30px;
    z-index: 50;
}

.slideshowbutton button {
    width: 50px;
    height: 45px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    background-color: var(--main-color);
    color: white;
    transition: 0.3s;
}

.slideshowbutton button:hover {
    background: #ff002b;
    color: #000000;
}


/* Hide the images by default */
.mySlides {
    display: none;
    width: 100%;
}


/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}
/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 2s;
  }
  @keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
  }

.home-text {
    padding-left: 130px;
}

.home-text h1 {
    font-size: 2.4rem;
    color: #fff;
    text-decoration: none;
}

.home-text span {
    color: var(--main-color);
}

.home-text p {
    font-size: 0.938rem;
    font-weight: 300;
    margin: 0.5rem 0 1.2rem;
    color: #fff;
}

.btn {
    padding: 10px 22px;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
}

.btn:hover {
    background: #fd052f;
}

.btn-about {
    padding: 10px 22px;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
}

.btn-about:hover {
    background: #fd052f;
}

.heading {
    text-align: center;
}

.heading span {
    font-weight: 500;
    color: var(--main-color);
}

.heading h2 {
    color: var(--bg-color);
}

.heading p {
    font-size: 0.938rem;
    font-weight: 300;
    color: var(--bg-color);
}

.cars-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 1rem 0;

}

.cars-container .box {
    flex: 1 1 17rem;
    position: relative;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.cars-container .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.cars-container .box img:hover {
    transform: scale(1.1);
    transition: 0.5s;
}

.cars-container .box h2 {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;
    font-weight: 400;
    font-size: 0.6rem;
    background: var(--bg-color);
    padding: 8px;
    border-radius: 0.5rem;
}

.cars-container .box:hover h2 {
    background: var(--main-color);
    color: var(--text-color);
}

.about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 20%;
        text-align: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

.about-img {
    flex: 1 1 21rem;
}

.about-text {
    flex: 1 1 21rem;
}

.about-text span {
    font-size: 40px;
    font-weight: bold;
    color: var(--main-color);
}

.about-text h2 {
    font-size: 1.7rem;
    color: var(--bg-color);
}

.about-text p {
    font-size: 1.3rem;
    margin: 0.5rem 0 1.4rem;
    color: var(--bg-color);
}

.parts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.parts-container .box {
    flex: 1 1 17rem;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #f6f6f6;
    border-radius: 0.5rem;
}

.parts-container .box img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
}

.parts-container .box h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.parts-container .box span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
}

.parts-container .box .bx {
    color: var(--main-color);
    margin: 0.8rem 0;
}

.parts-container .box .btn {
    max-width: 120px;
}

.parts-container .box .details {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 1.8rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.parts-container .box .details:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-text {
    color: var(--main-color);
    text-align: center;
    font-weight: 500;
}

.blog-container .box {
    flex: 1 1 13rem;
    padding: 20px;
}

.blog-container .box:hover {
    background: var(--main-color);
}

.blog-container .box:hover p,
.blog-container .box:hover h3 {
    color: var(--text-color);
}

.blog-container .box span {
    font-size: 0.8rem;
    color: var(--main-color);
}

.blog-container .box:hover span {
    font-size: 0.8rem;
    color: var(--text-color);
}

.blog-container h3 {
    font-size: 1.2rem;
    color: var(--bg-color);
}

.blog-container .box p {
    font-size: 0.938rem;
    margin: 4px 0;
    color: var(--bg-color);
}

.blog-container .box blog-btn {
    display: flex;
    align-items: center;
    column-gap: 4px;
    color: var(--text-color);
}

.blog-container .box .blog-btn .bx {
    font-size: 20px;
}

.blog-container .box .blog-btn:hover {
    color: var(--text-color);
    column-gap: 0.7rem;
    transition: 0.4s;
}

.footer {
    background: var(--text-color);
    color: #f6f6f6;
    border-top: 2px solid var(--main-color);
}

.footer-container {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    max-width: 1660px;
}

.footer-container .logo {
    color: var(--bg-color);
    margin-bottom: 1rem;
}

.footer-container .footer-box {
    display: flex;
    flex-direction: column;
    margin-left: 2%;
}

.social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social a {
    font-size: 24px;
    color: var(--bg-color);
    margin-right: 1rem;
}

.sociala:hover {
    color: var(--main-color);
}

.footer-box h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.footer-box a,
.footer-box p {
    color: #818181;
    margin-bottom: 10px;
}

.footer-box a:hover {
    color: var(--main-color);
}

.copyright {
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
    background: var(--text-color);
}

/* Making Responsive */
@media (max-width:1440px){
    .home {
        min-height: 420px;
        font-size: 20px;
        position: absolute;
        margin-top: 65px;
    }
    .home-text{
        padding-left: 50px;
    }

    .home-text h1 {
        font-size: 30px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 15px;
    }
    .nav {
        padding: 15px 35px;
    }
    .footercontainer{
        justify-content: space-between;
        margin-left: 1%;
    }
    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 80vh;
        background: #000000;
    }
    
    .slideshowcontainer .slide .item {
        width: 170px;
        height: 230px;
        position: absolute;
        top: 35%;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
        
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        top: 0;
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 80vh;
        filter: brightness(50%);
        animation-name: fade; 
        animation-duration: 2s; 

    }
    
    
    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 45%;
        top: 30%;
        display: none;
    
    }
    
    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(45% + 190px);
        top: 30%;
        display: none;
    }
    
    .slide .item:nth-child(5) {
    
        top: 30%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(45% + 380px);
        display: none;
    }
    
    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(45% + 570px);
        opacity: 0;
        top: 30%;
        display: none;
    }
    
    
    .slide .item:nth-child(2) .content {
        display: block;
    }
    
    @keyframes fade {
        from {
            opacity: 0;
        }
    
        to {
            opacity: 1;
        }
    }
    
    
    .slideshowbutton {
        width: 100%;
        text-align: center;
        position: absolute;
        bottom: 30px;
        z-index: 50;
    }
    
    .slideshowbutton button {
        width: 50px;
        height: 45px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        margin: 0 5px;
        background-color: var(--main-color);
        color: white;
        transition: 0.3s;
    }
    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 20%;
        text-align: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-container{
        max-width: 1440px;
    }
    .logo1 {
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }
    .nav{
        max-width: 87%;
    }
    
}
@media (max-width:1024px) {
    .home {
        min-height: 420px;
        font-size: 20px;
        position: absolute;
        margin-top: 30px;
    }
    .home-text{
        padding-left: 35px;
    }

    .home-text h1 {
        font-size: 30px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 15px;
    }

    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 100vh;
        background: #000000;
    }

    .slideshowcontainer .slide .item {
        width:130px;
        height: 180px;
        position: absolute;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 100vh;
        animation-name: fade;
        animation-duration: 2s;
    }

    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 4%;
        top: 62%;
        display: none;

    }

    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(4% + 140px);
        top: 62%;
        display: none;
    }

    .slide .item:nth-child(5) {
        display: none;
        top: 62%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(4% + 280px);
    }

    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 410px);
        opacity: 0;
        top: 62%;
        display: none;
    }

    .nav {
        padding: 9px 35px;
    }

    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 50%;
        text-align: center;
        justify-content: center;
        margin-left: 25%;
        margin-right: 25%;
    }

    .slideshowbutton {
        display: block;
        margin-bottom: -2%;
    }
    .slideshowbutton button {
        width: 40px;
        height: 35px;
    }
    .logo1 {
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }
    .nav{
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .nav {
        padding: 15px 20px;
    }

    section {
        padding: 3rem 0 1rem;
    }

    .home-text {
        padding-left: 2rem;
    }

    .home-text h1 {
        font-size: 2.1rem;
    }
    .logo1 {
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }
    .nav{
        max-width: 100%;
    }

}

@media (max-width: 920px) {
    #search-icon {
        color: var(--bg-color)
    }

    .home {
        min-height: 300px;
        font-size: 20px;
        position: absolute;
        margin-top: 120px;
    }

    .home-text h1 {
        font-size: 30px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 10px;
    }
    .logo1{
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }
    .nav{
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    .search-box input {
        padding: 15px;
    }

    .nav {
        padding: 10px 0;
    }

    #menu-icon {
        display: initial;
    }

    header.shadow #search-icon {
        color: var(--bg-color);

    }

    header.shadow a {
        color: var(--text-color);
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        row-gap: 0.5rem;
        text-align: center;
        box-shadow: 4px 4px 20px rgb(15 54 55 / 20%);
        clip-path: circle(0% at 0% 0%);
        transition: 0.6s;
    }

    .navbar a {
        color: var(--text-color);
        display: block;
        padding: 15px;
    }

    .navbar a:hover,
    .navbar.active {
        border-bottom: none;
        background: var(--bg-color);
        color: var(--main-color);
    }

    .navbar.active {
        clip-path: circle(144% at 0% 0%);
    }

    .blog-container .box {
        padding: 4px;
    }

    .home {
        min-height: 420px;
        font-size: 20px;
        position: absolute;
        margin-top: 80px;
    }

    .home-text h1 {
        font-size: 30px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 15px;
    }

    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 85vh;
        background: #000000;
    }

    .slideshowcontainer .slide .item {
        width:130px;
        height: 180px;
        position: absolute;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 85vh;
        animation-name: fade;
        animation-duration: 2s;
    }

    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 4%;
        top: 62%;
        display: none;

    }

    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(4% + 140px);
        top: 62%;
        display: none;
    }

    .slide .item:nth-child(5) {
        display: none;
        top: 62%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(4% + 280px);
    }

    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 410px);
        opacity: 0;
        top: 62%;
        display: none;
    }

    .nav {
        padding: 9px 25px;
    }

    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 50%;
        text-align: center;
        justify-content: center;
        margin-left: 25%;
        margin-right: 25%;
    }

    .slideshowbutton {
        display: block;
        margin-bottom: -2%;
    }
    .slideshowbutton button {
        width: 40px;
        height: 35px;
    }
    .logo1 {
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }
}

@media (max-width:722px) {
    .heading span {
        font-size: 0.9rem;
    }


    .heading h2 {
        font-size: 1.4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.4rem;
    }

    .home {
        min-height: 420px;
        font-size: 20px;
        position: absolute;
        margin-top: 80px;
    }

    .home-text h1 {
        font-size: 30px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 15px;
    }
    .logo1 {
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }
}

@media (max-width:607px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home {
        min-height: 250px;
        font-size: smaller;
        position: absolute;
        margin-top: 150px;
    }

    .home-text h1 {
        font-size: 25px;
    }

    .home-text p {
        font-size: 15px;
    }

    .footer {
        margin-top: -5%;
    }

    .logo1 {
        max-width: 150px;
        margin-left: 0px;
        margin-top: 1%;
    }

    .footer {
        margin: 10px;
    }

    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 85vh;
        background: #000000;
    }

    .slideshowcontainer .slide .item {
        width:130px;
        height: 180px;
        position: absolute;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 85vh;
        animation-name: fade;
        animation-duration: 2s;
    }

    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 8%;
        top: 60%;
        display: none;

    }

    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 140px);
        top: 60%;
        display: none;
    }

    .slide .item:nth-child(5) {
        display: none;
        top: 60%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 280px);
    }

    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 410px);
        opacity: 0;
        top: 60%;
        display: none;
    }

    .nav {
        padding: 9px 25px;
    }

    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 50%;
        text-align: center;
        justify-content: center;
        margin-left: 25%;
        margin-right: 25%;
    }

    .slideshowbutton {
        display: block;
        margin-bottom: -2%;
    }
    .slideshowbutton button {
        width: 40px;
        height: 35px;
    }
}

@media (max-width:470px) {
    .envelope {
        font-size: 16px;
    }

    .envelope-two {
        font-size: 16px;
    }

    .envelope-icon {
        display: flex;
    }

    .item {
        margin-top: 10%;
    }

    .home-text {
        margin-top: -15%;
    }
    .home {
        min-height: 200px;
        margin-top: 150px;
    }

    .home-text h1 {
        font-size: 20px;
    }

    .home-text p {
        font-size: 15px;
    }

    .cars-container {
        margin-top: 4%;
    }

    .footer {
        margin-top: -10%;
    }

    .footer {
        margin: 10px;
    }

    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 85vh;
        background: #000000;
    }

    .slideshowcontainer .slide .item {
        width: 80px;
        height: 100px;
        position: absolute;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 78vh;
        animation-name: fade;
        animation-duration: 2s;
    }

    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 8%;
        top: 60%;
        display: none;

    }

    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 85px);
        top: 60%;
        display: none;
    }

    .slide .item:nth-child(5) {

        top: 60%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 170px);
        display: none;
    }

    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 255px);
        opacity: 0;
        top: 60%;
        display: none;
    }

    .nav {
        padding: 9px 25px;
    }

    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 50%;
        text-align: center;
        justify-content: center;
        margin-left: 25%;
        margin-right: 25%;
    }

    .slideshowbutton {
        display: block;
        margin-bottom: 1%;
    }
    .slideshowbutton button {
        width: 40px;
        height: 35px;
    }


    .container {
        max-width: 100%;
    }
}

@media (max-width:450px) {
    .search-box input {
        padding: 11px;
    }

    .home {
        min-height: 200px;
        margin-top: 150px;
    }

    .home-text h1 {
        font-size: 20px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 8px;
    }

    .home-text p br {
        display: contents;
    }

    .btn {
        font-size: 15px;
        padding: 10px;
    }

    section.cars {
        margin-top: -5%;
    }

    .heading h2 {
        font-size: 14px;
    }

    .footer {
        margin: 10px;
    }

    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 75vh;
        background: #000000;
    }

    .slideshowcontainer .slide .item {
        width: 80px;
        height: 100px;
        position: absolute;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        top: -11%;
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 80vh;
        animation-name: fade;
        animation-duration: 2s;
    }

    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 8%;
        top: 60%;
        display: none;

    }

    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 85px);
        top: 60%;
        display: none;
    }

    .slide .item:nth-child(5) {

        top: 60%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 170px);
        display: none;
    }

    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 255px);
        opacity: 0;
        top: 60%;
        display: none;
    }

    .nav {
        padding: 9px 25px;
    }

    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 50%;
        text-align: center;
        justify-content: center;
        margin-left: 25%;
        margin-right: 25%;
    }

    .slideshowbutton {
        display: block;
        margin-bottom: 1%;
    }
    .slideshowbutton button {
        width: 40px;
        height: 35px;
    }

    .container {
        max-width: 100%;
    }
}
@media (max-width:320px) {
    .search-box input {
        padding: 11px;
    }

    .home {
        min-height: 200px;
        margin-top: 150px;
    }

    .home-text h1 {
        font-size: 20px;
    }

    .home-text p {
        font-size: 15px;
    }

    .btn {
        font-size: 8px;
    }

    .home-text p br {
        display: contents;
    }

    .btn {
        font-size: 15px;
        padding: 10px;
    }

    section.cars {
        margin-top: -5%;
    }

    .heading h2 {
        font-size: 14px;
    }

    .footer {
        margin: 10px;
    }

    .slideshowcontainer {
        position: relative;
        width: 100vw;
        height: 78vh;
        background: #000000;
    }

    .slideshowcontainer .slide .item {
        width: 80px;
        height: 100px;
        position: absolute;
        border-radius: 20px;
        background-position: 50% 50%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        top: -11%;
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        height: 83vh;
        animation-name: fade;
        animation-duration: 2s;
    }

    .slide .item:nth-child(3) {
        box-shadow: 0 0px 30px var(--main-color);
        left: 8%;
        top: 60%;
        display: none;

    }

    .slide .item:nth-child(4) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 85px);
        top: 60%;
        display: none;
    }

    .slide .item:nth-child(5) {
        display: none;
        top: 60%;
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 170px);
    }

    /* here n = 0, 1, 2, 3,... */
    .slide .item:nth-child(n + 6) {
        box-shadow: 0 0px 30px var(--main-color);
        left: calc(8% + 170px);
        opacity: 0;
        top: 60%;
        display: none;
    }

    .nav {
        padding: 9px 25px;
    }

    .about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        margin: 10px;
        padding: 5%;
    }

    .btn-about {
        display: flex;
        width: 50%;
        text-align: center;
        justify-content: center;
        margin-left: 25%;
        margin-right: 25%;
    }

    .slideshowbutton {
        display: block;
        margin-bottom: 1%;
    }
    .slideshowbutton button {
        width: 40px;
        height: 35px;
    }

    .container {
        max-width: 100%;
    }
}