    @keyframes correct_guess {
        from {background-color: #abc32f;}
        to {background-color: transparent; color: #000;}
    }

    @keyframes notice {
        0% { opacity: 0; margin-top: 60px; }
        50% { opacity: 1; margin-top: 0; }
        100% { opacity: 0; margin-top: -60px; }
    }
    

    html,
    body {
        margin: 0;
        padding: 0;
    }

    body {
        font-family: "Space Mono", monospace;
        font-style: normal;

        .hide-on-play {
            padding: 10px 0;

            p {
                font-size: 13px;
                text-align: left;
                margin-bottom: 10px;
            }
        }

        .end-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 20;
            background-color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 0.5rem;

            &:not(.active) {
                display: none;
            }

            h2,
            h3,
            h4 {
                margin: 0;
            }
            
            h4 {
                text-transform: uppercase;
            }
        }

        canvas {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 21;
        }

        &:not(.pre) {
            .hide-on-play,
            header {
                display: none;
            }
        }

        &.pre {
            .guess {
                bottom: 0;
                top: unset;

                .input {
                    background-color: #abc32f;

                    input {
                        &::placeholder {
                            text-align: center;
                            color: #000;
                        }
                    }
                }

                div.point_counter {
                    display: none;
                }
            }
            .container {
                margin-top: 0;
            }

            h1 {
                opacity: 0;
                transition: none;
            }
        }
    }
    h1, input {
        font-weight: 400;
        font-size: 1rem;
        width: 100%;
    }

    h1 {
        transition: opacity 2s;
        word-break: break-word;
    }

    form {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        input {
            padding: 5px;
            font-size: 20px;
            border: 1px solid #222;
        }

        button {
            background: #abc32f;
            color: #000;
            padding: 10px;
            border: 0;
            width: 100%;
            font-size: 20px;
        }
    }

    .notice {
        font-size: 3rem;
        position: absolute;
        top: 0;
        height: 100%;
        width: 100%;
        pointer-events: none;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 4;
        text-align: center;

        &.active {
            animation-name: notice;
            animation-duration: 1s;
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
        }

        &:not(.active) {
            p {
                opacity: 0;
            }
        }

         p {
            color: #000;
         }
    }

    .container {
        padding: 15px;
        margin-top: 50px;
        transition: margin 1s;
    }

    .guess {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        z-index: 3;
        transition: top 1s;

        > div {
            padding: 15px;
        }

        .input {
            flex-grow: 1;
        }
        
        input[name="guess"] {
            outline: 0;
            border: 0;
            appearance: none;
            width: 100%;
            background-color: transparent;
        }
    }
    span {
        padding: 0 10px;
        color: rgba(0,0,0,0.3);
        border-radius: 10px;
        position: relative;
        background-color: #eee;
        z-index: 1;
        overflow: visible;
        border: 1px solid rgba(0,0,0,0.1);


        &.solved,
        &.solved span {
            animation-name: correct_guess;
            animation-duration: 4s;
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
            padding-left: 0;
        }

    }
    div.point_counter {
        div {
            display: inline-block;
        }
    }
    div.life {
        display: none;
        width: 100%;
        height: 10px;
        background: #ddd;
        border-radius: 5px;
        overflow: hidden;

        div {
            width: 50%;
            height: 100%;
            background: blue;
        }
    }

    header {
        font-size: 1.2rem;
        padding: 10px 0;
        text-align: center;

        p {
            margin:0;
        }
    }