/* General page styling */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f8f9fa;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #444;
}

/* Wrapper to keep tables aligned and neat */
#tableWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Individual table containers */
.table-container {
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

th,
td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Alternating row colors */
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #e0e0e0;
}

/* Styling for the total score */
.score {
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

/* Color coding for positive/negative scores */
.score.blue {
    color: blue;
}

.score.red {
    color: red;
}

.score.black {
    color: black;
}

/* Animation for table entry */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tableWrapper {
    animation: fadeIn 0.5s ease-in-out;
}

#buttonContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

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

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

/* Disclaimer Styling */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

footer .disclaimer {
    font-style: italic;
}

footer p {
    margin: 0;
}

/* Explanation Styling */
.explanation {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.explanation p {
    margin: 0;
}
