.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 -4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06), 0 -2px 4px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.calculator-heading {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tablink {
    flex: 1 1 auto;
    padding: 10px 20px;
    border: none;
    background: #c2a877; /* Background color for inactive tabs */
    color: #000; /* Text color for inactive tabs */
    font-weight: bold; /* Make tab text bold */
    cursor: pointer;
    text-align: center;
    margin: 5px;
}

.tablink.active {
    background: #8C5ABD;
    color: #fff; /* Text color for active tab */
    font-weight: bold; /* Make tab text bold */
}

.tabcontent {
    display: none;
    flex-direction: column;
}

.tabcontent.active {
    display: flex;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.results p {
    font-weight: bold;
}

.results span {
    color: #8C5ABD;
}

canvas {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

#investmentChart {
    width: 100%;
    height: 300px; /* Adjust height as needed */
}

@media (max-width: 768px) {
    .calculator-container {
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1), 0 -6px 8px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.06), 0 -4px 6px rgba(0, 0, 0, 0.06);
    }
    .tabs {
        flex-direction: column;
    }

    .tablink {
        margin: 5px 0;
        background: #c2a877; /* Ensure background color for inactive tabs is consistent */
        color: #000; /* Ensure text color for inactive tabs is consistent */
        font-weight: bold; /* Make tab text bold */
    }

    .tablink.active {
        background: #8C5ABD;
        color: #fff; /* Text color for active tab */
        font-weight: bold; /* Make tab text bold */
    }

    #investmentChart {
        height: 200px; /* Adjust height for smaller screens */
    }
}