*{
    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: 100px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
}


.logo{
    position: relative;
    background-color: white;
    border-radius: 10px;
    font-size: 75px;
    color: green;
}

.options{
    font-size: 20px;
    color:#ffffff;
    width: 70% ;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
    cursor: pointer;
}
.home{
    font-weight:200px ;
}
.home a {
    color: white; /* Set your preferred color */
    text-decoration: none; /* Remove underline */
}

/* Ensure the color and underline don’t change on any state */
.home a:visited,
.home a:active {
    color:white; /* Same color to prevent change */
    text-decoration: none; /* No underline */
}

.home a:hover{
    font-weight: 700;
    color: black;
}

.head-elements{
    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;
    transition:font-weight 0.3s ease, color 0.3s ease;
}

li:hover{
    color:black;

}


.battery-type:hover .dropdown{
    display:block;
    font-size: 20px;
    padding-left:5px;
    margin-left:-15px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-top: 20px;
    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:250px;
    height:36px;
    align-items: center;
    text-align: center;
}

.searchLogo{
    margin-left: 6px;

}
.searchInput{
    border: None;
    outline: none;
    text-align: center;
    align-content: center;
    display: inline-block;
}

input:focus::placeholder {
    color: transparent; 
}




main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #f0f0f0;
    text-align: center;
}
/* Flexbox layout for text and image */
.content-wrapper {
    margin-left: 30px;
    margin-right: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;/* Allows wrapping on smaller screens */ /* Adds space between flex items */
}
.battery-title {
    position: relative;
    top: 20px; /* Adjust based on how much you want it moved down */
    margin-bottom: 20px; /* Ensure space below the <h1> */
    font-size:larger;
    text-align: left; /* Adjust font-size for better visibility */
}
.content-wrapper h3{
    margin-top: 30px;;
}
.content-wrapper ul{
    text-align: left;
    list-style:circle;
}
.content-wrapper ul li{
   padding: 2px;
}

.bat-info{
    margin-left: 10px;
    margin-top: 20px;
    width: 50%;
    text-align: left;
    
}
.bat-info ul{
    list-style: circle;;

}
.bat1-img{
    display: flex;
    justify-content: center;
    align-items: center;
    width:50%;
}

.dropdown ul a {
    color: white; /* Set your preferred color */
    text-decoration: none; /* Remove underline */
}

/* Ensure the color and underline don’t change on any state */
.dropdown ul a:visited,
.dropdown ul a:hover,
.dropdown ul a:active {
    color:white; /* Same color to prevent change */
    text-decoration: none; /* No underline */
}

.battery-image {
    
    width: 70%; /* Width for larger screens */
    height: auto;
}



/**********************

Footer Styling 

**********************/
footer {
    width:100%;
    bottom: 0;
    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: 1200px;
    margin: 0 auto;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 10px;
    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 ;
    margin-bottom: 10px;
    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;
    justify-content: space-evenly;
    color:white;
    text-decoration: none;
    font-size: 16px;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;    
    color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) {
    /* Hide the regular options and show the menu icon */
    .options {
        display: none;
    }
  
    .menu-icon {
        right: 20px;
        position:absolute;
        display: block;
        font-size: 35px;
        cursor: pointer;
    }

    /* When menu is clicked (JS adds the .active class), show it */
    .options.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100px;
        width: 100%;
        background-color: #4CAF50;
        z-index: 1;
    }
    .battery-type:hover .dropdown{
        margin-left: -30px;}

    .logo {
        font-size: 2.5rem;
        position:absolute;
        left:20px;
    }

    .head-elements {
        font-size: 18px;
        padding: 10px 0;
    }
    .battery-title {
        font-size: 1.5rem; /* Smaller font size for mobile screens */
    }

    .content-wrapper {
        width: 80%;
        flex-direction: column; /* Stack items vertically */
        align-items: center;
    }

    .bat-info {
        width: 100%;
        text-align: left;
        padding-bottom: 20px;
    }

    .bat1-img {
        width: 100%;
        justify-content: center;
    }
    

    /* Hide search bar on small screens */
    .search {
        display: none;
    }

    footer {
        position: relative;
        padding-top: 5px;
        padding-bottom: 10px;
        font-size: 12px; /* Reduce overall text size */
    }

    .footer-content {
        flex-direction: column;
        padding-bottom: 5px;
    }

    .footer-section {
        margin-bottom: 5px;
        text-align: center; /* Center the content for better mobile appearance */
        min-width: 100%; /* Ensure sections stack vertically */
    }

    .footer-section h4 {
        font-size: 16px; /* Smaller header size */
        margin-top: 9px;
        margin-bottom: 5px;
    }

    .links a {
        font-size: 12px; /* Reduce link font size */
        margin-bottom: 5px;
    }

    .social-icon {
        font-size: 20px; /* Smaller social media icons */
    }

    .footer-bottom {
        font-size: 12px;
        margin-top: 10px;
    }
}

@media (min-width: 769px) {
    .menu-icon {
        display: none; /* Hide hamburger menu on larger screens */
    }

    .search {
        display: flex;
    }
    .battery-title {
        font-size: 2.5rem; /* Slightly larger font size for desktop */
    }

    .content-wrapper {
        max-width: 100%; /* Constrain width for readability */
        margin: 0;
        padding: 20px;
    }

    .bat-info {
        font-size: 1.1rem; /* Larger font size for desktop readability */
        line-height: 1.8;
    }
}