/*
New font and color scheme for better readability and accessibility.
*/
*, *::before, *::after {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: #e6f0ff; /* A light, clean blue */
    margin: 0;
    padding: 20px;
    color: #333;
}

h1 {
    text-align: center;
    color: #333;
    padding-top: 80px;
    font-weight: 700;
}

#calculator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.card-positive {
    background-color: #e6ffed;
}

.card-negative {
    background-color: #ffe6e6;
}

.card-neutral {
    background-color: #fffbe6;
}

#summary {
    text-align: center;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    border-bottom: 3px solid #0056b3;
}

#summary h2 {
    font-weight: 700;
}

#summary p {
    font-.size: 1.4em;
    font-weight: 700;
}

#status-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-top: 15px;
    height: 25px;
    overflow: hidden;
}

#status-bar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    border-radius: 5px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

#calculator-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.option-card h3 {
    margin-top: 0;
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.option-group {
    margin-bottom: 15px;
}

.explanation {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #0056b3;
    margin-bottom: 20px;
}

.info-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.button-group label {
    display: block;
    margin-bottom: 10px;
}

.button-group button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
}

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

.number {
    font-weight: 700;
    color: #003366; /* Darker blue for better contrast */
}

.button-group button .number {
    color: #ffffff; /* White numbers on blue buttons */
}
