html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
    user-select: none;
    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;
    background-color: black;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

#configuration {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    z-index: 20;

    font-size: 40px;
    color: white;

    button {
        background-color: white;
        color: black;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 20px;
    }

    input {
        background-color: white;
        color: black;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-size: 20px;
    }
}

#game {
    position: static;
    top: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 100%;
    width: 100%;

    font-size: 80px;
    color: white;
    transform: rotate(90deg);
}

.hold-circle {
    position: absolute;
    overflow: hidden;
    border-radius: 50%;
    backdrop-filter: invert(1);
    pointer-events: none;
    height: 100%;
    transform: scale(0);
    aspect-ratio: 1;
    z-index: 10;
}

@keyframes blink {
    0% {
        background-color: gray;
        opacity: 0.5;
        box-shadow: 0 0 0 0 transparent;
    }

    30% {
        background-color: red;
        opacity: 1;
        box-shadow: 0 0 10px 10px red;
    }

    100% {
        background-color: gray;
        opacity: 0.5;
        box-shadow: 0 0 0 0 transparent;
    }
}

#indicatorLight {
    position: absolute;
    border-radius: 50%;

    width: 70px;
    aspect-ratio: 1;
    z-index: 15;

    top: 15px;
    left: 15px;
    background-color: gray;
    opacity: 0.5;
    box-shadow: 0 0 0 0 transparent;

    transition: background-color 0.5s ease-in-out, opacity 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

#indicatorLight.stage1 {
    animation: blink 1s infinite;
}

#indicatorLight.stage2 {
    animation: blink 0.5s infinite;
}

#indicatorLight.stage3 {
    animation: blink 0.05s infinite;
    background-color: rgb(241, 255, 196) !important;
    box-shadow: 0 0 10px 10px rgb(241, 255, 196) !important;
}

#indicatorLight.stage4 {
    background-color: rgb(241, 255, 196) !important;
    opacity: 1 !important;
    box-shadow: 0 0 10px 10px rgb(241, 255, 196) !important;
}

body.loss {
    background-color: red !important;
}

body.win {
    background-color: green !important;
}