/*
 * General page layout
 * Palette: http://paletton.com/#uid=53s0u0klloyaTCDgDtopokruMeT
 */

html {
    background-color: #4B7C94;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    padding: 0;
}

body {
    font-family: sans-serif;
    padding-bottom: 3em;
    padding-left: 2%;
    padding-right: 2%;
    background-color: #7CA4B8;
    margin: 0;
    max-width: 50em;
}

h1 {
}

hr {
    border: 0;
    height: 2px;
    background-color: #4B7C94;
    color: #4B7C94;
}

table {
    border: 2px solid #4B7C94;
}

td {
    padding-top: 1em;
    padding-bottom: 1em;
}

#footer {
    text-align: right;
}

/*
 * Hanzi test elements
 */

.hanzi-list {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
}

.hanzi-block {
    background-color: white;
    border: 3px solid #4B7C94;
    cursor: pointer;
    font-family: 'KaiTi', 'ST Kaiti', 'Kaiti SC', 'Kaiti TC', 'DFKai-SB', 'NSimSun';
    height: 5em;
    margin: 0.2em;
    position: relative;
    text-align: center;
    width: 5em;
}

.hanzi-block.known {
    background-color: #79B694;
    border-color: #0F5B30;
}

.hanzi-display {
    font-size: 3.5em;
    padding-top: .15em;
    line-height: 1em;
}

.next-step {
    padding: 0.5em;
    font-size: 2em;
    margin-top: 1.5em;
}

.next-step:after {
    content: ' →';
}

.result-char-count {
    background-color: #06344B;
    color: #7CA4B8;
    font-size: 2em;
    text-align: center;
}

.result-number {
    font-size: 2em;
    display: block;
}

.result-share {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    -webkit-flex-direction: row;
    -webkit-justify-content: space-around;
    margin-top: 1em;
}

.result-share a {
    padding: 0.5em;
    font-size: 1.2em;
}

.hanzi-def-button {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
}

.hanzi-block:hover .hanzi-def-button {
    display: inline;
}

.definition-box {
    background-color: white;
    border: 2px solid #4B7C94;
    font-family: sans-serif;
    padding: 0.5em;
    position: absolute;
    text-align: left;
    width: 14em;
    z-index: 999;
}

.definition-box .pinyin {
    font-weight: bold;
}

.definition-box .pinyin:after {
    content: ": ";
    font-weight: bold;
}
