.control {
    font-family: arial, serif;
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    padding-top: 3px;
    cursor: pointer;
    font-size: 16px;
}

.control input {

    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control_indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #e6e6e6;
    border: 0 solid rgba(8, 8, 14, 0.9);
    border-radius: 0px;
}

.control:hover input ~ .control_indicator,
.control input:focus ~ .control_indicator {
    background: #cccccc;
}

.control input:checked ~ .control_indicator {
    background: darkred;
}

.control:hover input:not([disabled]):checked ~ .control_indicator,
.control input:checked:focus ~ .control_indicator {
    background: #0e6647;
}

.control input:disabled ~ .control_indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}

.control_indicator:after {
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}

.control input:checked ~ .control_indicator:after {
    display: block;
}

.control-radio .control_indicator {
    border-radius: 50%;
}

.control-radio .control_indicator:after {
    left: 7px;
    top: 7px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #ffffff;
    transition: background 250ms;
}

.control-radio input:disabled ~ .control_indicator:after {
    background: #7b7b7b;
    display: none;
}

.control-radio .control_indicator::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 4.5rem;
    height: 4.5rem;
    margin-left: -1.3rem;
    margin-top: -1.3rem;
    background: #2aa1c0;
    border-radius: 3rem;
    opacity: 0.6;
    z-index: 99999;
    transform: scale(0);
}

@keyframes s-ripple {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        opacity: 0.01;
        transform: scale(1);
    }
}

@keyframes s-ripple-dup {
    0% {
        transform: scale(0);
    }
    30% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.control-radio input + .control_indicator::before {
    animation: s-ripple 250ms ease-out;
}

.control-radio input:checked + .control_indicator::before {
    animation-name: s-ripple-dup;
}

.control-radio {
    font-size: 14px;
}


text {
    font-size: 2em;
}

.tick text {
    font-size: 1.6em;
    fill: #333333;
}


.tick line {
    stroke: #cccccc;
}

.container {
    max-width: 100vw !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-flow: column;
}


#word-box {
    position: absolute;
    /*background-color: #eaa3c4;*/
    /* -webkit-border-radius: 10px;*/
    /* -moz-border-radius: 10px;*/
    /* border-radius: 10px;*/
    /* border-color: #414141;*/
    /* border-style: solid;*/

    /*font-size: 20px !important;*/
    /* height: unset !important;*/
    /* padding: 3px 3px 3px 3px !important;*/
    pointer-events: none;

    /*color: white;*/
    /*text-shadow: 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black;*/
    /* font-size: 1.8em;*/
    /* text-align: center;*/
}

#word-box {


    /*background: #88b7d5;*/
    /*border: 1px solid #414141;*/
}

.title {

    text-align: center;
    font-size: 20px;
}


.subtitle {

    text-align: center;
    font-size: 14px;
}


#header-row {
    flex: 0 1 auto;

}

#chart-row {
    flex: 1 1 auto;
    opacity: 0;

}

#wrapper {
    height: 100%;
}

#info-row {
   flex: 0 1 275px;
    background-color: rgba(8, 8, 14, 0.9);
    row-gap: 20px;

    height:100%;

}


#paper-list {
    height: 250px;
    overflow: scroll;
    margin-bottom: 25px;
    background-color: #ffffff;
    font-size: 14px;


}

#paper-list ul {
    list-style-type: auto;
}

#paper-list li::marker {
    font-size: 11px;

}

#year-list {
    margin-left: 1em;
}

.selected {
    background-color: #2aa1c0;
}

#term-list {
    overflow: auto;
    height: 250px;
    margin-bottom: 25px;
    background-color: #ffffff;
    font-size: 14px;





}

#term-list ul {
    list-style-type: auto;
}

#term-list li::marker {
    font-size: 11px;

}

.term-display label {
    color: white;
    font-size: 18px;

}

.side-panel {
    border: 2px solid rgba(0, 0, 0, 0.7) !important;;
    border-radius: 5px;
    padding: 5px 5px 5px 5px;
}

.hide-on-start {
    visibility: hidden;
}

#instruction-line, #topic-line, #topic-line2, #current-topic-count, #pubmed-rb-line {
    color: white;
    font-size: 16px;

}

#instruction-line {

}

.hide-on-selection {
    visibility: visible;
}
.options-header {
    color: white;
    text-align: center;
}

#current-topic-count, #current-topic-count2, #current-topic, #current-year {
    font-weight: bold;
}

.control {
    color: white;
}

.paper-instructions {
color: white;
    font-size: 24px;
    margin-left: 100px;
    margin-top: 100px !important;
   opacity: 0;
}

.app-title {
font-size: 24px;
    margin-left: auto;
    padding-right: 50px;
    background: rgba(8, 8, 14, 0.9) !important;
    color: white;
    padding-left: 50px;
}

#options {

    min-width: 200px;
    max-width: 300px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    padding: 5px 5px 5px 5px;
    border: 2px solid white;
    border-radius: 10px;
}

#pubmed-datasource-in-title {
    font-weight: bold;
}

#ngram-size-in-title {
    font-weight: bold;


}

.box_with_arrow {
    padding: 5px;
}

.center-options {
    margin-left: auto;
    margin-right: auto;
    display: table;
}

.control-group-ngram {
    display: flex;
    justify-content: center;

}

.control-group-ngram .control {
    padding-right: 10px;
}

#ngram-line {
    margin-top: 10px;
    font-size: 16px;
}

#tension-line {
    margin-top: 10px;
    font-size: 16px;
}

.paper-display {
    padding-right: 45px;
    height:225px;
    display:none;
    opacity: 0;
    overflow: revert;
}
.term-display {
    display: none;
    opacity: 0;
     height:225px;
    overflow: revert;
}

.tooltip {
    display: inline-block;
    position: relative;
    /*border-bottom:1px dotted #666;*/
    text-align: left;
}

.tooltip .right {
    min-width: 150px;
    max-width: 250px;
    top: 50%;
    left: 100%;
    margin-left: 20px;
    transform: translate(0, -50%);
    padding: 2px 2px;
    color: #444444;
    background-color: white;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;

    /*visibility:hidden; opacity:0; transition:opacity 0.8s;*/
}

.tooltip:hover .right {
    /*visibility:visible; opacity:1;*/
}

.tooltip .right i {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -12px;
    width: 12px;
    height: 24px;
    overflow: hidden;
}

.tooltip .right i::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(-45deg);
    background-color: white;

}

.tooltip .left {
    min-width: 150px;
    /*max-width:300px;*/
    top: 50%;
    right: 100%;
    margin-right: 20px;
    transform: translate(0, -50%);
    padding: 2px 2px;
    color: #444444;
    background-color: white;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;

    /*display:none;*/
}

.tooltip:hover .left {
    display: block;
}

.tooltip .left i {
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -12px;
    width: 12px;
    height: 24px;
    overflow: hidden;
}

.tooltip .left i::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: white;

}

#theme-color {

    color: rgba(8, 8, 14, 0.9) !important;
    text-align: center;
}

/*noinspection CssInvalidPropertyValue*/
#river-word {
    background-color: white;
    color: black;
    font-size: 16px;
    text-wrap: nowrap;
    margin-left: 5px;
    margin-right: 5px;
}

#tooltip-inner {
    background-color: white;
    color: black;
    border: 4px solid;
    border-radius: 8px;
}

#word-label-row {
    text-align: center;
    margin-bottom: 0px;
}


#word-label {
    /*    border: 2px orange solid;*/
    /*border-bottom: 0;*/
    /*margin-bottom: -7px;*/
    padding-right: 5px;
    padding-left: 5px;
    /*border-top-left-radius: 8px;*/
    /*border-top-right-radius: 8px;*/
}

.slidecontainer {


    text-align: center;

}

#myRange {
    height: 30px;

    display: inline-block;
    vertical-align: bottom;
    width: 50%;
}

#main-svg path:hover {
    transition: 0.1s;
    opacity: 1;

}

#main-svg {
    cursor: grab;
    touch-action: none;
}

#main-svg:active {
    cursor: grabbing;
}


#topic-list {
    width: 100%;
}

#topic-list > tbody > tr > td:nth-child(1) {
    text-decoration: underline;
    color: var(--bs-link-color);
    width: 10%
}

#topic-list > tbody > tr > td:nth-child(2) {
    text-decoration: underline;
    color: var(--bs-link-color);
    width: 80%
}

#topic-list > tbody > tr > td:nth-child(3) {
    text-decoration: underline;
    color: var(--bs-link-color);
    width: 10%
}

.term-rank-number {
    font-size: 10px
}

#term-list thead {
    display: none;
}

#term-list thead th.Rank {
    width: 15%
}

#term-list thead th.Color {
    width: 15%
}

#menuv {
    padding: 0;
    border: none;
    font-size: 14px;
    font-family: verdana, sans-serif;
    width: 100%;
    margin: 1px;
}

.link a:hover {
    text-decoration: none;
}

#abstract-tooltip a, #abstract-tooltip a:visited {
    display: block;
}

#abstract-hover {
    background: rgba(0, 0, 0, 0.9) !important;;
    position: absolute;
    display: none;

    line-height: 20px;
    padding: 10px;
    font-size: 12px;
    color: rgb(255, 255, 255);
    border: 4px solid rgb(255, 255, 255);
    border-radius: 5px;
    text-shadow: rgba(0, 0, 0, 0.1) 1px 1px 1px;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 2px 0px;
}


#instruction-row {
    margin-top: 10px;
    margin-bottom: 10px;

    color: rgba(8, 8, 14, 0.9);
    margin-left: 5%;
    margin-right: 5%;
}

.instruction-header {
    font-weight: 700;
}

.paper span {
    display: none;

}

.paper:hover span {
    transition-delay: 1s;
}

.tab-pane, .tab-content {
    height: 100%
}

body {
    height: 100vh;
}

#main-container {
    display: flex;
    flex-flow: column;
    height: 100vh;

}
#mainTab, #docTab  {
    color: white;
    --bs-nav-tabs-border-color: rgba(8, 8, 14, 0.9) !important;

    --bs-nav-tabs-link-active-border-color: rgba(8, 8, 14, 0.9) rgba(8, 8, 14, 0.9) #fff !important;
    --bs-nav-tabs-link-active-bg: rgba(8, 8, 14, 0.9) !important;
--bs-nav-tabs-link-active-color: white !important;
    --bs-nav-link-color: rgba(0, 0, 0, 0.7) !important;
    --bs-nav-link-hover-color: rgba(8, 8, 14, 0.9) !important;

}
#mainTab .nav-link {
      --bs-nav-link-padding-y: 0.2rem;
}

#mainTab .nav-link, #docTab .nav-link {
    border: 1px solid rgba(8, 8, 14, 0.9);
    margin-top: 5px;
    height: 35px;

}



.nav-item:nth-child(1) {
    margin-left:25px;
}
.nav-tabs {
    flex: 0 1 auto;
    --bs-nav-tabs-border-width: 4px !important;
}

.tab-content {
    flex: 1 1 auto;
    overflow-y: auto;
}

.caption-div {
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;

    flex: 1 1 50%;

}

.caption {
    flex: 0 1 auto;
    padding: 5px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #eee;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0,0,0,.7);
}

.figure {

    padding: 5px;

    width: 100%;

}

#fullfigure {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}


#instructions {
    display: flex;
    flex-direction: row;

}

.text-instructions {
    flex: 1 1 50%;
    margin-left: 0px;
    margin-right: 75px;
    margin-bottom:20px;
}

#row-of-figures {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}


#fulltermdiv {
    flex: 1 1 20%
}

#fullpaperdiv {
    flex: 1 1 60%
}

#fulloptiondiv {
    flex: 1 1 20%
}

#home li {

    font-size: 14px;
    padding: 1px;
    margin: 1px;
}


#docTab {
    margin-bottom: 10px;
}

#yaxis {
    display: none;
}

ul.list-style-none li a {
    color: #673AB7;
    padding: 8px 0px;
    display: block;
    text-decoration: none;
}

#main-middle-div {
    padding: 10px;
}

#example-river {
    flex: 1 1 50% !important;
    height: fit-content;

}

#example-river img {
    max-height: 600px;
}

#viz-explain li {
    padding: 0px !important;
    margin: 0px !important;
    margin-bottom: 4px !important;
}

.hide {
    display: none;
}

.active {
    display: block;
}

.hide-until-selection {
   visibility: hidden;
}

#please-header {
    position:absolute;
    top:10%;
    color: #252969;
    font-size: 24px;
}

.help-tip{
    display: none; /* Remove this line to re-add in tooltip */
    position: absolute;
    top: 10px;
    right: 18px;
    text-align: center;
    background-color: #BCDBEA;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 26px;
    cursor: default;
}

.help-tip:before {
    content: '?';
    font-weight: bold;
    color: #fff
}

.help-tip:hover p{
    display: block;
    transform-origin: 100% 0%;
    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}

.help-tip p{
    display: none;
    text-align: left;
    background-color: #1E2021;
    padding: 20px;
    width: 300px;
    position: absolute;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    right: -4px;
    color: #FFF;
    font-size: 13px;
    line-height: 1.4;
}

.help-tip p:before{
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-bottom-color: #1E2021;
    right: 10px;
    top: -12px;
}

.help-tip p:after{
    width: 100%;
    height: 40px;
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    100% {
        opacity: 100%;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100%  { opacity: 100%; }
}
