/* General Body Styling */
body {
    font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
    background-color: #f7f7f7;
    color: #333;
    padding: 20px;

}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

input {
    width: 100%;
    /* Ensure inputs take up full width of container minus padding */
    max-width: 100%;
    /* Prevent inputs from exceeding the container width */
    box-sizing: border-box;
    /* Include padding and border in the element's total width */
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    /* Increase font-size to 16px to prevent mobile zooming */
}

input:focus {
    border-color: cadetblue;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Explanation Text Styling */
small {
    display: block;
    margin-top: -15px;
    margin-bottom: 20px;
    color: #888;
    font-size: 12px;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background-color: cadetblue;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #357ab8;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

td:first-child {
    font-weight: bold;
}

td:last-child {
    text-align: right;
}

.red-text {
    color: red;
}

/* Results Styling */
.results {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 20px;
}

.results h2 {
    font-family: 'Consolas', monospace;
    color: #444;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.results-table td:first-child {
    font-weight: bold;
    text-align: left;
}

.results-table td:last-child {
    text-align: right;
}

.positive {
    color: green;
}

.negative {
    color: red;
}

/* Charts and Gauge Container */
#charts-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#charts-container>div {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

#gauge-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

#gauge-container>div {
    width: 48%;
    height: 365px;
}

.hr {
    color: red;
}

.vintage-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Courier New", Courier, monospace;
    background-color: #f4f1de;
    border: 1px solid #ddd;
    text-align: left;
}

.vintage-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.vintage-table strong {
    font-weight: bold;
    font-size: 1.1em;
    color: #6d4c41;
}

.vintage-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.vintage-table tr:hover {
    background-color: #f1e3da;
}

.vintage-table .positive {
    color: #2e7d32;
}

.vintage-table .negative {
    color: #c62828;
}

.results-table td:first-child {
    text-align: left;
    /* Ensure the labels are aligned to the left */
}

.results-table td:nth-child(2) {
    text-align: right;
    /* Ensure the values are aligned to the right */
}

@media (max-width: 900px) {
    #gauge-container {
        flex-direction: column;
        gap: 20px;
    }

    #gauge-container>div {
        width: 100%;
        height: 300px;
    }
}