/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer stays at the bottom */
    background-color: black;
    margin: 0;
}

a:link, a:visited {
    color: white; 
    text-decoration: none;
}

a:hover {
    color: #E1DCD0;
}

/* Navbar */
.navbar{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 150px;
    padding-right: 130px;
    width: 100%;
    height: 8%;
    background-color: #00246B;
    font-weight: 300;
    color: white;
}

.webname{
    font-size: 35px;
    display: flex;
}

.webname p{
    padding-top: 6px;
}

#logo{
    width: 60px;
    height: auto;
}

.navlinks{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 35px;
    gap: 26px;
    font-size: 20px;
}


/* Main Content */
.container {
    flex-grow: 1; /* Ensures footer stays at the bottom */
    width: 100%;
    max-width: 1000px;
    background: #E1DCD0;
    padding: 20px;
    margin: 80px auto 20px; /* Added margin-bottom to push footer down */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 600px; /* Ensures enough space between container and footer */
}

/* Calculator Section */
.calculator {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

h1 {
    color: #00246B;
    text-align: center;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

button {
    background-color: #00246B;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

.results {
    margin-top: 10px;
    font-size: 18px;
}

/* Instructions Section */
.instructions-container {
    width: 55%;
    padding: 20px;
}

.instructions-container h2 {
    color: #00246B;
    margin-bottom: 20px;
}

.instructions-container ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 16px;
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 300px;
}

/* Footer */
footer{
    height: 30%;
    width: 100%;
    background-color: #00246B;
    display: flex;

}

.webpagename{
    margin: 5px;
    width: 30%;
    height: 238px;
    padding: 18px 150px;
    border-right: 2px solid #808080;
    padding-right: 18px;
}

.logoname{
    display: flex;
}

#logoimg{
    width: 60px;
    height: 55px;
}

#websitename{
    font-size: 35px;
    color: white;
    padding-top: 7px;
    font-weight: 400;
}

.shead{
    padding-top: 10px;
    padding-left: 30px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.webtext{
    color: white;
    padding-top: 22px;
    font-size: 16px;
    padding-left: 10px;
    font-weight: 400;
    line-height: 25px;
}

.navcontact{
    margin: 5px;
    width: 40%;
    height: 238px;
    padding: 30px 33px;
    border-right: 2px solid #808080;
    font-size: 22px;
    color: white;
    font-weight: 400;
}

.navigationlink{
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.contact{
    font-size: 24px;
    padding-top: 10px;
    font-weight: 600;
}

.navigationpart1{
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.navigationpart2{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 7px;
}

.follow{
    padding: 6px 150px;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 0;
}

.followpart1{
    width: auto;
    height: 47%;
    margin: 0px 20px;
    border-bottom: 2px solid #808080;
}

.followus
{
    font-size: 22px;
    padding-top: 30px;
    color: white;
    padding-bottom: 12px;
}

.icons{
    display: flex;
    flex-direction: row;
    gap: 33px;
    padding-bottom: 20px;
}

.icons i{
    font-size: 25px;
    color: white;
}

.followpart2{
    width: auto;
    height: 53%;
    margin: 0px 20px;
    padding: 10px 0;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#disclaim{
    font-size: 16px;
    padding-bottom: 3px;
}

#text1{
    font-size: 14px;
    line-height: 18px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Navbar */
    .navlinks {
        flex-direction: column;
        gap: 10px;
    }

    /* Container */
    .container {
        flex-direction: column;
        align-items: center;
        min-height: auto; /* Allows dynamic height */
    }

    .calculator, .instructions-container {
        width: 100%;
    }

    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        align-items: center;
    }

    .webpagename, .navigationlink, .follow {
        width: 100%;
        margin-bottom: 20px;
    }

    .navigationlink {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .navigationpart1, .navigationpart2 {
        align-items: center;
    }

    .icons {
        justify-content: center;
    }
}