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

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

.container {
    background: linear-gradient(135deg, #6c63ff, #3f3d56);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.calculadora {
    display: flex;
    flex-direction: column;
}

.display {
    background-color: #ffffff;
    color: #000000;
    font-size: 2rem;
    height: 60px;
    text-align: right;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

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

.botao {
    height: 60px;
    font-size: 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.botao:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

.botao-ce {
    background-color: #e74c3c;
    color: white;
}

.botao-ce:hover {
    background-color: #c0392b;
}

.botao-igual {
    background-color: #2ecc71;
    color: white;
    grid-column: span 2; /* Ocupa duas colunas */
}

.botao-igual:hover {
    background-color: #27ae60;
}

.botao-divide, .botao-multiplicar, .botao-minus, .botao-sinal {
    background-color: #3498db;
    color: white;
}

.botao-divide:hover, .botao-multiplicar:hover, .botao-minus:hover, .botao-sinal:hover {
    background-color: #2980b9;
}

.historico {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    color: #000;
    border-radius: 5px;
    width: 100%;
}