* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: FreeHKKai;
    src: url('../fonts/Free-HK-Kai_4700-v1.02.ttf') format('truetype');
}

.container {
    padding-top: 20px;
    max-width: 1080px;
}

.lh-condensed {
    line-height: 1.25;
}

.total-center {
    text-align: center;
    margin: auto;
    vertical-align: middle;
}

.center {
    text-align: center;
}

.form-input {
    width: 50%;
}

.block {
    display: block;
}

.input-box {
    width: 100% !important;
    display: inline !important;
}

.word-list {
    width: 20%;
}

.input-section {
    width: 60%;
}

.btn-border {
    border-color: #000 !important;
}

label.btn-primany {
    background-color: #000 !important;
}

.form-padding {
    padding: 5px;
}

.light {
    background-color: #FFF;
}

.name-box {
    position: relative;
    margin-left: auto;
    margin-right: 0;
    height: 60px;
    width: 100%;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif
}

.name-box-detail {
    position: absolute;
    bottom: 0px;
    right: 0px
}

.name-box-title {
    font-size: 20px;
    position: absolute;
    bottom: 0px;
    left: 15px;
}

.words {
    display: inline-block;
    padding: 5px;
    font-size: 18px;
}

.word-box {
    width: 90%;
}

.borderless {
    border: none !important;
}

.worksheet-header {
    /* height: 200px; */
    padding-bottom: 15px
}

i.del {
    float: right;
}

.flex-box {
    display: flex;
    height: 300px;
}


/* autocomplete */

* {
    box-sizing: border-box;
}

.autocomplete {
    position: relative;
    display: inline-block;
}

input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

input[type=text] {
    background-color: #f1f1f1;
    width: 100%;
}

input[type=password] {
    background-color: #f1f1f1;
    width: 100%;
}

input[type=submit] {
    background-color: DodgerBlue;
    color: #fff;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}


/* NAV */

nav {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    height: 125px;
    width: 100%;
    position: relative;
    text-align: center;
    margin: auto;
}

h2 {
    margin: 0 !important;
}

.header {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

hr {
    border-top: 1px solid #BBB !important;
}

ul {
    margin: 10px;
}


/* switch */


/* The switch - the box around the slider */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}


/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* mixed-fraction */

.filter-container {
    padding: 20px;
    margin: auto;
    width: 50%;
    border: 2px solid #d4d4d4;
}

.filter {
    margin: auto;
}

.frac {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    letter-spacing: 0.001em;
    text-align: center;
}

.frac>span {
    display: block;
    padding: 0.1em;
}

.frac span.bottom {
    border-top: thin solid black;
}

.frac span.symbol {
    display: none;
}

tbody#mixed-fraction-question-table td {
    vertical-align: middle;
}

#print {
    position: relative;
}

#print button {
    position: absolute;
    top: 0px;
    right: 0px;
    color: #0645AD;
}

.worksheet-column {
    float: left;
    width: 50%;
}


/* Clear floats after the columns */

.worksheet-row:after {
    content: "";
    display: table;
    clear: both;
}

@media print {
    .print {
        display: none;
    }
    a[href]:after {
        content: none !important;
    }
    @page {
        /*margin-top: 0;
    margin-bottom: 0;
    padding-top: 100px;*/
    }
}