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

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

/* Color Codes for Operations */
.mult { color: #333; background-color: rgb(255, 255, 0, 0.3); } /* Yellow tint */
.add { color: #333; background-color: rgb(0, 128, 0, 0.3); } /* Green tint */
.sub { color: #333; background-color: rgb(0, 0, 255, 0.3); } /* Blue tint */
.divi { color: #333; background-color: rgb(128, 0, 128, 0.3); } /* Purple tint */
.equals { color: white; background-color: rgb(255, 165, 0); } /* Orange */
.error { color: white; background-color: rgb(255, 0, 0); } /* Red */

/* Calculator Styling */
.calculator {
    margin-bottom: 30px;
}

.header {
    display: flex;
    justify-content: space-around;
    font-size: 0.7em;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

#display {
    grid-column: span 4;
    background-color: #eee;
    border: none;
    padding: 10px;
    font-size: 2em;
    text-align: right;
    border-radius: 5px;
}

button {
    padding: 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
}

button:hover {
    opacity: 0.8;
}

.span-2 {
    grid-column: span 2;
}

/* Data Analyzer Styling (Black Box) */
.data-analyzer {
    margin-top: 20px;
}

#datasetInput {
    width: 100%;
    background-color: #000; /* Black box background */
    color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.results-grid span:nth-child(odd) {
    font-weight: bold;
}
