:root {
    --primary-color: rgb(80, 80, 80);
    --text-color: 200, 200, 255;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        color: rgba(var(--text-color), 0.7);
    }
    50% {
        transform: scale(0.9);
        color: rgba(200, 0, 0, 0.9);
    }
    100% {
        transform: scale(1);
        color: rgba(var(--text-color), 0.7);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% -10%, rgb(80, 80, 80) 0%, rgb(0, 0, 0) 100%);
    font-family: "Lalezar", system-ui;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    user-select: none;
    transition: background 1s ease-in-out;
    animation: lightIn 3s ease-out forwards;
}


@keyframes lightIn {
    0% {
        background-size: 300% 300%;
        background-position: 50% 0%;
    }
    100% {
        background-size: 100% 100%;
        background-position: 50% 100%;
    }
}

.number {
    color: rgba(var(--text-color), 1);
    font-size: 16rem;
    transition: all 0.5s ease;
}

.counter, .mistakes {
    color: rgba(var(--text-color), 0.7);
    font-size: 1.5rem;
    margin-top: -1.5rem;
    opacity: 0;
}

.mistakes {
    margin-top: 0rem;
}

.timer {
    color: rgba(var(--text-color), 0.7);
    font-size: 1.5rem;
    position: absolute;
    top: 3rem;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    justify-self: center;
}



@keyframes fadeIn{
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.pi-numbers {
    color: rgba(var(--text-color), 0.7);
    font-size: 1.5rem;
    position: absolute;
    bottom: 3rem;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    justify-self: center;
}