@font-face {
    font-family: "cmuntt";
    src: url("cmuntt.woff") format("woff");
}

body {
    font-family: "cmuntt";
    padding-left: 1em;
    padding-right: 1em;
}

p {
    font-size: 1rem;
}

#status {
    color: #e77;
}

#length_input {
    display: inline;
    width: 3rem;
}

#length_apply_btn {
    display: inline;
}

h1 {
    font-size: 2rem;
    font-weight: normal; 
    margin-bottom: 0;
    margin-top: 2em;
}

h2 {
    font-size: 1.5rem;
}

input {
    font-family: "cmuntt"
}

.icon {
    width: 3rem;
    padding-right: 0.3rem;
    margin-bottom: -0.4rem;
    display: inline;
}

#typed, .ok {
    color: blue;
}

#typed_ng, .ng {
    color: red;
}

.cursorfake, #test_area:focus #untyped .char:first-of-type, .overwritten +  .char {
    background-color: black;
    color: white;
}

.overwritten {
    display: none;
}

#loading {
    color: #e77;
}

#test_area {
    height: 8rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

#test_area > p {
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
}

#text {
    color: transparent;
    text-shadow: 0 0 5px #aaa;
    z-index: 100;
}

div:focus {
    outline: none;
    border: none;
}

#unfocused_warning {
    z-index: 101;
    background-color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

#unfocused_warning > p {
    position: relative;
    margin: 0;
    padding: 0;
    top: 50%;
    transform: translate(0, -50%);
}

#test_area:focus > #unfocused_warning {
    display: none;
}

#test_area:focus > #text {
    color: black;
    text-shadow: none;
}

#wpm, #acc {
    color: blue;
}

#logbox {
    position: relative;
    height: 20rem;
    border: 1pt solid #ccc;
    overflow-y: scroll;
}

.typed_segment:hover {
    background-color: #ee7;
}

.typed_segment .incomplete {
    color: #999;
}

.backspace {
    background-color: #f44;
    color: white;
}

.deleted {
    color: red;
    text-decoration: line-through;
}

#settings, #test {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2pt solid black;
}

@media screen and (min-width: 8in) {
    body {
        width: 8in;
        margin: auto;
    }
}