/* Estilos generales para centrar la calculadora */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #302e2e;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Contenedor de la calculadora */
#calculator {
    touch-action: manipulation;
    background-color: #333;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    width: 295px;
}

/* Estilos para la pantalla */
#display {
    width: 100%;
    height: 60px;
    background-color: #0f0f0fa8;
    color: #fff;
    text-align: right;
    font-size: 2rem;
    padding: 10px;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#buttonBox {
    display: flex;
    width: 100%;
}

/* Contenedor de los botones numéricos */
#buttonContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Contenedor de los operadores */
#operators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#b0, #del {
    width: 135px;
    border-radius: 25px;
}


/* Estilo general para los botones */
button {
    background-color: #5e5e5e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    height: 60px;
    width: 60px;
    margin: 5px;
    box-shadow: 0px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    cursor: pointer;
}

/* Estilo para los botones de operaciones */
button[value="/"],
button[value="*"],
button[value="+"],
button[value="-"],
#equals {
    background-color: #ff9500;
}


/* Estilo para el botón de Clear */
#clear, #del {
    background-color: #a5a5a5;
    color: #000;
}


/* Estilo para botones cuando se presionan */
button:active {
    background-color: #ff8500;
}


/* Responsive: ajustar tamaño para pantallas pequeñas */
@media (max-width: 400px) {
    #calculator {
        width: 100%;
    }
    
    #display {
        font-size: 1.5rem;
        height: 50px;
    }

    button {
        height: 50px;
        width: 50px;
        font-size: 1.2rem;
    }
}
