body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f2f2f2;
    font-size: 16px;
}

h1 {
    text-align: left;
    /* Alt: center */
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

@media (min-width: 1050px) {
    .card {
        width: 450px;
        height: 100px;
    }
}

label {
    display: block;
    margin-top: 5px;
    color: #333;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.radio-group label {
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked+label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.card-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.result-value {
    font-size: 2em;
    color: #007bff;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    /* Center the container horizontally */
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1050px) {
    .container {
        flex-direction: column;
        align-items: center;
        /* Center the container vertically */
    }

    .card {
        width: 400px;
    }
}

.banner {
    background: linear-gradient(to bottom, #d3d3d3, #f2f2f2);
    padding: 10px;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    width: calc(100%+20px);
}

@media (min-width: 1050px) {
    body {
        margin-top: 60px;
    }
}

.info-button {
    background-color: #ccc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    float: right;
    margin-right: 10px;
    margin-top: 20px;
    width: 40px;
}

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

.info-button:active {
    background-color: #004080;
}

/* Modal styling */
#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

#modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modal-close:hover,
#modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
}

#boxplot {
    margin-top: 20px;
    overflow-x: auto;
}

#boxplot-container {
    display: flex;
    justify-content: center;
}

/* Modal styling for percentage plot */
#percentage-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#percentage-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

#percentage-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#percentage-modal-close:hover,
#percentage-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#percentage-plot-container {
    display: flex;
    justify-content: center;
}

#percentage-plot {
    margin-top: 20px;
    overflow-x: auto;
}