body {
    font-family: sans-serif;
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

#donate-button {
    padding: 5px;
    font-size: 1em;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    margin: 10px;
}

#start-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.range-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-title {
    margin: 0;
    font-size: 1.05em;
    color: #1f2a37;
}

.info-button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #9aa3b2;
    background-color: transparent;
    color: #546173;
    font-size: 0.78em;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.info-button:hover,
.info-button:focus-visible {
    background-color: #f2f5f9;
    color: #2f3a48;
    border-color: #7d8898;
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(92vw, 420px);
    background-color: #1f2a37;
    color: #fff;
    font-size: 0.9em;
    line-height: 1.45;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 2;
}

.range-heading:hover .info-tooltip,
.range-heading:focus-within .info-tooltip,
.range-heading.tooltip-open .info-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

#start-section button {
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#start-section button:hover {
    background-color: #0056b3;
}

#start-section .info-button {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #c4cbd6;
    background-color: transparent;
    color: #7d8795;
    font-size: 0.7em;
    font-weight: 600;
    line-height: 1;
}

#start-section .info-button:hover,
#start-section .info-button:focus-visible {
    background-color: transparent;
    color: #5f6978;
    border-color: #aeb7c4;
}

.range-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 12px 16px;
    width: min(100%, 360px);
}

.range-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95em;
}

.range-group label {
    font-weight: 600;
    color: #333;
}

.range-group input {
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 1em;
}

.range-group input:focus {
    outline: 2px solid rgba(0, 123, 255, 0.25);
    border-color: #007bff;
}

.range-help {
    width: min(100%, 360px);
    margin: 0;
    color: #444;
    font-size: 0.92em;
    line-height: 1.4;
    text-align: center;
}

.range-help.error {
    color: #b00020;
}

#test-section {
    display: flex;
    gap: 30px;
}

.left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.table-container {
    overflow-x: auto;
}

#data-table {
    border-collapse: collapse;
    border: 1px solid #ccc;
}

#data-table th, #data-table td {
    border: 1px solid #ccc;
    padding: 0px;
    text-align: center;
    min-width: 30px;
}

#data-table th {
    background-color: #f0f0f0;
}

#x-axis-label {
    text-align: center;
}

.right-panel {
    display: flex;
    flex-direction: column;
}

#question-container {
    margin-bottom: auto;
}

.options label {
    display: block;
    margin-bottom: 8px;
}

#next-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

#next-button:hover:enabled {
    background-color: #1e7e34;
}

#next-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

#results-section {
    text-align: center;
    margin-top: 20px;
}

#results-section button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#results-section button:hover {
    background-color: #0056b3;
}

#home-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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