@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Workbench&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: gold;
    color: black;
    font-family: 'Alfa Slab One', Impact, 'C059', serif;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

h1 {
    font-size: 5rem;
    margin: 0;
    letter-spacing: 0.25rem;
    text-align: center;
}

#subtitle {
    font-size: 2rem;
    margin-bottom: 0;
}

p {
    text-align: center;
}

#counter {
    font-family: 'Workbench', monospace;
    font-size: 6rem;
    background-color: black;
    border-radius: 10px;
    color: rgb(38, 212, 22);
    padding: 1.5rem;
    width: 12rem;
    text-align: right;
}

#reset {
    margin-top: 3rem;
    border: none;
    border-radius: 10px;
    color: white;
    background-color: rgb(194, 0, 0);
    box-shadow: 0px 20px 0px rgb(114, 0, 0);
    padding: 1rem;
    font-size: 2rem;
    font-family: 'Alfa Slab One', Impact, serif;
    transition: 0.2s ease-out;
    user-select: none;

}

#reset:active {
    transition: 0.3s cubic-bezier(0.36, 0, 0.66, -0.56);
    box-shadow: 0px 0px 0px rgb(114, 0, 0);
    transform: translateY(20px);

}

.hidden {
    display: none;
}


#explode-vfx.visible {
    position: fixed;
    background-color: orange;
    border-radius: 100%;
    width: 100vw;
    height: 100vw;
    z-index: 999;
    animation: explode ease-in-out 1s forwards;
}

@keyframes explode {
    0% {
        display: block;
        transform: scale(0%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    70% {
        transform: scale(200%);
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}