* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    display: block;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
}


/************* 

Styling of Header Section

**************/
header {
    position: sticky;
    height: 100px;
    top: 0;
    width: 100%;
    background-color: #4CAF50;
    z-index: 1;
}

.nav-bar {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
    padding-inline: 10px;
}


.logo a {
    position: relative;
    background-color:#4CAF50;
    font-size: 40px;
    color:white;
}

.options {
    font-size: 20px;
    color: #ffffff;
    width: 70%;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
}

.head-elements {
    color: #ffffff;
    font-size: 18px;
    font-weight: 200;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: font-weight 0.3s ease, color 0.3s ease;
}

.head-elements a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 200;
    cursor: pointer;
    transition: font-weight 0.3s ease, color 0.3s ease;
    text-decoration: none;

}

.head-elements:hover,
.head-elements a:hover {
    font-weight: 700;
    color: black;
}

.battery-type {
    position: relative;
    display: inline-block;
}

.dropdown {
    display: none;
}

.dropdown ul {
    color: white;
    padding: 3px;
    font-weight: 200;
    margin: 0px;
}

.dropdown ul li {
    display: block;
    margin: 10px;
}

.dropdown ul li:hover {
    color: black;
    font-weight: 700;
    transition: font-weight 0.3s ease, color 0.3s ease;

}

ul a {
    color: white;
    /* Set your preferred color */
    text-decoration: none;
    /* Remove underline */
}

/* Ensure the color and underline don’t change on any state */
ul a:visited,
ul a:active {
    color: white;
    /* Same color to prevent change */
    text-decoration: none;
    /* No underline */
}

.battery-type:hover .dropdown {
    display: block;
    font-size: 20px;
    padding: 5px;
    margin-left: -15px;
    padding-top: 10%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: left;
    text-wrap: nowrap;
    font-weight: 200;
    background-color: #4CAF50;
    position: absolute;
    list-style-type: none;
}

.search {
    position: relative;
    display: flex;
    color: black;
    border-radius: 10px;
    background-color: white;
    width: 20%;
    height: 30%;
    align-items: center;
    text-align: center;
}

.searchLogo {
    margin-left: 6px;

}

.searchInput {
    width: 80%;
    border: None;
    outline: none;
    text-align: center;
    align-content: center;
    display: inline-block;
}

input:focus::placeholder {
    color: transparent;
}


/******************** 

Styling of Main Section

*********************/

main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 303.7px);
    flex-grow: 1;
}

.slideshow-container {
    max-width: 100%;
    position: relative;

}

img.photo {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    max-width: 100%;
}

/* Hide the images by default */
.mySlides {
    display: none;
    max-width: 100%;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 45%;
    width: auto;
    padding: 16px;
    color: Black;
    font-weight: 900;
    font-size: 1re, ;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}
/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot:active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

.img-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3%;
}



/**********************

Footer Styling 

**********************/
footer {
    box-sizing: border-box;
    width: 100%;
    height: 207.4px;
    position: relative;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-section {
    flex: 1;
    min-width: 150px;
    font-size: medium;
}


.footer-section h4 {
    font-weight: 200;
    margin-bottom: 10px;
    font-size: 20px;
    color: white;
}

.footer-section h4:hover {
    font-weight: 700;
    color: black;
    transition: font-weight 0.3s ease-in, color 0.3s ease-in;
}

.links a {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    text-decoration: none;
    color: white;
}

.social-icon {
    margin-left: 8px;
    color: #ffffff;
    font-size: 30px;
}

.contact-us a {
    display: flex;
    flex-direction: column;

    color: white;
    text-decoration: none;
    font-size: 16px;
}



.footer-bottom {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}


@media only screen and (max-width: 480px) {
    header {
        height: 90px;
    }

    .nav-bar{
        justify-content: space-around;
    }

    .search{
        width: 60%;
    }
    .menu-icon {
        width: 20%;
        display: block;
        cursor: pointer;
        font-size: 2rem;
    }
    .logo {
        font-size: 2rem;
        width: 20%;
        background-color: #4CAF50;
        color: white;
    }

    .options {
        display: none;
    }

    .options.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        width: 100%;
        z-index: 1;
        background-color: #4CAF50;
    }
    .head-elements, .head-elements a {
        font-size: 0.7rem;
        padding: 5px;
    }
    .dropdown ul li {
        display: block;
        margin: 5px;
    }

    main {
        height: calc(100vh - 293.4px);
    }

    .slideshow-container {
        height: 97%;
    }

    .mySlides {
        height: 100%;
    }

    img.photo {
        height: 100%;
    }

    .dot {
        height: 6px;
        width: 6px;
    }

    footer {
        height: 203.4px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .links {
        display: flex;
        justify-content: space-evenly;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        flex-direction: column;
        padding: 5px;
    }

    .footer-section h4 {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }

    .contact-us a,
    .contact-us p,
    .social-media a,
    .links a {
        color: white;
        text-decoration: none;
        font-size: 0.65rem;
        padding-bottom: 3px;
    }

    .footer-bottom {
        font-size: 0.5rem;
        margin-top: 7px;
    }

    /* Adjust other elements to fit within smaller screen sizes */
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
    header {
        height: 90px;
    }

    .nav-bar{
        justify-content: space-around;
    }

    .search{
        width: 60%;
    }
    .menu-icon {
        width: 20%;
        display: block;
        cursor: pointer;
        font-size: 2rem;
    }
    .logo {
        font-size: 2rem;
        width: 20%;
        background-color: #4CAF50;
        color: white;
    }
    .dropdown ul li {
        display: block;
        margin: 5px;
    }

    .options {
        display: none;
    }

    .options.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        width: 100%;
        z-index: 1;
        background-color: #4CAF50;
    }
    .head-elements, .head-elements a {
        font-size: 0.7rem;
        padding: 5px;
    }
    
    main {
        height: calc(100vh - 297.4px);
    }

    .slideshow-container {
        height: 97%;
    }

    .mySlides {
        height: 100%;
    }

    img.photo {
        height: 100%;
    }

    .dot {
        height: 10px;
        width: 10px;
    }

    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 45%;
        width: auto;
        padding: 16px;
        color: Black;
        font-weight: 900;
        font-size: 1rem;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
    }

    footer {
        padding-top: 5px;
        padding-bottom: 10px;
    }

    .links {
        display: flex;
        justify-content: space-evenly;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        flex-direction: column;
        padding: 5px;
    }

    .footer-section h4 {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .contact-us,
    .social-media,
    .links {
        text-align: center;
        justify-content: space-evenly;
    }

    .contact-us a,
    .contact-us p,
    .social-media a,
    .links a {
        color: white;
        text-decoration: none;
        font-size: 0.6rem;
        padding-bottom: 3px;
    }

    .social-media a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 10px;
    }
}


@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .logo {
        font-size: 2.5rem;
    }

    .head-elements,
    .head-elements a {
        font-size: 1.1rem;
    }

    .menu-icon {
        display: none;
    }

    main {
        height: calc(100vh - 225px);
    }

    .slideshow-container {
        height: 97.5%;
    }

    /* Hide the images by default */
    .mySlides {
        width: 100%;
        height: 100%;
    }

    img.photo {
        height: 100%;
        width: 100%;
    }

    /* Next & previous buttons */
    .prev,
    .next {
        top: 45%;
        padding: 16px;
        font-size: 1.3rem;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
    }

    .text {
        font-size: 15px;
        padding: 8px 12px;
        bottom: 8px;
    }

    .numbertext {
        font-size: 0.8rem;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }
    .dot {
        height: 10px;
        width: 10px;
    }

    footer {
        height: 125px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        
        margin-top: 9px;
        margin-bottom: 5px;
    }


    .contact-us a,
    .contact-us p,
    .social-media a,
    .links a {
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        padding-bottom: 3px;
    }

    .social-media a {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 5px;
    }
}


@media only screen and (min-width: 1025px) and (max-width: 1280px) {
    .logo {
        font-size: 3rem;
    }

    .head-elements,
    .head-elements a {
        font-size: 1.2rem;
    }

    .menu-icon {
        display: none;
    }

    main {

        height: calc(100vh - 240px);
    }

    .slideshow-container {
        height: 97.5%;

    }

    .mySlides {
        display: none;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }

    img.photo {
        height: 100%;
        width: 100%;
    }

    .prev,
    .next {
        top: 45%;
        padding: 16px;
        font-size: 1.3rem;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
    }


    .text {
        font-size: 15px;
        padding: 8px 12px;
        bottom: 8px;
    }

    /* Number text (1/3 etc) */
    .numbertext {
        font-size: 0.8rem;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    /* The dots/bullets/indicators */
    .dot {
        height: 10px;
        width: 10px;
    }

    footer {
        height: 140px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        /* Smaller header size */
        margin-top: 9px;
        margin-bottom: 5px;
    }


    .contact-us a,
    .contact-us p,
    .social-media a,
    .links a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        padding-bottom: 3px;
    }

    .social-media a {
        font-size: 1.5rem;
        /* Smaller social media icons */
    }

    .footer-bottom {
        font-size: 0.9rem;
        margin-top: 5px;
    }
}

@media only screen and (min-width: 1281px) {
    .logo {
        font-size: 3rem;
    }

    .head-elements,
    .head-elements a {
        font-size: 1.2rem;
    }

    .menu-icon {
        display: none;
    }

    main {

        height: calc(100vh - 255px);
    }

    .slideshow-container {
        height: 97.5%;
    }

    /* Hide the images by default */
    .mySlides {
        display: none;
        width: 100%;
        height: 100%;
    }

    img.photo {
        height: 100%;
        width: 100%;
    }

    /* Next & previous buttons */
    .prev,
    .next {
        top: 45%;
        padding: 16px;
        font-size: 1.3rem;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
    }


    /* Caption text */
    .text {
        font-size: 15px;
        padding: 8px 12px;
        bottom: 8px;
    }

    /* Number text (1/3 etc) */
    .numbertext {
        font-size: 0.8rem;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    /* The dots/bullets/indicators */
    .dot {
        height: 10px;
        width: 10px;
    }

    footer {
        height: 155px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        margin-top: 5px;
        margin-bottom: 5px;
    }


    .contact-us a,
    .contact-us p,
    .social-media a,
    .links a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        padding-bottom: 3px;
    }

    .social-media a {
        font-size: 1.5rem;
        
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}