* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
}

.calculadora {
    width: 320px;
    background-color: #222;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#pantalla {
    width: 100%;
    height: 70px;

    margin-bottom: 15px;
    padding: 10px;

    border: none;
    border-radius: 10px;

    background-color: #eee;

    font-size: 32px;
    text-align: right;

    color: #222;
}

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

button {
    height: 60px;

    border: none;
    border-radius: 12px;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;

    background-color: #444;
    color: white;

    transition: 0.1s;
}

button:hover {
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

/* Números */
.numero {
    background-color: #555;
}

/* Operadores */
.operador {
    background-color: #ff9500;
}

/* Botón C */
#borrar {
    background-color: #d9534f;
}

/* Botón porcentaje */
#porcentaje {
    background-color: #777;
}

/* Botón decimal */
#decimal {
    background-color: #555;
}

/* Botón igual */
#igual {
    background-color: #28a745;
}

/* Botón cero más grande */
.cero {
    grid-column: span 2;
}