/* General Body and Page Layout */
body {
    background-color: #343a40;
    font-family: Lato, sans-serif;
    margin: 0;
    padding: 10px;
    color: #d7d7d7;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 300px;
    height: auto;
}

/* Header Section */
.header {
    font-size: 26px;
    line-height: 1.5;
    max-width: 1000px;
    margin: 0 auto 20px;
    text-align: center;
}

.header-box {
    background-color: #5d6166;
    max-width: 500px;
    width: 90%;
    padding: 5px 20px;
    border-radius: 10px;
    display: inline-block;
}

/* New styling for the home page informational text */
.info-text {
    font-size: 26px;
    line-height: 1.5;
    margin-top: 10px;
    color: #d7d7d7;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* New styling for the home page button group */
.single-column-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 200px; /* Limits the width of the buttons */
    margin: 20px auto; /* Centers the button column on the page */
}

/* Main Calculator Grid */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns for all items */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2a2e33;
    border-radius: 10px;
}

/* Styles for the first column: inputs and button */
.input-and-button-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.button-container {
    margin-top: 10px;
}

/* Styles for the bonus columns */
.bonus-column {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
}

.header-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Form and Button Styling */
.form {
    width: 100%;
    background-color: #acacac;
    color: #343a40;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    border-style: none;
    box-sizing: border-box;
    text-align: center;
}

.button {
    width: 100%;
    background-color: #d7d7d7;
    color: #343a40;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    border-style: none;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Results section */
.grid-results-row {
    grid-column: 1 / 4; /* Span all three columns */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid-item-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1e2124;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.grid-item-results p {
    font-size: 18px;
    margin: 0;
}

.result-number {
    font-size: 24px;
    font-weight: bold;
    color: #5cb85c;
    margin-top: 5px;
}

/* Added to fix the radio button layout */
.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    flex-direction: row; /* Forces the radio button and text to be inline */
}

/* Added to fix the bonus selectors layout */
.bonus-selectors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center; /* Centers the content horizontally */
}
