html {
    font-size: 16px;
}

* {
    padding: 0;
    margin: 0;
    color: #0e0e0e;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
    text-decoration: none;
}

#content {
    max-width: 800px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/**
 * 输入区
 */

#input-area {
    text-align: center;
    background-color: #ebebeb;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    padding: 1rem 0;
    z-index: 100;
}

#input-area h3 {
    margin-bottom: 10px;
    color: rgba(255, 0, 0, 0.5);
    display: inline-block;
}

#text {
    padding: 9px 12px;
    border: 1px solid rgba(255, 0, 0, 0.46);
    border-radius: 50px;
    font-size: medium;
    text-align: center;
}

#text-clear {
    width: 1.5rem;
    height: 1.5rem;
    background: red;
    border: none;
    color: white;
    border-radius: 50px;
    font-size: medium;
    text-align: center;
    display: none;
}

/*
 * 单词列表
 */

#word-list {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.word-item {
    padding: 12px 1rem;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.word-word {
    display: inline-block;
    vertical-align: top;
}

.word-translation {
    color: grey;
    font-size: small;
    padding-left: 5px;
    display: inline-block;
    line-height: 1.4rem;
    /*max-height: 1rem;*/
    overflow: hidden;
}

.word-collins {
    display: inline-block;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    text-align: center;
    border: none;
    border-radius: 100%;
    background: rgba(0, 26, 104, 0.6);
    color: white;
    font-size: x-small;
}

.word-key {
    color: red;
}

.collins-level-5 {
    background-color: red;
}

.collins-level-4 {
    background-color: darkorange;
}

.collins-level-3 {
    background-color: blue;
}

.collins-level-2 {
    background-color: darkgreen;
}

.collins-level-1 {
    background-color: #474747;
}

#nav {
    margin-bottom: 1em;
}

#nav a {
    color: rgba(255, 0, 0, 0.65);
    margin: 0 .5em;
}

#nav a.current {
    color: rgba(255, 0, 0, 1);
    font-weight: bold;
    border-bottom: 3px solid;
}


#input-area {
    position: relative;
}

#menu-btn {
    display: block;
    position: absolute;
    right: 1em;
    opacity: .5;
}

#menu-btn a:hover {
    color: red;
}