.cell {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 5px;
    padding: 2px 4px;
    margin: 1px;
    text-align: center;
    vertical-align: middle;
    background-color: #f8fff8;
    cursor: pointer;
    white-space: nowrap;
    font: 12pt sans-serif;
    width: 160px;
}
.cell:hover {
    background-color: #e8ffe8;
}
.act, .act:hover {
    background-color: #d0ffd0;
}
.bonus {
    display: inline-block;
    padding: 4px 4px;
    background-color: #fffff8;
    white-space: normal;
}
.bonus:hover {
    background-color: #ffffe0;
}
.actb, .actb:hover {
    background-color: #ffffc0;
}
.day, .state {
    font: 12pt sans-serif;
    padding: 0 2px;
}
.day {
    float: left;
}
.state {
    float: right;
}
.empty:before, .cell.act:hover > .dialog:before, .cell.act:hover > .repeat:before {
    content: '';
}
.cell:hover > .empty:before, .words:before {
    content: 'Слова';
}
.cell.act:hover > .t0.words:before, .dialog:before {
    content: 'Диалог';
}
.cell.act:hover > .t1.words:before, .repeat:before {
    content: 'Повт.';
}
#lesson {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 5px;
    padding: 4px;
    margin: 4px 1px;
    background-color: #fff;
    width: 98vw;
}
#lesson p {
    margin: 4px 16px;
    font-size: 1.3em;
}
#ifr {
    display: block;
    border: 0;
    margin: 0 auto;
    width: 640px;
    height: 480px;
}
hr {
    clear: left;
    margin-top: 10px;
}
.next {
    position: relative;
    min-height: 320px;
    width: 98vw;
    font-size: 1.3em;
}
.next p {
    margin: 0;
    padding: 0;
}
.anim {
    display: inline;
    float: left;
    width: 282px;
	margin: 2px 0 6px 4px;
    background-color: #fff;
}
.anim img {
    clear: both;
	border: 1px solid black;
    border-radius: 5px;
	width: 282px;
	height: 282px;
	margin: 0 auto;
}
.target {
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><g fill='none' stroke='rgb(238, 221, 238)' stroke-width='2'><path stroke-dasharray='22,10' d='M-3 -3 L100 100 M-3 103 L100 0 M50 -9 L50 100 M-9 50 L100 50'/></g></svg>");
    background-repeat:no-repeat;
    background-position:center center;
    background-size: 100% 100%, auto;
	clear: both;
	border: 1px solid black;
    border-radius: 5px;
	width: 280px;
	height: 280px;
	margin: 0 auto;
}
.actions {
	width: 282px;
	margin: 0 auto;
}
.actions button {
	width: 67px;
	margin-right: 4px;
	margin-bottom: 4px;
    padding: 2px;
    border-radius: 5px;
}
.actions button:last-child {
	margin-right: 0;
}
.actions button:hover {
    background-color: #eee;
}
.actions button:focus {
    outline: 0;
}
label {
    margin-right: 6px;
    font: 9.5pt sans-serif;
    color: #333;
}
label, button {
    vertical-align: middle;
}
input[type=checkbox] {
    width: 16px;
    height: 17px;
    margin-left: 3px;
    margin-right: 2px;
    visibility: hidden;
}
input[type=checkbox]:after {
    content: "\2714";
    display: inline-block;
    margin-left: 0;
    padding-bottom: 0;
    padding-left: 0;
    color: #eee;
    visibility: visible;
    width: 14px;
    height: 17px;
    text-shadow:
    -0.5px -0.5px 0 #343,
    0.5px -0.5px 0 #343,
    -0.5px 0.5px 0 #343,
    0.5px 0.5px 0 #343;
    font-size: 16px;
    font-weight: bold;
}
input[type=checkbox]:checked:after {
    color: #585;
    text-shadow: none;
}
.hdr {
    position: relative;
    overflow: hidden;
}
.hdr0 {
    float: left;
    font: 24pt sans-serif;
    color: #666;
    width: 210px;
}
.aud {
    font: 14pt sans-serif;
    color: #00f;
    float: right;
    padding-top: 8px;
    padding-right: 4px;
}
.hdr1 {
    clear: left;
    font-size: 1.2em;
    color: #666;
}
.trans {
    background-color: #ffffD0;
    padding: 1px 8px 4px 4px;
    margin-top: 0px;
    margin-left: 294px;
    margin-right: auto;
}
.pinyin {
    font-size: 1.5em;
}
.meaning {
    font-size: 1.1em;
}
.examples {
    font-size: 1.1em;
    margin-left: 294px;
    line-height: 23px;
}
.unit-style div {
    margin: 0;
    padding: 0;
    direction: ltr;
}
.unit-styles {
    position: absolute;
    bottom: 0;
    left: 294px;
    margin: 15px 0 0 0;
}
.unit-style {
    background: #f6f6f6;
    float: left;
    margin-right: 14px;
    padding: 4px;
    text-align: center;
    width: 100px;
    border-radius: 5px;
}
.unit-style img, .unit-style .kaishu {
    background: #fff;
    margin-bottom: 5px;
    padding: 5px 5px 5px 5px;
    width: 90px;
    height: 90px;
    border-radius: 2px;
}
.unit-style .kaishu {
    font-family: SimKai, STKaiti, Kai, SimSun;
    font-size: 5em;
    line-height: 0.8em;
}
.unit-style span {
    display: table-cell;
    font-size: 0.86em;
    padding: 0;
    height: 20px;
    text-align: center;
    vertical-align: middle;
    width: 100px;
    font-family: "Helvetica Neue", Helvetica,Arial, STXihei, STHeiti, SimSun, sans-serif;
}
.unit-styles h5 {
    color: #773;
    font-size: 1em;
    margin-bottom: 2px;
}
body {
    font-size: 14px;
}
