/* Resetando estilos padrões */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #333;
    color: #fff;
}

.calculadora {
    background-color: #1c1c1c;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.display {
    width: 100%;
    height: 60px;
    font-size: 2rem;
    text-align: right;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background-color: #ffffff;
    color: #000000;
    font-weight: 300;
}

.botoes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.botao {
    font-size: 1.5rem;
    padding: 20px;
    background-color: #333;
    border: 2px solid #444;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-weight: 500;
}

.botao:hover {
    background-color: #555;
    transform: scale(1.05);
}

.botao:active {
    background-color: #777;
    transform: scale(1);
}

.botao:nth-child(4n) {
    background-color: #ff7a2d;
    color: white;
}

.botao:nth-child(4n):hover {
    background-color: #ff8945;
}

.botao:nth-child(4n):active {
    background-color: #4b7bb3;
}

.botao.limpar {
    background-color: #ff2d2d;
    color: white;
}

.botao.limpar:hover {
    background-color: #ff6a6a;
}

.botao.limpar:active {
    background-color: #ff3b3b;
}

/* Botão de igual ocupando 3 colunas */
.botao.igual {
    background-color: #ff7a2d;
    color: white;
    font-size: 1.5rem;
    padding: 20px;
    border: 2px solid #444;
    border-radius: 10px;
    cursor: pointer;
    grid-column: span 4;
}

.botao.igual:hover {
    background-color: #ff8742;
}

.botao.igual:active {
    background-color: #ff8742;
}
