
body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

h1 {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

label {
    font-weight: bold;
}

input {
    width: 100%;
    padding: 6px;
}

.required {
    color: red;
    margin-left: 2px;
}

.label-text {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    background: #0077cc;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #005fa3;
}

#output {
    margin-top: 20px;
    white-space: pre-wrap;
    background: #eef;
    padding: 10px;
    border-radius: 5px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #014106;
    color: white;
    padding: 1rem;
    padding-right: 3.5rem;
    font-size: 1.5rem;
    min-height: 60px;
}

.navigation a:hover {
    color: lightblue;
    text-decoration: overline;
}

a:link,
a:visited,
a:active {
    color: white;
}

.site-title {
    flex: 1;
}

.navigation {
    flex: none;
}

#menu {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
}

.navigation ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 100%;
    margin: 2rem auto;
}

.side-img {
    flex: 0 0 25%;
    max-width: 100%;
    height: auto;
    margin-right: 0.1rem;
}

.center-img {
    flex: 0 0 50%;
    max-width: 100%;
    height: auto;
}

.side-img:last-of-type {
    margin-right: 0;
    margin-left: 0.1rem;
}

/* ---------------------------------------------------------
 *                 RETIREMENT SIMULATOR
 * --------------------------------------------------------- */

main {
    background: #e9ecef;
}

 #retirement-simulator .form-section {
    grid-column: 1 / -1;
    max-width: 380px;
    margin: 0 auto;
}

#retirement-simulator .form-grid {
    grid-template-columns: 1fr;
}

#retirement-simulator .sim-btn {
    width: 100%;
}

#retirement-simulator {
    max-width: 1100px;
    margin: 2rem auto;
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

#retirement-simulator .sim-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

#retirement-simulator .sim-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

#retirement-simulator .sim-header p {
    color: #666;
    font-size: 0.95rem;
}

#retirement-simulator .app-main
{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
}

#retirement-simulator .sim-box {
    background: #fafafa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

#retirement-simulator .sim-box h2 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #444;
}

/* --------------------------------------
 *           Form Formatting
 * -------------------------------------- */
#retirement-simulator .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

#retirement-simulator .form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

#retirement-simulator .form-grid input {
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

#retirement-simulator .form-grid input:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.15);
}

#retirement-simulator .warning {
    font-size: 0.85rem;
    color: #b35b00;
    margin-bottom: 0.75rem;
}

#retirement-simulator .sim-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: none;
    background: #0077cc;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
    width: 100%;
}

#retirement-simulator .sim-btn:hover {
    background: #005fa3;
}

#retirement-simulator #resultsText {
    width: 100%;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    resize: vertical;
    background: #fff;
}

/* --------------------------------------
 *          Charts section
 * -------------------------------------- */
#retirement-simulator .charts-section {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
    background: #fafafa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    overflow: auto;
}

#retirement-simulator .chart-wrapper
{
    background: white;
    padding: 1rem;
    border:1px solid black;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#retirement-simulator .chart-wrapper canvas {
    margin-top: 0;
}

#retirement-simulator .chart-wrapper h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #444;
}

@media (max-width: 900px) {
    #retirement-simulator .sim-main
    {
        grid-template-columns: 1fr;
    }

    #retirement-simulator .form-grid
    {
        grid-template-columns: 1fr;
    }
}
/* -------------------------
 *        Footer
 * ---------------------------- */
.footer
{
    grid-column: 1 / 3;
    grid-row: 3;
    background: #014106;
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 1.25rem;
}

/* -------------------------
 *   Gallery grid for footer
 * -------------------------- */
.gallery-grid section
{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.one-year-warning
{
    background: #fff4e5;
    border-left: 4px solid #e69500;
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #5a3d00;
}

.one-year-warning p
{
    margin: 0 0 0.5rem 0;
}

.one-year-checkbox
{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.warning-box
{
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 16px;
    border-radius: 6px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.radio-option
{
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
}