* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    
    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,.head-elements a {
    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;
    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;
    font-weight: 200;
    margin: 0px;
}

.dropdown ul li {
    display: block;
    margin: 5px;
}

.dropdown ul li a:hover {
    color: black;
    font-weight: 700;
    transition: font-weight 0.3s ease, color 0.3s ease;

}


.dropdown ul a:visited,
.dropdown ul a:active {
    color: white;
    /* Same color to prevent change */
    text-decoration: none;
}

.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;
    align-items: center;
    justify-content: center;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 50%;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    margin: 20px;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 90%;
}

.form-section {
    display: none;
}

.form-section.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

.input_bar{
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
} 

button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Step Indicator Styling */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.step {
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ddd;
    color: #333;
    font-weight: bold;
    margin: 0 10px;
    cursor: pointer;
}

.step.active {
    background-color: #4CAF50;
    color: white;
}

/********************
*****Styling of Footer*****
******************/

/**************
***************
styling of footer
***************
**************/

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;
    }

    .battery-type:hover .dropdown {
        margin-left: -30px;
    }

    .head-elements, .head-elements a {
        font-size: 0.7rem;
        padding: 5px;
    }
    main {
        flex-direction: column;
        padding: 10px;
    }
    .story-content:target {
        padding-top: 0px;
    }
    aside {
        margin-top: 20px;
        text-align: center;
    }

    .content {
        margin: 10px 0;
        height: 30vh;
        border-right: none;
        text-align: center;
    }
    .content h2 {
        position: relative;
        top: 15%;
        text-align: center;
    }
    
    .content ul {
        position: relative ;
        top: 65%;
    }

    #mainContent ul {
        align-items: center;
    }

    .process-step {
        flex-wrap: wrap;
        flex-direction: column;
     /* Stack image and content vertically */
    }

    .step-image {
        width: 100%; /* Full width for smaller screens */
        margin: 0 0 5px 0;
    }

    .step-content {
        width: 100%; /* Full width for smaller screens */
    }

    .step-number {
        font-size: 20px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.95rem;
    }

    
    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;
    }



    .options {
        display: none;
    }

    .options.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        width: 100%;
        z-index: 1;
        background-color: #4CAF50;
    }

    .battery-type:hover .dropdown {
        margin-left: -30px;
    }

    .head-elements {
        font-size: 18px;
        padding: 10px;
    }
    .head-elements a {
        font-size: 0.8rem;
    }
    main {
        flex-direction: column;
        padding: 10px;
    }
    .story-content:target {
        padding-top: 0px;
        margin-top: 0;
    }

    .content {
        display: block;
        margin: 10px 0;
        border-right: none;
        text-align: center; 
        align-items: center;
    }

    #mainContent ul {
        align-items: center;
    }

    .process-step {
        flex-wrap: wrap;
        flex-direction: column;
     /* Stack image and content vertically */
    }

    .step-image {
        width: 100%; /* Full width for smaller screens */
        margin: 0 0 5px 0;
    }

    .step-content {
        width: 100%; /* Full width for smaller screens */
    }

    .step-number {
        font-size: 20px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.95rem;
    }

    aside {
        margin-top: 20px;
        text-align: center;
    }

    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;
    }

    .content {
        justify-content: center;
        font-size: 1.1rem;
    
    }

    .process-step {
        padding: 20px;
        margin-bottom: 20px;
    }

    .step-image {
        width: 35%;
    }

    .step-content {
        width: 65%;
    }

    .step-number {
        font-size: 28px;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .step-description {
        font-size: 1.1rem;
    }


    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- 250px);
    }
    .content {
        justify-content: center;
        font-size: 1.1rem;
    
    }

    .process-step {
        padding: 20px;
        margin-bottom: 15px;
    }

    .step-image {
        width: 35%;
    }

    .step-content {
        width: 65%;
    }

    .step-number {
        font-size: 28px;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .step-description {
        font-size: 1.1rem;
    }


    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{
        min-height:calc(100vh - 255px);
    }


    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;
    }
}
