/*TABLET*/
@media (max-width: 768px) and (min-width: 480px) {
    * {
        outline-offset: 0.125rem;
        box-sizing:border-box;
        scroll-behavior: smooth;
    }
    body{
        display: block;
        width: 100%;
        height: fit-content;
        overflow-x: hidden;

    }
    .navbar {
        display: flex;
        flex-flow: row wrap;
        inline-size: 100%;
        justify-content: space-between;
        position: relative;
        transition: background-color .33s ease, box-shadow .33s ease;
        z-index: 10;
    }
    .nav-link {
        display: none;
    }

    /*Buttons*/
    .left {
        display: none;
    }
    .right {
        display: none;
    }

    /*First slider*/
    .container-1 {
        padding-top: 0.25rem;
        color: white;
        width: 100%;
        height: 60vh;
        margin-bottom: 10%;
    }
    .container1 h1 {
        font-size: 1.6rem;
        height: 4vh;
    }
    .container1 p {
        font-size: 1.2rem;
    }
    a.orders {
        padding: 0.4rem 3.8rem;
    }
    a.learn {
        padding: 0.4rem 3.8rem;
    }

    /*Second Slider*/
    .container-2 {
        padding-top: 0;
        color: white;
        width: 100%;
        height: 60vh;
        margin-bottom: 10%;
    }
    .container2 h2 {
        font-size: 2rem;
    }
    .order-button {
        padding: 0.3rem 1rem;
    }
    .learn-button {
        padding: 0.3rem 1rem;
    }

    /*Section for Offers*/
    .offers {
        gap: 1rem;
        margin: 1rem;
    }
    .sale {
        width: 25rem;
        height: 10rem;
    }
    .heroes {
        width: 25rem;
        height: 10rem;
    }
    .content h2 {
        margin: 0.1rem auto 0 1rem;
        font-size: 1.3rem;
    }
    .content p {
    margin: 0.3rem auto 0 1rem;
    font-size: 0.6rem;
    width: 13rem;
    }
    .content .sale_p {
    width: 15rem;
    }
    .content a {
        margin: 0.2rem auto 0 0.8rem;
        padding: 0.5rem 1rem;
    }
    .sale .image img {
        width: 5rem;
        height: 9.5rem;
    }
    .heroes .image img {
        width: 5rem;
        height: 9.5rem;
    }

    /*Fully-Self-drive and Feature*/
    .text-energy h2 {
        font-size: 1.5rem;
    }
    .text-energy a {
        padding: 0.4rem 0.6rem;
    }

    /*Find YourCharger Section*/
    .charge{
        margin: 1rem;
        padding: 0.4rem;
    }
    .find-charger h2 {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
    .find-charger p {
    color: rgb(139, 139, 139);
    font-size: smaller;
    }  
    .view, .learn {
        padding: 0.1rem 0.3rem;
    }  

    .costs {
        padding-right: 0.4rem;
        width: 30%;
    }
    .costs div h4 {
        font-weight: 250;
    }
    .header-icon {
        width: 80%
    }
    .costs div.header-icon {
        width: 5rem;

    }
    .paragraph {
        font-size: smaller;
        margin-left: -0.2rem;
    }
    .paragraph2 {
        font-size: smaller;
        margin-left: -2rem;
    }

    .costs div h2{
        font-size: 1.3rem;
    }
    .costs div h2 img {
        width: 1rem;
        height: 1rem;
    }
    .svg {
        width: 1rem;
        height: 1rem;
    }



    img.logo-in {
        width: 7.5rem;
        height: 0.75rem;
    }
    img.icon1 {
        width: 1.25rem;
        height: 1.25rem;
    }
    .svg {
        width: 3.75rem;
        height: 2.8rem;
    }
    /*Footer*/
    footer {
        margin-bottom: 1rem;
    }

    /*Bottom nav*/
    .bottom-nav {
        position: fixed;
        width: 68%;
        z-index: 5;
        bottom: 0;
        
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(255, 255, 255);
        padding: 0.625rem 1.5rem;
        
    }
    button1 {
        width: 25rem;
    }
}


/*PHONES*/
@media (max-width: 480px) {

    html, body {
        height: fit-content;
    }
    body {
        width: 100vw;
        overflow-x: hidden;
    }
    .navbar {
        display: flex;
        flex-flow: row wrap;
        inline-size: 100%;
        justify-content: space-between;
        position: relative;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.055);
        padding: 0.2rem;
    }
    .nav-link {
        display: none;
    }

    /*Buttons*/
    .left {
        display: none;
    }
    .right {
        display: none;
    }

    /*First slider*/
    .container-1 {
        margin-top: -5rem;
        color: white;
        width: 100vw;
        height: 80vh;
        margin-bottom: 10%;
    }
    .slider-1 {
        padding: 0;
    }
    .style-1 {
        border-radius: 0;
    }
    #slider2, #slider3 {
        display: none;
    }
    .nav-slider-1 {
        display: none;
    }
    .container1 {
        justify-content: center;
    }
    .container1 h1 {
        font-size: 1.2rem;
        height: 3vh;
    }
    .container1 p {
        font-size: 0.8rem;
    }
    a.orders {
        padding: 0.4rem 2rem;
    }
    a.learn {
        padding: 0.4rem 2rem;
    }

    /*Second Slider*/
    .container-2 {
        padding-top: 0;
        color: white;
        width: 100%;
        height: 70vh;
        margin-bottom: 10%;
        margin-left: 0;
        margin-right: 0;
    }
    .slider-wrapper-2 {
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    .slider-wrapper-2 .slider-2  {
        padding: 0;
        gap: 0;
        justify-content: flex-start;
        align-items: stretch;
        width: 100vw;
        overflow: hidden;
        scroll-snap-type: x mandatory;
    }
    .style-2{
        border-radius: 0;
        width: 100vw;
        flex: 0 0 100%;
        flex-basis: 100%;
        max-width: 100vw;
    }

    /* ensure each background slide fills viewport */
    #slider8, #slider9, #slider10, #slider11, #slider12 {
        width: 90vw;
        min-width: 80vw;
    }
    #slider9 {
        display: none;
    }
    #slider10 {
        display: none;
    }
    #slider11 {
        display: none;
    }
    #slider12 {
        display: none;
    }
    div.container2  {
        display: none;
    }
    .nav-slider-2 {
        display: none;
    }

    /*Section for Offers*/
    .offers {
        gap: 0.5rem;
        margin: 0.7rem;
    }
    .sale {
        width: 25rem;
        height: 10rem;
    }
    .heroes {
        width: 20rem;
        height: 10rem;
    }
    .content h2 {
        margin: 0.1rem auto 0 1rem;
        font-size: 1.3rem;
    }
    .content p {
    margin: 0.3rem auto 0 1rem;
    font-size: 0.6rem;
    width: 13rem;
    }
    .content .sale_p {
    width: 15rem;
    }
    .content a {
        margin: 0.2rem auto 0 0.8rem;
        padding: 0.5rem 1rem;
    }
    .sale .image img {
        width: 5rem;
        height: 9.5rem;
    }
    .heroes .image img {
        width: 5rem;
        height: 9.5rem;
    }

    /*Fully-Self-drive and Feature*/
    .energy {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    .content-energy {
        width: 95vw;
        height: 100vh;
        border-radius: 3px;
    }
    .text-energy {
        margin: 0;
        height: 20vh;
    } 
    .text-energy h2 {
        width: 95%;
        font-size: 2rem;
        margin: 0.5rem;
    }
    .text-energy a {
        padding: 0.5rem 2rem;
        margin-top: 0.3rem;
    }
    .text-energy p {
        display: none;
    }

    .image-energy {
        width: 95vw;
        height: 100vh;
        border-radius: 3px;
    }

    /*Find YourCharger Section*/
    .charge{
        margin: 1rem;
        padding: 0.4rem;
    }
    .find-charger h2 {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
    .find-charger p {
        color: rgb(139, 139, 139);
        font-size: smaller;
    }  
    .view, .learn {
        padding: 0.1rem 0.3rem;
        font-size: smaller;
    }  

    .costs {
        padding-right: 0.4rem;
        width: 30%;
    }
    .costs div h4 {
        font-weight: 250;
    }
    .header-icon {
        width: 80%
    }
    .costs div.header-icon {
        width: 5rem;

    }
    .paragraph {
        font-size: smaller;
        margin-left: -0.2rem;
    }
    .paragraph2 {
        font-size: smaller;
        margin-left: -2rem;
    }

    .costs div h2{
        font-size: 1.3rem;
    }
    .costs div h2 img {
        width: 1rem;
        height: 1rem;
    }
    .svg {
        width: 1rem;
        height: 1rem;
    }

    img.logo-in {
        width: 7.5rem;
        height: 0.75rem;
    }
    img.icon1 {
        width: 1.25rem;
        height: 1.25rem;
    }

    /*Last Slider*/
    .slider-wrapper-3 {
        margin: 0;
    }
    .container3 h1 {
        font-size: 1.5rem;
    }
    .container3 p {
        font-size: small;
    }
    div.container3 a  {
        padding: 0.3rem 0.3rem;
        font-size: smaller;
    }


    /*Footer*/
    footer {
        margin-bottom: 1rem;
        font-size: 0.7rem;
    }
    .footer-content ul {
        flex-direction: column;
        gap: 0.3rem;
    }

    /*Bottom nav*/
    .bottom-nav {
        position: fixed;
        width: 68%;
        z-index: 5;
        bottom: 0;
        
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(255, 255, 255);
        padding: 0.2rem 0.7rem;
        gap: 0;
        
    }
    .button1 {
        margin-right: 0.2rem;
        text-align: center;
        width: 2rem;
        padding: 0.5rem 2rem;
    }
    .button2 {
        margin-left: 0.2rem;
        width: 20rem;
        padding: 0.5rem 1.9rem;
    }
    div.button1 a {
        display: none;
    }
    div.button2 a {width: 60%;}
    div.button1 span {
        display: none;
    }
}