:root {
    --bg: white;
    --content: black;
    --border: rgb(200, 200, 200);
    --incorrent: rgba(255, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: rgb(15, 15, 15);
        --content: white;
        --border: rgb(50, 50, 50);
        --incorrent: rgba(255, 156, 156, 0.3);
    }
}


body {
    width: 100vw;
    height: 100vh;

    margin: 0px;

    display: flex;
    flex-direction: column;

    background-color: var(--bg);

    position: relative;
}

body > h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 3vh;

    color: var(--content);

    width: calc(100% - 1.4vh);
    padding: 0.7vh;
    margin: 0px;

    border-bottom: 2px solid var(--border);   
}

main {
    width: 100vw;
    flex-grow: 1;

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

main > pre {
    position: relative;
    display: flex;

    flex-direction: row;
}

main > pre > h1, #wpm {
    margin: 0px 5px;
    font-size: 4vh;
    height: auto;

    display: block;
    text-align: center;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;

    color: var(--content);
}

#input {
    background-color: transparent;

    margin-top: 2vh;
    height: 4vh;

    margin: 2px;

    border: 2px var(--border) solid;
    border-radius: 10px;

    font-size: 3vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;

    color: var(--content);

    transition: border-color, border-width, margin 250ms, 250ms, 250ms;
}

#input:focus {
    border-color: gray;
    border-width: 4px;

    margin: 0px;

    outline-width: 0px;
    outline-style: none;
}

#overlay {
    position: absolute;

    padding: 5px;
    border-radius: 5px;

    display: block;
    backdrop-filter: invert(100%);

    z-index: 10;

    transition: all 150ms;
}

.island {
    background-color: rgba(128, 128, 128, 0.1);

    margin: 0px auto 30px auto;

    border-radius: 30px;

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

#wpm {
    margin: 2.5vh;
    font-size: 3vh;

    text-align: center;
}


#sel-data {
    margin: 0px 0px 2vh 0px;
}