:root {
    --light-green: rgb(127, 167, 119);
    --green: rgb(84, 138, 73);
    --dark-grey: #263238;
    --light-blue: rgb(212, 235, 254);
    --mdc-theme-primary: #78909c;
    --mdc-theme-primary-50: #F5F7F8;
    --mdc-theme-primary-100: #eceff1;
    --mdc-theme-primary-200: #cfd8dc;
    --mdc-theme-primary-400: #78909c;
    --mdc-theme-primary-300: #90a4ae;
    --mdc-theme-primary-500: #607d8b;
    --mdc-theme-primary-600: #546e7a;
    --mdc-theme-primary-700: #455a64;
    --mdc-theme-primary-800: #37474f;
}

body {margin: 0px !important; overflow: hidden;}
main {
    overflow-y: scroll;
    height: calc(100% - 64px);
    box-sizing: border-box;
}

main button {height: 54px;}

.nav-button {
    height: 100%;
}

.mdc-top-app-bar__section--align-center {
    justify-content: center;
}

.mdc-top-app-bar a {
    text-decoration: none;
}

.mdc-menu a {
    text-decoration: none;
}

button.mdc-button--touch {
    margin: 0px;
}

#navbar-icon {
    height: 32px;
}

#settings-menu {
    margin-top: 64px; border-top-left-radius: 0px; border-top-right-radius: 0px;
}

#settings-menu .mdc-list-item {
    display: flex;
    color: var(--dark-grey) !important;
}

#settings-menu .mdc-list-item__graphic {
    margin-right: 24px;
}

.mdc-card {padding: 16px;}
.card-heading {
    font-size: 20px;
    border-bottom: thin solid rgba(0, 0, 0, 0.24);
    margin-bottom: 16px;
    color: var(--mdc-theme-primary-800);
}


input {border:1px solid grey;}
label {margin-right: 0.2em;}
.tab{
    background-color: grey;
    color: white;
    font-weight: bold;
    padding-left: 2px;
    padding-right: 2px;
}

.home {
  font-size:1em;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  color: black;
  margin-left:  auto;
  margin-right: auto;
}

main {
    padding: 16px !important;
}

p {
    width: 85%;
    margin: auto;
}

.form-text {
  font-size:1em;
  border: 1px solid grey;
}

.selected-data {
    table-layout: fixed;
    width: 100%;
    word-wrap: break-word;
}

.panel {
    margin:0px;
}
.panel-custom {
    border-color: #808080;
}
.panel-title {font-size: 1.2em;}
.panel-title a {color: white; margin-left: 0.3em;}
.panel-custom > .panel-heading{
    background-color: #808080;
    color: #ffffff;
}

.graph-svg-component{
    background-color: AliceBlue;
    float: left;
}

.search-heading{
font-weight: 700;
}

tbody{
width: 100%;
}

.search-table > td{
  height: 70px;
}

.navbar-default {
background-color: #ffffff;
border: 1px solid #808080;
font-weight: 700;
margin: 0px;
height: 6%;
padding: 0;
margin-bottom: 7px;
border-radius: 0 !important;
}

.navbar-nav > .show {background-color: #808080; color: white;}
.dropdown-menu {border-radius: 0;}
.dropdown-menu a:hover {background-color: #808080; color: white;}

.nav-item {height: 100%;}
.nav-link:not(.active) > a {text-decoration: none;}
.nav-link a {font-size: 0.9em; padding-bottom: 0.5em; padding-top: 0.5em;}
.navbar-default .navbar-brand {color: #000000;}
.navbar-brand img {height: 1em; margin-left: 0.3em;}
.navbar-default .navbar-text {color: #000000;}
.navbar-default .navbar-nav > li:hover {background-color: #808080; color: white;}
.navbar-default .navbar-nav > li:hover > a {color: white;}
.navbar-default .navbar-nav > .active {color: #ffffff; background-color: #808080;}
.navbar-default .navbar-nav > li > a {color: #000000;}
.navbar-default .navbar-nav > .active > a {color: white;}

.track-header {font-size: 1.2em; width: 100%; background-color: #808080; color: white;
           padding-left: 0.3em;}

.add-track div {display: inline-block;}

.row {width: 100%; margin-left: 0;}
.outlined {border: 1px solid #808080; padding-bottom: 15px;}

.toggle:not(.off) {border: 1px solid var(--green);}
.toggle-on {background-color: var(--green);}
.toggle-on:active {background-color: var(--green);}
.toggle-on:hover {background-color: var(--light-green);}
.toggle-off {background-color: grey; color: white;}
.toggle-off:hover {background-color: rgb(144, 144, 144);}
.toggle-handle {background-color: lightgray;}

.btn-primary, .btn-primary:hover, .btn-primary:active {
    background-color: var(--green) !important;
    border-color: var(--green);
}

.hidden {display: none;}

.mdc-text-field-helper-text {
    font-family: Roboto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: .75rem;
    line-height: 1.25rem;
    font-weight: 400;
    letter-spacing: .0333333333em;
    text-decoration: inherit;
    text-transform: inherit;
    display: block;
    margin-top: 0;
    line-height: normal;
    margin: 0;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    will-change: opacity;
}

/*Styling of coordinates / HPO input*/
#input-cards-div button {
    width: 150px;
}

#input-cards-div {
    display: flex;
    flex-direction: row;
}
#input-card {margin-right: 16px;}
#input-card, #hpo-card {
    flex: 1;
}

#coordinates-div, #phenotypes-div {
    display: flex;
    flex-direction: column;
}

#coordinates-div, #hpo-lookup-div, #hpo-select, #phenotypes-div {
    flex: 1;
}

#hpo-lookup-div, #hpo-select, #phenotypes-div {
    margin-right: 16px;
}

#lookup-parent-div, #coordinates-div {margin-bottom: 8px;}
#hpo-select .mdc-select__anchor {width: 100%;}
#lookup-parent-div, #add-parent-div {display: flex; flex-direction: row;}
#hpo-lookup-div {display: flex; flex-direction: column;}

#phenotypes-parent-div {
    display: flex;
    flex-direction: row;
}

.card-top-div {
    display: flex;
    border-bottom: medium solid var(--mdc-theme-primary-300);
    height: 32px;
    justify-content: center;
    position: relative;
    align-items: center;
}

.card-top-div button {
    height: 32px;
    border-radius: 0px;
}

.card-top-div button.active {
    background-color: var(--mdc-theme-primary-300);
    color: white;
}

.card-top-div .mdc-button__ripple {
    border-radius: 0px;
}

.card-top-div .card-title {
    position: absolute;
    left: 0;
    top: 0;
    height: 32px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    color: var(--mdc-theme-primary-500);
    font-weight: 500;
}

.card-top-div .card-top-icon-r {
    position: absolute;
    right: 8px;
    top: 0;
    height: 32px;
    display: flex;
    align-items: center;
    color: var(--mdc-theme-primary-500);
}

.card-top-div.title-large {
    height: 40px;
    font-size: 24px;
}

.card-top-div.title-large .card-title {
    padding-top: 4px;
}

.card-top-div .card-top-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 32px;
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.card-w-title {
    padding: 0px;
}

.card-w-title .card-text {
    padding: 16px;
    line-height: 26px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
}

.info-button {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: transparent;
    position: absolute;
    right: 16px;
    top: 0px;
}

.info-button .material-icons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: var(--mdc-theme-primary-500);
}

.info-button .material-icons:active {
    color: var(--mdc-theme-primary-400);
}

.mdc-data-table th {
}

.mdc-data-table th .material-icons {
    opacity: 0.2;
    user-select: none;
}

.mdc-data-table th {
    user-select: none;
}

.mdc-data-table th {
    cursor: pointer;
}

.announcement > .card-w-title {
    background: white;
    border-radius: 4px;
    max-width: 500px;
}

.announcement-title {
    font-size: 14px;
    font-weight: 500;
}
/*Fix material design resizer not at bottom of textarea*/
.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input {
    margin-bottom: 0px;
    padding-bottom: 16px;
}

.mdc-text-field--textarea .mdc-text-field__input.resize {
    resize: both;
}

.mdc-snackbar {
    bottom: 16px !important;
    left: 16px !important;
    right: unset !important;
}

#settings-menu .mdc-list-item {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 24px;
    padding-right: 24px;
}

/*Tabs at the top of a card with a search field*/
.tabs-and-search {
    display: flex;
    height: 56px;
}

.tabs-and-search button {
    height: 56px;
}

.tabs-and-search .mdc-text-field {
    border-radius: 0px;
}

.tabs-and-search .search-div {
    flex: 1;
    margin-left: 16px;
    display: flex;
    justify-content: flex-end;
}

.tabs-and-search .search-div .mdc-text-field {
    width: 66%;
    border-radius: 0px 4px 0px 0px;
    margin-right: 0px;
}

/*Hide the tab text for small screens*/
@media (max-width: 600px) {
    .tabs-and-search .mdc-tab__text-label {
        display: none;
    }

    .mdc-tab {
        padding-left: 0px;
        padding-right: 0px;
        min-width: 60px;
    }
}

.card-w-title .mdc-tab-bar {
    width: 50%;
    border-radius: 4px 0px 0px 0px;
}

/*Django Spectacular API Settings*/
th.col_header.parameters-col_description, td.parameters-col_description {
    padding-left: 24px !important;
}

td.parameters-col_description p {
    margin-left: 0 !important;
}