@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    scrollbar-width: thin;
    scrollbar-color: white;
    scroll-behavior: smooth;
}
body {
    font-family: "Roboto", sans-serif;
    background-color: white;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;

}
/*The header section*/
.navbar {
    position: fixed;
    width: 98%;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem;
    background-color: white;
}
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-link ul {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}
.menu {
    margin-right: 0.9rem;
}
.menu ul {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 0.9rem;
}
li>a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: small;
}
li>a:hover {
    background-color: rgba(136, 136, 136, 0.2);
    border-radius: 5px;

}
li>a.icon1:hover {
    background-color: none;
    border-radius: 5px;
}
.logo {
    margin-left: 1.5rem;
    padding: 0.3;
    align-items: center;
}

/*===== FIRST SLIDER STYLES =====*/
.container-1 {
    padding-top: 60px;
    background-color: white;
    width: 100%;
    height: 30vw;
}
.slider-wrapper-1 {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
}
.left, .right {
    position: absolute;
    top: 45%;
    z-index: 1;
    padding: 0.45rem 0.75rem;

    border: none;
    border-radius: 5px;
    box-shadow: 2px 0 10px rgb(90, 90, 90);
    font-size: 1.5rem;
    color: rgb(58, 58, 58);
    cursor: pointer;
}
.right {
    right: 5%;
}
.left {
    left: 5%;
}
.slider-1 {
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    padding: 0 2rem;
    scroll-behavior: smooth;
    overflow: hidden;
    display: flex;
}
.background-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
#slider1, #slider2, #slider3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#slider1 {
    position: relative;
}

#slider2 {
    background-image: url("./assets/ModelY.jpg");
}
#slider3 {
    background-image: url("./assets/first.avif");
}
.style-1 {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    flex-basis: 100%;
    scroll-snap-align: start;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgb(0, 0, 0, 0.4);
}
.nav-slider-1 {
    border: 2px grey;
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.nav-slider-1>a {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
    cursor: pointer;
    transition: all ease 250ms;
}
.nav-slider-1>a:hover {
    opacity: 1;
    background-color: white;
    transform: scale(1.2);
}
.container1 {
    padding-top: 1.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative;
    z-index: 1;
}
.container1 h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    height: 8vh;
}
.container1 p {
    font-size: 1.2rem;
}
.container1 p .available {
    color: white;
}
a.orders {
    font-size: small;
    font-weight: bold;
    background-color: blue;
    color: white;
    padding: 0.8rem 4.5rem;
    text-decoration: none;
    border-radius: 5px;
}
a.learn {
    font-size: small;
    font-weight: bold;
    background-color: white;
    color: black;
    padding: 0.8rem 4.5rem;
    text-decoration: none;
    border-radius: 5px;
}
.slider1-buttons {
    margin-top: 1.5rem;
    padding: 0.3rem;
}


/* SECOND SLIDER STYLES */
.container-2 {
    padding: 0;
    background-color: white;
    margin: 4.375rem auto;
    width: 100vw;
    height: 40vw;
}
.slider-wrapper-2 {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
}
.slider-wrapper-2 .slider-2 {
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    padding: 0 2rem;
    overflow: hidden;
    scroll-behavior: smooth;
    display: flex;
}
#slider8, #slider9, #slider10, #slider11, #slider12 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
}
#slider8 {
    background-image: url("./assets/second.avif");
}
#slider9 {
    background-image: url("./assets/third.avif");
}
#slider10 {
    background-image: url("./assets/fourth.avif");
}
#slider11 {
    background-image: url("./assets/5th.avif");
}
#slider12 {
    background-image: url("./assets/Sixth.avif");
}
.style-2 {
    display: flex;
    flex-shrink: 0;
    flex-basis: 60%;
    scroll-snap-align: start;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}
.nav-slider-2 {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.nav-slider-2>a {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    
    cursor: pointer;
    transition: all ease 250ms;
}
.nav-slider-2>a:visited {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: black;
    cursor: pointer;
    transition: all ease 250ms;
}

div.container2 {
    margin: 0.9rem 0.625rem;
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 5px;
}
.container2 p {
    font-size: 1rem;
    font-weight: bolder;
    color: white;
    margin: 0;
    padding: 0;

    position: relative;
    top: -18.75rem;
}
.container2 h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.25rem;
    padding: 0;
}
.container2-link {
    text-decoration: underline;
    color: white;
    
    font-size: 1.5rem;
    margin-top: 0px;
    padding-top: 0px;
    padding-bottom: 1.875rem;

}
.order-button {
    background-color: blue;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 2.5rem;
    font-weight: bold;
}
.learn-button {
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 2.5rem;
    font-weight: bold;
}

/*Section for offers*/
.offers {
    display: flex;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 100%;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    margin: 2rem;;
    background-color: white;
}
.sale {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 50rem;
    height: 15rem;
    margin: 0;
    border-radius: 5px;
    background-color: rgb(245, 245, 245);
}
.heroes {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 50rem;
    height: 15rem;
    margin: 0;
    border-radius: 5px;
    background-color: rgb(245, 245, 245);
}

.content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 5px;
}
.content h2 {
    margin: 1rem auto 0 3rem;
    font-size: 2rem;
}
.content p {
     margin: 1rem auto 0 3rem;
    font-size: large;
}
.content .sale_p {
    width: 19rem;
}
.content a {
    margin: 1rem auto 0 3rem;
    padding: 0.75rem 7rem;
    text-decoration: none;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    color: black; 
}
.image {
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: 5%;
}

/*Section about full self drive and features*/
.energy {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 3.125rem;
    padding: 0.9rem;
    background-color: white;
    
}
.content-energy, .image-energy {
    display: flex;
    justify-content: center;
    height: 90vh;
    border-radius: 10px;
    margin: 0.625rem;
    box-shadow: 1rem 1rem 2rem rgba(0, 0, 0, 0.2);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-energy {
    background-image: url("https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Features-Desktop.png");
    width: 35vw;
}
.content-energy {
    background-image: url("https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-FSD-Safety-Report-Split-Desktop.jpg");
    width: 65vw;
}
.text-energy {
    box-sizing: border-box;
    margin-left: 0.312rem;
    position: relative;
    top: 55%;
    color: white;
    text-align: left;
}
.text-energy h2 {
    font-size: 2.5rem;
    padding-left: 1.25rem;

}
.text-energy p {
    padding-left: 1.25rem;
}
.blue {
    margin-left: 1.25rem;
    padding: 0.625rem 0.937rem;
    text-decoration: none;
    border-radius: 5px;
    background-color: rgb(73, 73, 255);
    color: white;
}
.white {
    margin-left: 1.25rem;
    padding: 0.625rem 0.937rem;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 5px;
}

/*Find your charger section*/
.charge {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    margin: 3.125rem;
    padding: 0.625rem;
}
.find-charger {
    width: 53%;
}
.find-charger h2 {
    font-size: 3.5rem;
    margin-top: 1.875rem;
    padding-top: 0;
    height: 1.25rem;
}
.find-charger p {
    color: rgb(139, 139, 139);
    font-size: larger;
}
.view, .learn {
    text-decoration: none;
    padding: 0.625rem 0.937rem;
    border-radius: 5px;
}
.view:hover {
    cursor: pointer;
    opacity: 0.8;
}
.view {
    background-color: black;
    color: white;
}
.learn {
    background-color: white;
    color: black;
}

.costs {
    display: flex;
    justify-content: center;
    align-items: center;

    padding-right: 0.625rem;
    background-color: white;
}
.costs div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-right: 0.625rem;
}
.costs div h4 {
    color: rgb(139, 139, 139);
    font-weight:500;

}
.paragraph {
    margin-left: -8.125rem;
}
.paragraph2 {
    width: 20%;
    margin-left: -10.625rem;
    height: 1.2rem;
}
.header-icon {
    display: flex;
    flex-direction: row;
    height: 2.5rem;

}
.costs div h2 {
    font-size: 3.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

h2 .svg {
    padding: 0;
}
.costs div h2 span {
    color: grey;
    
}



/*===== Third SLIDER STYLES =====*/
.container-3 {
    padding: 0;
    color: white;
    width: 100vw;
    margin-bottom: 9.375rem;
}
.slider-wrapper-3 {
    position: relative;
    margin: auto 1.875rem;
    width: 100vw;
    height: 90vh;
}
.slider-wrapper-3 .slider-3 {
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    padding: 0 2rem;
    overflow: hidden;
    scroll-behavior: smooth;
    display: flex;
}
#slider4, #slider5, #slider6, #slider7 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;

    width: 100%;
    height: 100%;
}
#slider4 {
    background-image: url("https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Card-Solar-Panels-Desktop-v2.jpg");
}
#slider5 {
    background-image: url("https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Card-Powerwall-Desktop.png");
}
#slider6 {
    background-image: url("https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Card-Megapack-Desktop-v2.jpg");
}
#slider7 {
    background-image: url("https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Card-Solar-Roof-Desktop-v2.jpg");
}
.style-3 {
    display: flex;
    flex-shrink: 0;
    flex-basis: 60%;
    width: 80vw;
    height: 37.5rem;
    scroll-snap-align: start;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}
.nav-slider-3 {
    display: flex;
    column-gap: 1rem;
    position: relative;
    bottom: -2rem;
    left: 50%;
    transform: translate(-5%);
    
    z-index: 1;
}
.nav-slider-3>a {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all ease 250ms;
}
.nav-slider-3>a:hover {
    opacity: 1;
    background-color: black;
    transform: scale(1.2);
}
div.container3 {
    padding: 0 0 2rem 2rem;
}
#slider4 .container3 {
    padding: 0 0 2rem 2rem;
}
div.container3 a {
    display: inline-block;
    margin: 1rem 1rem 0 0;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

div.container3 a:hover {
    background-color: rgba(23, 23, 23, 1);
    color: white
}

/*FOOTER*/
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin-top: 3.125rem;
    padding-bottom: 4rem;

    font-size: smaller;
}
.footer-content ul li a {
    color: rgb(54, 54, 54);
    font-size: smaller;
    font-weight: bold;
}
.footer-content ul {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}

/*Bottom Navigation*/
.bottom-nav {
    position: fixed;
    width: 100%;
    z-index: 2;
    bottom: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    padding: 0.625rem 1.5rem;
}
.button1 {
    display: flex;
    flex-direction: row;
    gap: 2%;
    justify-content: center;
    align-items: center;
    width: 30rem;

    margin-right: 1.25rem;
    padding: 0.5625rem 1.875rem 0.5625rem 0.625rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid grey;
    background-color: rgb(245, 245, 245);
}
.button2 {
    display: flex;
    flex-direction: row;
    gap: 3%;
    align-items: center;
    justify-content: center;
    width: 12rem;

    margin-left: 1.25rem;
    padding: 0.5625rem 1.25rem;
    border-radius: 5px;
    text-decoration: none;
    color: rgb(54, 54, 54);
    font-weight: bold;
    border: 1px solid grey;
    background-color: rgb(245, 245, 245);
}
.button1 a {
    text-decoration: none;
    width: 30%;
    font-size: small;
    color: rgb(66, 66, 66) 
}
.button1 span {
    color: rgb(172, 172, 172);
    font-size: small;
    width: 80%;

}
.button2 a {
    text-decoration: none;
    width: 90%;
    font-size: small;
    color: rgb(66, 66, 66) 
}

