body {
    background: linear-gradient(to right, rgb(84, 112, 163), rgba(255, 253, 171, 0.89));
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
h2 {
    font-family: 'Dancing Script', cursive;
    color: rgb(27, 57, 57);
    font-size: 3.5rem;
}

/* Animación de desvanecimiento :) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.translucent-container {
    background-color: rgba(219, 192, 246, 0.44);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease-in-out;
}

/* Efecto hover */
.translucent-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.calculator {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #d8d6d6;
}

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

.grid-item {
    font-size: 24px;
    text-align: center;
    border-radius: 5px;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.grid-item:active {
    background-color: #ddd;
}

.display {
    grid-column: span 4;
    background-color: #333;
    color: white;
    font-size: 2rem;
    padding: 10px;
    text-align: right;
}

.operator {
    background-color: #5bc0de;
    color: white;
}

.equal {
    grid-row: span 3;
    grid-column: 4 / 5;
    background-color: #f1f1f1;
    color: #000000;
}

.clear {
    background-color: #d9534f;
    color: white;
}

.zero {
    grid-column: span 2;
    background-color: #f7f7f7;
    color: black;
}

footer {
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 30px 0;
    border-top: 15px solid rgba(219, 192, 246, 0.59);
    text-align: center;
    width: 100%;
    position: relative;
}


