body {
    font-family: sans-serif;
    margin: 2em;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    text-align: center;
    color: #0056b3;
}

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

.controls label {
    margin-right: 10px;
    font-weight: bold;
}

.controls select,
.controls button {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #eee;
    cursor: pointer;
    font-size: 1em;
}

.controls button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.controls button:hover:not(.active) {
    background-color: #e0e0e0;
}

#recommendation {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#recommendation h2 {
    color: #28a745;
    margin-bottom: 5px;
}

#recommendation p {
    font-size: 0.9em;
    color: #666;
}

#container {
    height: 500px; /* Increased height for better visibility */
    min-width: 310px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }
    .controls select,
    .controls button {
        margin: 5px 0;
        width: 80%; /* Adjust width for better touch targets */
    }
}
