body {
    font-family: Arial, sans-serif;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

header {
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
}

header .small {
    font-size: 0.5rem;
    color: gray;
}

.button-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1em;
}

.canvas {
    width: min(90vw, 500px);
    border: 1px solid #000;
    margin: 0 auto 20px auto;
}

#scoreRecommendations,
#error {
    margin: 20px auto;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#scoreRecommendations h2,
#error h2 {
    font-size: 1.2em;
    color: #333;
}

.text-center {
    text-align: center;
}


#jsonTableContainer table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem;
}

#jsonTableContainer thead {
    font-size: 1.2rem;
}

#jsonTableContainer td {
    padding: 0.25rem;
}

.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

.toggle-buttons label {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

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

.toggle-buttons label:hover {
    background-color: #e0e0e0;
}

.toggle {
    b {
        text-align: center;
        display: inline-block;
        margin: 0.25rem;
        width: 100%;
    }

    div {
        margin: 1rem;
    }
}