@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700');
html,
body {
    font-family: 'Open Sans', sans-serif;
    background-color: white;
    overflow: hidden;
}

#wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#footer {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    height: 40px;
    max-height: 40px;
    background-color: white;
    z-index: 4;
    font-size: 10px;
    box-sizing: border-box;
    padding: 10px;
    line-height: 10px;
    border-top: 1px solid #ececec;
    background-color: #f2f2f2;
    text-align: center;
}

#container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
    bottom: 0;
    z-index: 1;
    pointer-events: all;
    transition: opacity .25s, transform .25s, -webkit-filter .25s, -moz-filter .25s, -ms-filter .25s, filter .25s;
}

#container.blur {
    transform: scale(1.1);
    -webkit-filter: blur(20px);
    -moz-filter: blur(20px);
    -o-filter: blur(20px);
    -ms-filter: blur(20px);
    filter: blur(20px);
    pointer-events: none;
}

.drug_type sup {
    font-size: 8px;
    vertical-align: super;
}

#content sup {
    font-size: 10px;
    vertical-align: super;
}

#content sub {
    font-size: 10px;
    vertical-align: sub;
}

td>div sup {
    font-size: 14px !important;
}

td>div sub {
    font-size: 14px !important;
}

#prop_selection {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    /*height: calc(100% - 40px);*/
    bottom: 40px;
    z-index: 2;
    background-color: #353a40;
    transition: width 0.5s;
    overflow-y: auto;
    box-sizing: border-box;
    padding-bottom: 100px;
}

#topbar {
    position: absolute;
    top: 0;
    left: 260px;
    height: 48px;
    width: calc(100% - 260px);
    z-index: 3;
    background-color: #ffffff;
    transition: left .5s, width .5s;
}

#container.panel_hidden #topbar {
    left: 0;
    width: 100%;
}

#panel_button {
    left: 10px;
    top: 10px;
    height: 28px;
    width: 28px;
    overflow: hidden;
    z-index: 3;
    position: absolute;
    cursor: pointer;
}

#panel_button img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity .2s;
}

#panel_button img:nth-of-type(1) {
    opacity: 1;
}

#panel_button img:nth-of-type(2) {
    opacity: 0;
}

#container.panel_hidden #panel_button img:nth-of-type(1) {
    opacity: 0;
}

#container.panel_hidden #panel_button img:nth-of-type(2) {
    opacity: 1;
}

#drug_selection {
    position: absolute;
    left: 260px;
    top: 48px;
    width: calc(100% - 260px);
    height: 100px;
    background-color: #f2f2f2;
    box-sizing: border-box;
    border-bottom: 1px solid #ececec;
    border-top: 1px solid #ececec;
    z-index: 3;
    transition: left .5s, width .5s;
    overflow-x: auto;
}

#container.panel_hidden #drug_selection {
    left: 0;
    width: 100%;
}

#content {
    position: absolute;
    left: 260px;
    top: 120px;
    width: calc(100% - 220px);
    /*height: calc(100% - 160px);*/
    bottom: 40px;
    background-color: #ffffff;
    z-index: 4;
    transition: left .5s, width .5s;
    overflow-y: scroll;
}

#container.panel_hidden #content:after {
    left: 0px;
}

#container.panel_hidden #content {
    left: 0;
    width: calc(100% + 40px);
}

#logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 14px;
}

#glossary {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: bold;
    color: #80aa84;
    cursor: pointer;
}

#drug_valign {
    position: absolute;
    top: 9.5px;
    left: 0%;
    overflow: hidden;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    font-size: 0;
    transition: transform .5s, left .5s;
}

#drug_valign button.drug_type:first-of-type {
    margin-left: 10px;
}

#drug_valign.centered {
    left: 50%;
    transform: translateX(-50%);
}

button.drug_type {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    height: 50px;
    width: 130px;
    border: 1px solid #b7b7b7;
    color: #969494;
    box-sizing: border-box;
    background-color: transparent;
    outline: 0;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
    transition: border .1s, color .1s, background-color .1s;
}

button.drug_type.selected {
    background-color: #80aa84;
    border: 1px solid #80aa84;
    color: white;
}

#drug_selection:not(.dragging) button.drug_type.selected:hover {
    background-color: #80aa84;
    border: 1px solid #80aa84;
    color: white;
}

#drug_selection:not(.dragging) button.drug_type:hover {
    border: 1px solid #80aa84;
    color: #80aa84;
}

.prop_type {
    color: #ffffff;
    padding: 20px;
    font-size: 11px;
    box-sizing: border-box;
    transition: background-color .1s;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}

.prop_type.active,
#prop_selection:not(.dragging) .prop_type.active:hover {
    background-color: rgba(95, 118, 134, 1);
    cursor: default;
}

#prop_selection:not(.dragging) .prop_type:hover {
    background-color: rgba(95, 118, 134, 0.5);
}

.scrollbar-container {
    position: fixed;
    height: 100%;
    width: 10px;
    transition: opacity .2s;
}

.scrollbar-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.scrollbar:hover,
.scrollbar.sdragging {
    width: 10px;
    margin-left: -2.5px;
}

.scrollbar {
    position: absolute;
    width: 5px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    /*background-color: red;*/
    border-radius: 10px;
    transform: translateX(0);
    cursor: pointer;
    transition: width .1s, margin .1s;
}

.scrollbar.bright {
    background-color: rgba(255, 255, 255, 0.1);
}

#content>table {
    width: calc(100% - 40px);
    table-layout: fixed;
    border-collapse: separate;
}

#content>table td {
    box-sizing: border-box;
    padding: 50px;
    padding-bottom: 100px;
    vertical-align: top;
}

#content>table td:not(:first-of-type) {
    border-left: 1px solid #ececec;
}

.dragging,
.dragging * {
    cursor: move !important;
}

h1 {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    padding: 0;
    position: relative;
    padding-bottom: 40px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

h1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #61788a;
}

p,
.tablediv {
    margin: 0;
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 20px;
}

p.small {
    font-size: 12px !important;
    margin-top: -10px !important;
}

.tablediv table {
    width: 100%;
    border-collapse: collapse;
}

.tablediv table td {
    box-sizing: border-box !important;
    padding: 10px !important;
    border: 0 !important;
    vertical-align: top;
}

.tablediv.visible table td {
    border: 1px solid #61788a !important;
}

.tablediv.visible table td.nobottom {
    border-bottom: 1px solid transparent !important;
}

ol,
ul {
    padding-left: 40px;
    margin: 0;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
}

h2 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding-left: 20px;
    position: relative;
}

.imgdiv {
    text-align: center;
    margin-bottom: 20px;
    padding: 0;
}

.imgdiv img {
    max-width: 100%;
}

h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    height: 16px;
    width: 3px;
    background-color: #61788a;
}

#disclaimer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 5;
    opacity: 1;
    transition: opacity .25s;
}

#disclaimer.hidden {
    opacity: 0;
    pointer-events: none;
}

#disclaimer_text {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    width: calc(100% + 80px);
}

#disclaimer_text p {
    width: calc(100% - 80px);
}

#disclaimer>div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 80px);
    max-width: 700px;
    background-color: #ffffff;
    box-sizing: border-box;
    padding: 50px;
    max-height: calc(100% - 20px);
    overflow: hidden;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 6;
    transition: opacity .25s;
}

#loading.loaded {
    opacity: 0;
    pointer-events: none;
}

#loading svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#disclaimer button {
    background-color: #80aa84;
    box-sizing: border-box;
    padding: 20px 50px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    border: 0;
    outline: 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color .1s;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
}

#disclaimer button:hover {
    background-color: #98c19c;
}

.drag {
    -webkit-overflow-scrolling: touch;
}

.indent {
    padding-left: 30px !important;
}

#search_input_container {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .25s;
}

#search_input_container::after {
    position: absolute;
    top: 0;
    left: -40px;
    width: calc(100% + 40px);
    height: 100%;
    background-color: white;
    content: "";
    z-index: -1;
    box-shadow: 0 0 50px white, 0 0 50px white, 0 0 50px white, 0 0 50px white, 0 0 50px white, 0 0 50px white
}

#search_input_container>#expand_search {
    height: 100%;
    width: 40px;
    position: absolute;
    left: -40px;
    background-image: url("assets/search.png");
    background-size: contain;
    background-repeat: no-repeat;
    display: none;
    cursor: pointer;
}

#search_input_container>#expand_search>#expand_highlight {
    height: 100%;
    width: 40px;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("assets/search_enabled.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
    background-color: white;
}

@media all and (orientation: portrait),
(max-width: 800px) {
    #search_input_container {
        transform: translate(calc(100% + 10px), -50%);
    }
    #search_input_container.expanded {
        transform: translate(0%, -50%) !important;
    }
    #search_input_container>#expand_search {
        display: block;
    }
    #topbar {
        left: 100%;
        min-width: 100%;
    }
    #drug_selection {
        left: 100%;
    }
    #content {
        left: 100%;
        min-width: calc(100% + 40px);
    }
    #prop_selection {
        width: calc(100% + 40px);
    }
}

@media all and (max-width: 800px) {
    #footer {
        font-size: 8px;
    }
    #disclaimer button {
        width: 200px;
    }
    #disclaimer>div {
        width: calc(100% - 20px);
    }
}

@media all and (max-width: 650px) {
    #footer {
        font-size: 7px;
        line-height: 7px;
    }
}

#search_input_container>#search_input_content {
    border: 1px solid #ececec;
    box-sizing: border-box;
    padding: 5px 10px;
    transition: border .25s;
}

#search_input {
    border: 0;
    outline: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    width: 210px;
    transition: color .25s;
    color: #969494;
}

#search_input_container:hover>#search_input_content {
    border: 1px solid #80aa84;
}

#search_input_container:hover>#expand_search>#expand_highlight {
    opacity: 1;
}

#search_input_container:hover #search_input {
    color: #80aa84;
}

#search_output_container {
    position: absolute;
    top: 48px;
    bottom: 40px;
    right: -40px;
    width: 290px;
    background: #ffffff;
    z-index: 5;
    border-bottom: 1px solid #ececec;
    border-left: 1px solid #ececec;
    box-sizing: border-box;
    padding: 10px;
    /*max-height: calc(100% - 48px);*/
    overflow-y: scroll;
    /*height: calc(100% - 48px);*/
    padding-right: 40px;
}

#search_output_container.hidden {
    display: none;
}

#search_output_container.loading {
    background-image: url("assets/loading_2.svg");
    background-repeat: no-repeat;
    background-position: center;
}

#search_output_container .search-navigation {
    width: 222.5px;
    border: 1px solid #ececec;
    box-sizing: border-box;
    padding: 10px;
    color: #969494;
    font-size: 12px;
    margin-bottom: 10px;
    transition: border .25s, color .25s;
}

.search-result {
    font-size: 10px;
    cursor: pointer;
    transition: color .25s;
    margin-bottom: 5px;
}

.search-result:hover {
    color: #80aa84;
}

#search_output_container .search-navigation:hover {
    border: 1px solid #80aa84;
}

#search_output_container .search-title {
    font-size: 8px;
    margin-bottom: 5px;
}

span.highlight {
    background-color: #f2ff00;
}