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

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px; /* Increased max-width for better layout */
}

h1 {
    color: #0056b3;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.input-group input[type="number"] {
    width: 80px;
    padding: 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
}

.button-group {
    margin-top: 20px;
    margin-bottom: 30px;
}

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

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

/* New styles for result display */
#resultsOutput {
    text-align: left;
    margin-top: 20px;
}

.pillar-result {
    background-color: #e9f7ff;
    border: 1px solid #cceeff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pillar-result h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #cceeff;
    padding-bottom: 10px;
}

.calculation-sets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 15px;
}

.calculation-set {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calculation-set p {
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #333;
}

.forbidden-numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    min-height: 25px;
}

.forbidden-numbers-display span {
    background-color: #ffdddd;
    color: #cc0000;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}
