html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0 auto;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    /* Light gray background */
    color: #f44336;
    max-width: 1600px;
}

.cal-section {
    align-items: center;
    text-align: center;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

.header {
    /* Align items from the top */
    align-items: center;

    width: 100%;
    background-color: rgb(239, 239, 239);
    color: black;
    text-align: center;
    padding: 10px;
    /* Allow scrolling on overflow */
}

/* Left Column - Menu and Site Name */
.left-column {
    width: 250px;
    background-color: #f44336;
    /* Dark blue */
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: white
        /* Light blue for contrast */
}

.site-name a {
    color: white;
}

.site-name a:hover {
    color: rgb(29, 29, 29);
}

.menu {
    display: flex;
    flex-direction: column;
}

.menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: #e8e8e8;
    transition: background-color 0.3s ease;
}

.menu a:hover {
    background-color: #373737;
    color: white;
    /* Slightly lighter dark blue */
}

/* Right Column - Content */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #efefef;
    /* White background for content */
}

.content {
    flex: 1;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    color: #f44336;
    /* Dark blue */
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    color: #f44336;
}

h3 {
    font-size: 1.75rem;
    color: #f44336;
}

h4 {
    font-size: 1.5rem;
    color: #f44336;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

a {
    color: rgb(35, 76, 142);
}

a:hover {
    text-decoration: none;
}

/* Lists */
ul,
ol {
    font-size: 1.2rem;
    margin: 20px 0;
    padding-left: 20px;
}

li {
    margin: 10px 0;
    color: #555;
}

/* Buttons */
button {
    margin: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #f44336;
    /* Light blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button a {
    color: #e8e8e8;
}

button:hover {
    background-color: #2a2b2b;
    color: #e8e8e8;
    /* Darker blue on hover */
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 10px;
    border: 1px solid #3498db;
    text-align: left;
}

th {
    background-color: #3498db;
    color: white;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Responsive Menu for Mobile */
.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-column {
        width: 100%;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-name {
        margin-bottom: 0;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f44336;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        /* Ensure menu is above other content */
    }

    .menu.active {
        display: flex;
    }

    .menu-icon {
        display: block;
        padding-right: 20px;
    }

    /* Add padding to the right to prevent overlap with scrollbar */
    .right-column {
        padding-right: 15px;
    }

    h1 {
        font-size: 1.75rem;
        color: #f44336
            /* Dark blue */
            margin-top: 0;
    }

    h2 {
        font-size: 1.5rem;
        color: #f44336;
    }

    h3 {
        font-size: 1.2rem;
        color: #f44336;
    }

    h4 {
        font-size: 1.0rem;
        color: #f44336;
    }

    p {
        font-size: 1.0rem;
        line-height: 1.6;
        color: #555;
    }
}

.footer-menu {
    margin-bottom: 10px;
    color: white;
}

.footer-menu a {
    color: white;
    /* Change this to your desired color */
    text-decoration: none;
    /* Optional: removes underline */
}

.footer-menu a:hover {
    color: lightgray;
    /* Change color on hover if needed */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f44336;
    /* Dark blue */
    color: white;
    margin-top: auto;
    /* Push footer to the bottom */
}


.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.tool-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(105, 170, 255, 0.5);
    transition: background-color 0.3s ease;
    text-decoration: none;
    max-width: 300px;
    /* Adjust max width as per your design */
    width: 100%;
    /* Ensure each button takes full width */
    box-sizing: border-box;
    /* Include padding in width calculation */
}

button,
.link-button {
    padding: 15px 30px;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(105, 170, 255, 0.5);
    transition: background-color 0.3s ease;
    text-decoration: none;
}

button:hover,
.link-button:hover {
    background-color: #363636;
    color: #efefef;
}

.current {
    background-color: rgb(200, 14, 14);
    color: rgb(232, 232, 202);
}


css from old file
/* custom css */

.trending {
    background-color: #CDF8F0;
    font-size: 16px;
}

.cal-section {
    max-width: 100%;
    padding: 30px;
    background-color: #CDF8F0;
    ;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 6px;
}

input {
    width: auto;
    font: inherit;
    margin: 3px;
    height: 30px;
}

p {
    font-size: larger;
    padding-bottom: 5px;
}

li {
    font-size: 18px;
}

body {
    margin: 0;
    max-width: 1600px;
    margin: auto;
}


.related-calculators {
    font-size: 16px;
    background-color: #CDF8F0;
}

.related-head {
    background-color: #CDF8F0;
    font-size: 20px;
}


.w3-sidebar {
    z-index: 3;
    width: 250px;
    top: 45px;
    bottom: 0;
    height: inherit;
}

/* Style the buttons 
  form {
    flex-direction: column;
    align-items: center;
    display: flex;
  }
 */



/* Style the result paragraph */
#result {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}