/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #fff;
    min-height:100vh;
    position:relative;
}

/* Container to wrap all content */
.container {
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    align-items: flex-start;
    max-width: 1200px; /* Limits the content width */
    margin: 0 auto; /* Center the container with margins on both sides */
    padding: 20px; /* Adds space inside the container */
    height: 100vh;
}

/* Header */
header {
    text-align: left; /* Align left for larger screens */
    background-color: #222;
    color: white;
    padding: 20px;
}

/* Navigation styles */
nav {
    width: 20%; /* Set nav width */
    padding: 20px;
    background-color: #333;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    margin: 10px 0;
    padding: 10px;
    background-color: #555;
}

nav ul li a {
    text-decoration: none;
    color: white;
    display: block;
}

/* Main content area */
main {
    width: 70%; /* Set main content to 70% of container */
    padding: 20px;
    /* increase the font size */
    font-size: calc(11px + 0.5vw);
    background-color: #222;
    color: white;
}
img{
    width: 300px;
    height: auto;
}

/* Footer (optional for additional information) */
footer {
    width: 100%;
    background-color: #222;
    color: white;
    padding: 10px;
    text-align: center;
    /* position: absolute; */
    bottom: 0;
}


/* ------------------------- calculator design sheet starts here ------------------*/
.Calcu {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2d2d2d;
    padding: 50px;
    max-width: 200px;
    width: 100%;
}

/* Form elements inside calculator */
.Calcu label, .Calcu input, .Calcu button .Calcu h3{
    font-size: calc(10px + 0.5vw);
    margin: 0 auto;
}

/* Buttons for operations */
.Calcu button {
    background-color: #2d2d2d;
    color: white;
    display: flex;
    flex-direction: row;
    margin: 5px 10px;
}

#output {
    font-size: calc(10px + 0.5vw);
    margin-top: 15px;
    color: #333;
}

/* Responsive design for smaller screens (max-width: 750px) */
@media screen and (max-width: 750px) {
    .container {
        flex-direction: column; /* Stack nav and main vertically */
        padding: 0;
    }

    header {
        text-align: center; /* Center the header for small screens */
    }

    nav {
        width: 100%; /* Nav takes full width */
    }

    main {
        width: 100%; /* Main content takes full width */
        text-align: center; /* Center the content inside */
        margin: 0 auto; /* Center the main content */
    }

    nav ul {
        display: flex;
        flex-direction: row;
    }

    li {
        margin: 8px;
    }

    footer{
         /* Ensure footer stays within the flow */
        bottom: 0;
        width: 100%;
    }

    /* Calculator interface */
    .Calcu {
        padding: 15px;
    }

    .Calcu button {
        padding: 8px 16px;
    }

}
