html {
    overflow-y: scroll;\
}

body {
    position: relative;
    min-height: 100%;
    height:auto;
}

.nowrap {
   white-space:nowrap !important; 
}

div.wrapper {
    padding: 0 0 50px; /* bottom = footer height */
    display:block;
    position:relative;
}

.content {
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
}

.row > .row {
    margin-left: 0;
    margin-right: 0;
}

footer {
    height: 50px;
    position: absolute;
    left: 0;
    bottom: 0px;
    color: #aaa;
    text-align: center;
    width: 100%;
    font-size:75%;
}

#btn-r-opts {
    margin-left:2px;
}

#div-ichiran-form {
    margin: 10px 10px 10px 10px;
}

span.query-word:hover {
    border-bottom: solid 1px #DB00A5;
}

span.query-pick {
    display: block;
    padding: 0.5rem;
    color: #555;
}

.panel-error {
    background-color: rgba(255, 202, 202, 1);
}

.hidden {
    display:none !important;
}

.highlight
{
    background-color:yellow;
}

.gloss dd {
    margin-left: 0.8rem;
}

.gloss ol {
    margin-left: 0.5rem;
}

.conj-via {
    margin-left: 0.5rem;
}

.gloss-row:not(.hidden) ~ .gloss-row:not(.hidden) {
    margin-top:1rem;
}

.gloss-row > ul {
    margin: 0px -0.25rem;
}

.gloss-row > ul > li {
    padding: 0px 0.3rem 0.6rem;
    /* clear: none !important; */
}

.gloss {
    border: 1px solid gray;
    border-radius:0.3rem;
    background-color: #F4F5FF;
    padding: 0.2rem 0.4rem;
    transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
}

.gloss:target {
    box-shadow: 0 0 5px #407FFF;
    -webkit-box-shadow: 0 0 5px #407FFF; 
    -moz-box-shadow: 0 0 5px #407FFF;     
}

.gloss-rtext {
    border-bottom: 1px dashed gray;
    position:relative;
}

.gloss-content {
    overflow-y: auto;
    margin-right: -0.3rem;
}

@media only screen and (min-width: 40.063em) {
    .gloss-content {
        height: 15rem;
        /* max-height:15rem; */
    }
}

.word-link-container {
    position: absolute;
    right: 0px;
    bottom: 0px;
}

a.wiktionary-link {
    display:inline-block;
    font-family: "Times New Roman", Times, serif;
    color: black;
}

a.info-link {
    color: black;
    display: inline;
}

a.info-link:hover {
    border-bottom: 1px dashed #999;
}

.note-skipped {
    font-size: .7rem;
    font-style: italic;
    margin-right: 0.5rem;
    float:right;
}

.note-skipped a {
    color: #808080;
}

.note-skipped a:hover {
    border-bottom: 1px dashed #999;
}

.jspVerticalBar {
    width: 0.3rem;
}

.jspDrag {
    background-color: #CACAFF;
}

.gloss dl, .gloss dt, .gloss dd, .gloss ol, .gloss ul {
    font-size:.9rem;
}

span.gloss-desc {
    font-size:.75rem;
}

.conj-negative {
    color:red;
}

.conj-formal {
    color:blue;
}

.pos-desc {
    color: #007200;
}

.sense-info-note {
    font-size: .6rem;
}

.sense-info-desc {
    font-size: .6rem;
}

.header-outer {
    margin-top: -1rem;
    margin-bottom: 0.5rem;
}

.header-nav {
    text-align: center;
    font-weight: bold;
}

.header-nav a {
    color: #865779;
}

.header-nav a:hover {
    color: #FF49CD;
}

.header-sub {
    font-size: 0.7rem;
}

div.donate {
    font-size: .8rem;
}

.landing-page ul {
    margin-bottom: 0.5rem;
}

#k-form label{
    padding: 0.5rem 0 0.5rem 0;
    }

.kanji-table{
    border-collapse: collapse;
}

.kanji-table td {
    border: 1px solid #DDD;
    vertical-align: middle;
}

.reading-table, .reading-table td {
    border: none;
}

.reading-table tr:nth-of-type(2n) {
    background-color: #fff;
}

.reading-table tr ~ tr > td{
 border-top: 1px solid #DDD;
}

.kanji-table ul {
    margin: 0 0 0 0;
}

#w-form input {
    margin-bottom: 0.3rem;
}


.info-gloss dl {
    margin-left: 0.5rem;
}

.info-gloss dd {
    margin-left: 0.8rem;
}

.info-gloss ol {
    margin-left: 0.5rem;
}

table.kanji-match{
    border-collapse: collapse;
}

table.kanji-match td {
    border-right: 1px solid #DDD;
    vertical-align: middle;
    text-align: center
}

table.kanji-match tr:nth-of-type(2n) {
    background-color: #fff;
}

tr.match-row-kanji, tr.match-row-reading {
    border-bottom: 1px solid #DDD;
}

.kanji-big {
    font-size: 2rem;
    font-weight: normal;
}

.match-text, .kanji-reading {
    font-size: 1rem;
}

.kanji-big a{
    color: #222;
}

.kanji-type, .kanji-grade, .kanji-sample {
    font-size:0.7rem;
}

.match-row-type td, .match-row-stat td {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.match-row-grade td {
    padding-top: 0;
    padding-bottom: 0;
}

.word-score {
    font-size:0.7rem;
}

