.version {
    position: absolute;
    top: 0;
    right: 0;
}

.dp, .tu {
    margin: 0 4px;
}
.hilite {
    background: yellow;
}

body {
    padding-top: 25px;
    padding-bottom: 100vh;
}
[data-template] {
    display: none;
}
.app {
    padding-top: 25px;
}
.app-container {
    transition: opacity ease-out 2500ms;
    opacity: 1;
}
.app-container.loading {
    opacity: 0;
}
.app > h1 {
    text-align: center;
    margin: 10px 0;
}
.menu {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    /*height: 25px;*/
    width: 100%;
    background-color: white;
    border-bottom: 3px double lightgray;

}
.menu .link {
    margin: 0 15px;
}

.menu .link:hover {
    background-color: lightblue;
}
.menu .link.selected {
    background-color: lightblue;
    font-weight: bold;
    text-decoration: none;
}
.menu .languages {
    display: inline-block;
    border-radius: 5px;
    border: 1px solid #920f0f;
    overflow: hidden;
}
.menu .languages .link {
    margin: 0;
    padding: 2px 5px;
    border: 0;
    text-decoration: none;
    color: #920f0f;
    cursor: pointer;
}
.menu .languages .link.selected {
    background-color: #ffe9e9;
    text-decoration: none;
}

.menu .parent-menu-item {
    position: relative;
    background-image: url(/css/down-arrow.svg);
    background-size: 22px;
    background-repeat: no-repeat;
    padding-left: 22px;
}

.menu .parent-menu-item .parent-menu-children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    padding-left: 15px;

    white-space: nowrap;

    border: 1px solid grey;
    background-color: white;

    display: none;
}

.menu .parent-menu-item:hover .parent-menu-children {
    display: block;
}

.menu .parent-menu-children div {
    padding: 5px;
}
.menu .hidden {
    display: none;
}

.footer {
    display: block;
    margin-top: 40px;
}
.footer.hidden {
    display: none;
}
.result-pages {
    margin: 10px 0 0 5px;
}
.result-page {
    display: inline-block;
    cursor: pointer !important;
    border: 1px solid darkslategray;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    padding: 3px;
    margin: 5px;
}
.result-page:hover, .result-page.current {
    background-color: cyan;
}

#results {
    margin-top: 20px;
    padding: 0;
}

#results .result-item {
    position: relative;
    padding: 5px 10px 15px 10px;
    margin-top: -6px;
    border-radius: 10px 10px 0 0;
    border: 2px solid lightgray;
    border-bottom: none;
    background-color: white;
    transition: background-color 300ms ease-out;
}
#results .result-item:hover {
    background-color: #f5f5ee;
}
#results .result-item.odd {
    /*background: rgb(153, 255, 204);*/
}

#results .result-item-line {
    padding: 2px;
    margin: 5px 0 0 0;
}
#results .result-item .number {
    font-size: 20px;
    margin: 0 5px 0 0;
    color: #777;
}
#results .result-item .title {
    /*font-family: Georgia, serif;*/
    font-size: 20px;
}
#results .result-item .subtitle {
    /*font-family: Georgia, serif;*/
    font-size: 18px;
}
#results .result-item .secondary-label {
    /*font-family: Verdana, sans-serif;*/
    font-size: 14px;
    font-weight: bold;
    color: darkblue;
}
#results .result-item .result-item-rank {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #555;
    font-family: Verdana, sans-serif;
    font-variant: all-small-caps;
}

.result-field.dict {
    position: relative;
    display: inline-block;
    text-align: center;
    margin: 0 3px;
    padding: 3px;
    height: 15px;
    border: 1px solid darkslategray;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    background-color: #fafaff;
    color: darkblue;
    cursor: pointer;
}
.result-field.dict.tu { }
.result-field.dict.dp {
    min-width: 15px;
}
.result-field.dict.selected {
    border: 2px solid black;
    background: yellow;
}
.result-field.dict:hover {
    background: beige;
}
.result-field.dict > span.dict-details {
    position: absolute;
    top: 110%;
    left: 60%;
    min-width: 200px;
    max-width: 400px;
    width: 200%;
    padding: 5px;
    line-height: normal;
    background: beige;
    border: 1px solid rebeccapurple;
    border-radius: 3px;
    display: none;
    z-index: 20;
}
.result-field.dict > span.dict-details.shown {
    display: inherit;
}
.result-item-line .pdf-link {
    position: relative;
    top: -5px;
    display: inline-block;
    margin-left: 5px;
    padding: 2px;
    height: 15px;
    border: 1px solid blue;
    border-radius: 8px;
    color: blue;
    font-size: 14px;
    cursor: pointer;
}
.result-item-line .pdf-link:hover { background-color: lightgray; }

.result-item-line .inline {
    display: inline-block;
    margin: 0 20px 0 0;
}

.tu-dropdown {
    position: relative;
    border: 1px solid #444;
    border-radius: 2px;
    width:calc(33% - 20px);
    min-height: 30px;
    display: inline-block;
    font-size: 12px;
    vertical-align: top;
    margin: 2px;
}
.tu-dropdown-title .tu-expand-arrow {
    position: absolute;
    top: 0;
    right: 2px;
}
.tu-dropdown-title {
    position: relative;
    width: calc(100% - 12px);
    height: 30px;
    padding: 2px 10px 2px 2px;
    background-color: #cceeff;
    cursor: pointer;
}
.tu-dropdown-title:hover {
    background-color: #99ccff;
}
.tu-dropdown-inner {
    position: absolute;
    background-color: white;
    z-index: 100;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    width: 100%;
    border: 1px solid black;
    top: 100%;
    left: -1px;
}
.tu-dropdown-inner > div.tu-category {
    margin: 0 0 0 15px;
}
.tu-dropdown-inner > div.tu-category.tu-top-cat {
    margin: 0 0 0 5px;
}
.tu-dropdown-inner div {
    padding: 2px 4px;
    cursor: pointer;
}
.tu-dropdown-inner > div:hover {
    background: lightblue;
}

.tu-dropdown-inner div.included {
    background: lightgreen;
}
.tu-dropdown-inner div.excluded {
    background: rgb(250,160,160);
}

.tu-dropdown-inner div .tu-not {
    display: none;
    float: right;
}
.tu-dropdown-inner div:hover .tu-not, .tu-dropdown-inner div.included .tu-not, .tu-dropdown-inner div.excluded .tu-not  {
    display: inline-block;
}

.tu-dropdown-inner div .tu-not-wrapper {
    min-width: 58px;
}
.tu-dropdown-inner .definition-trigger {
    display: inline-block;
    text-decoration: none;
    width: 10px;
    border: 1px solid black;
    border-radius: 10px;
    background: yellow;
    line-height: 10px;
    text-align: center;
    color: black;
}
.tu-dropdown-inner .definition-trigger:hover, .tu-dropdown-inner div .tu-modifier-trigger.expanded {
    background: darkred;
    color: white;
}

.tu-dropdown-inner div .tu-modifier-trigger {
    display: none;
}
.tu-dropdown-inner div:hover .tu-modifier-trigger , .tu-dropdown-inner div.included .tu-modifier-trigger , .tu-dropdown-inner div.excluded .tu-modifier-trigger  {
    display: inline-block;
}

.tu-dropdown-inner span.use, .tu-dropdown-inner span.exclude  {
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: #eee;
    border: 1px solid grey;
    border-radius: 3px;
    text-align: center;
    padding: 1px;
    font-size: 10px;
}
.tu-dropdown-inner span.use {
    color: #229922;
}
.tu-dropdown-inner div:hover span.use:hover {
    border: 1px solid black;
}

.tu-dropdown-inner div span.use .check {
    display: none;
    color: gray;
}
.tu-dropdown-inner div:hover span.use .check, .tu-dropdown-inner div span.use.selected .check {
    display: inline;
}
.tu-dropdown-inner div:hover span.use.selected .check {
    color: green;
}

.tu-dropdown-inner div span.exclude {
    color: gray;
    border-radius: 10px;
    display: none;
}

.tu-dropdown-inner div:hover .exclude, .tu-dropdown-inner div .exclude.selected {
    display: inline-block;
}
.tu-dropdown-inner div:hover .exclude:hover {
    border: 1px solid black;
}
.tu-dropdown-inner div .exclude.selected {
    color: red;
}

.tu-modifier {
    margin-left: 40px;
}
.tu-modifier.tu-subcat {
    margin-left: 60px;
}

.tu-modifier .tu-modifier-controls {
    display: none;
}
.tu-modifier:hover .tu-modifier-controls, .tu-modifier.included .tu-modifier-controls, .tu-modifier.excluded .tu-modifier-controls {
    display: inline;
}

.tu-modifier-controls {
    margin-left: 20px;
    white-space: nowrap;
}
.search-section {
    padding: 5px;
    margin: 10px 0;
}
.search-section .sub-section {
    padding: 1px 5px;
    margin: 5px 0;
}
.search-section .sub-section .sub-section {
    margin-left: 45px;
}
.search-section .title {
    /*font-family: Georgia, serif;*/
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}
.search-section .search-section-control {
    margin-left: 10px;
}

.search-section.expanded {
    border: 1px dotted blue;
    border-radius: 10px;
}

input.search-text, input.search-text-word-only  {
    width: calc(33% - 20px);
    height: 20px;
    font-size: 18px;
    margin: 0;
}
.search-text-options {
    display: inline-block;
    cursor: pointer;
}
.search-text-options:hover {
    background-color: lightblue;
}
.selected-search-criteria {
    position: relative;

    border: 1px solid black;
    display: inline-block;
    min-width: 400px;
    padding: 5px 5px 50px;
}

.save-search-criteria {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: inline-block;
    background-color: #99ccff;
}
.saved-search-criteria {
    position: relative;
    margin: 5px 0;
    padding: 0 20px;
    line-height: 1.5;
}
.saved-search-criteria:hover {
    background-color: #99ccff;
}
.saved-search-number {
    position: absolute;
    top: 0;
    left: 0;
}
.saved-search-criteria .term {
    font-family: monospace;
    font-size: 15px;
    border: 1px solid grey;
    border-radius: 3px;
    margin: 0 5px;
    padding: 1px;
}
.saved-search-criteria .term .not {
    font-size: 14px;
    color: #d04747;
}
.selected-search-criteria .search-criteria-by-type {
    margin: 10px;
}
.selected-search-criteria .include-exclude-label{
    font-weight: bold;
}

.selected-search-criteria .item {
    position: relative;
    margin: 0 3px;
    padding: 1px;
    padding: 1px;
    line-height: 15px;
    border: 1px solid darkslategray;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: beige;
}

.selected-search-criteria .item .unselect:hover {
    background-color: blue;
}
.selected-search-criteria .item .unselect {
    border-radius: 5px;
    background-color: red;
    width: 10px;
    padding: 0px;
    line-height: 14px;
    font-size: 14px;
    cursor: pointer;
    font-family: sans-serif;
    display: inline-block;
    text-align: center;
    color: white;
}
.popover {
    position: fixed;
    z-index: 200;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(100,100,100,.5);
}
.popover div {
    position: relative;
    width: 80%;
    height: 80%;
    margin: 10vh auto;
}

.popover.definition div {
    position: relative;
    width: 40%;
    height: 40%;
    margin: 10vh auto;
}

.popover div iframe {
    width: 100%;
    height: 100%;
}
.popover div span {
    position: absolute;
    top: -20px;
    left: -40px;
    z-index: 200;
    cursor: pointer;
    background: #d04747;
    color: white;
    border-radius: 5px;
    padding: 2px;
}
.popover div span:hover {
    background: grey;
}


.linkish {
    cursor: pointer !important;
    text-decoration: underline;
    color: blue;
}

.button {
    cursor: pointer !important;
    border: 1px solid darkslategray;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    padding: 3px;
    margin: 5px;
}

.x-button {
    border-radius: 5px;
    background-color: red;
    width: 10px;
    padding: 0px;
    line-height: 14px;
    font-size: 14px;
    cursor: pointer;
    font-family: sans-serif;
    display: inline-block;
    text-align: center;
    color: white;
}

.x-button:hover {
    background-color: #ffaaaa;
}

.button:hover {
    background: lightcyan;
}

@media print {
    .no-print {
        display: none;
    }

    .result-item {
        page-break-inside: avoid !important;
    }
}