* {
    font-size: 20px;

    color: var(--color-text);
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    margin: 0px;
    padding: var(--panel-gap);
    padding-top: 0px;

    overflow-y: scroll;

    font-family: 'Trebuchet MS';

    background-color: var(--color-bg);
}

.main-container h1:first-of-type {
    margin-top: 38px;
}

input {
    flex-grow: 0;
    flex-shrink: 1;

    padding: 3px;

    background-color: var(--color-ui);

    outline: none;
    border: 0px solid transparent;
    border-radius: 3px;
}

input:hover {
    background-color: var(--color-ui-hover);
}

input:active, input:focus {
    background-color: var(--color-ui-active);
    border-radius: 5px;
}

/* Textarea for the default character */
textarea {
    resize: none;
    border: none;
    outline: none;

    width: 1rem;
    height: 1rem;

    margin: 0px;
    padding: 0px;

    font-family: monospace;
    font-size: 0.9rem;

    background-color: transparent;
    overflow: hidden;

    -webkit-user-select: none;
    user-select: none;
}

.value-container #char::selection {
    background-color: var(--highlight-bg);
}

.hide {
    display: none;
}

/* Phone friendly */

@media screen and (max-width: 800px) {
    .value-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media screen and (max-width: 543px) {
    .main-container h1:first-of-type {
        margin-top: 73px;
    }
}