*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    overscroll-behavior: none;
}
body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 100vh;

    background-image: url(36372.webp);
    background-position: center;
    background-size: cover;
}

.element{
    color: hsl(0, 0%, 96%);
    font-family: monospace;
    font-size: 4em;
    font-weight: bold;
    padding: 2rem;
    user-select: none;
    -webkit-user-select: none;

    border-radius: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 
    inset 0 0 1rem 2px rgba(255, 255, 255, 0.2),
    0 0 8px rgba(0, 0, 0, 0.5);
}

#stopwatch{

    & #controls{
        display: flex;
        justify-content: space-evenly;
        margin: 0.2rem auto;
    }
    button{
        padding: 0.4rem;
        background-color: transparent;
        box-shadow: 0 0 1rem 2px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: white;
        font-size: 2rem;

        transition: all 100ms ease;

        &:hover{
            cursor: pointer;
        }
    }

    /* custom hover color for buttons */
    #startBtn:not(:disabled):hover{
        background-color: rgba(123, 255, 123, 0.1);
    }
    #stopBtn:not(:disabled):hover{
        background-color: rgba(255, 123, 123, 0.2);
    }
    #resetBtn:not(:disabled):hover{
        background-color: rgba(123, 123, 255, 0.2);
    }

    button:active, button:disabled{
            box-shadow: none;
            filter: brightness(0.8);
    }
}

