* {
    font-family: "Fraunces", sans-serif;
    color: #F2DF3A;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    overflow-x: hidden;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle, #0ef, #1f242d);
    overflow: hidden;
}

img {
    width: 200px;
    margin: 40px auto;
    display: block;
    -webkit-animation: heartbeat 2.2s infinite;
}

@-webkit-keyframes heartbeat {

    86% {
        transform: scale(1, 1);
    }

    88% {
        transform: scale(1.1, 1.1);
    }

    90% {
        transform: scale(1.2, 1.2);
    }

    92% {
        transform: scale(1.2, 1.2);
    }

    94% {
        transform: scale(1.3, 1.3);
    }

    96% {
        transform: scale(1.2, 1.2);
    }

    98% {
        transform: scale(1.2, 1.2);
    }

    100% {
        transform: scale(1.1, 1.1);
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.calculadora {
    display: grid;
    grid-template-columns: repeat(4, 75px);
    grid-template-rows: 160px repeat(5, 75px);
    background: linear-gradient(-45deg, #F2DF3A, #F2DF3A, #23a6d5, #0078AA);
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
    padding: 15px;
    border-radius: 32px;
    box-shadow: 15px 10px 0px 5px #00000033;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

button {
    color: #F2DF3A;
    cursor: pointer;
    margin: 5px;
    padding: 0;
    border-radius: 32px;
    font-size: 1.5em;
    border: none;
    background-color: #0078AA;
    box-shadow: 5px 5px 10px -3px #000099;
}

button:active {
    background-color: #000099;
}

button:focus {
    outline: none;
}

.col-2 {
    grid-column: span 2;
}

.display {
    grid-column: 1 / -1;
    padding: 16px;
    display: flex;
    margin: 10px 10px 20px;
    flex-direction: column;
    align-items: flex-end;
    background-color: #363636;
    border-radius: 32px;
    text-align: right;
    justify-content: space-between;
    word-break: break-all;
    box-shadow: 0px 0px 0px 10px #00000033;
}

#valor-actual {
    font-size: 1.5em;
}

#valor-anterior {
    font-size: 2em;
}