@font-face {
    font-family: 'NotoSansJP';
    src: url('font/NotoSansJP-Light.ttf') format('truetype'); /* Font file in TTF format */
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'NotoSans';
    src: url('font/NotoSans-Light.ttf') format('truetype'); /* Font file in TTF format */
    font-weight: 300;
    font-style: normal;
}
* {
    font-family: 'NotoSansJP', 'NotoSans', sans-serif;
}
html, body {
    margin: 0;
    padding: 0;
}
main {
    margin: 3% auto 0;
}
div.text, div.display, div.controls {
    margin: 0 auto;
    width: 50%;
    text-align: center;
}
label[for="text"] {
    display: none;
}
input[type="text"] {
    width: 50%;
    font-size: 20px;
    text-align: center;
}
input[type="range"] {
    width: 30%;
    height: 10px;
}
label[for="speed"] {
    display: block;
}
div.controls button {
    border: 2px solid #000000;
    border-radius: 5px;
    background-color: #fff;
    font-size: 20px;
    cursor: pointer;
}
div.controls button[disabled] {
    border: 2px solid #aaaaaa;
    background-color: #cccccc;
    cursor: default;
}
div.display > span {
    display: block;
    font-size: 60px;
    white-space: nowrap;
    transition: transform 0.5s ease-in-out;
}
div.display span.active {
    color: #ff0000;
}
div.display {
    overflow-x: hidden;
}