/* BODY */

@font-face{
    font-family: Dosis;
    src: url('Dosis-SemiBold.ttf');
}

@font-face{
    font-family: Titillium Web;
    src: url('TitilliumWeb-SemiBold.ttf');
}

:root {
    --bcgcol: white;

    --menu-color: #581845;
    --menu-color-clickable: #5ab5c3;
    --menu-bg-color: #a0d6e4;
    --menu-bg-color-hover: #384357;
    --menu-bg-color-active: #384357;
    --tree-color: #1995AD;

    --head-color: #6a696b;
    --head-bg-color: #F1F1F2;
    --section-color: #f2f3f3;
    --section-bg-color: #1995AD;

    --transition-delay: 0.2s;
    --menu-handle: 50px;
    --police: 'Dosis', sans-serif;
    --menu-font-size:14px;
    --head-height: 40px;

    --width-form: 400px
  }

body {
    background-color: var(--bcgcol);
    box-sizing: border-box;
    margin: 0;
    font-family: var(--police);
}

ul li {
    position: relative;
}

ul li::before {
    content: " ";
    position: absolute;
    width: 1px;
    background-color: var(--tree-color);
    top: 5px;
    bottom: -12px;
    left: -10px;
}

body > ul > li:first-child::before {
    top: 12px;
}

ul li:not(:first-child):last-child::before {
    display: none;
}

ul li:only-child::before {
    display: list-item;
    content: " ";
    position: absolute;
    width: 1px;
    background-color: var(--tree-color);
    top: 5px;
    bottom: 7px;
    height: 7px;
    left: -10px;
}

ul li::after {
    content: " ";
    position: absolute;
    left: -10px;
    width: 10px;
    height: 1px;
    background-color: var(--tree-color);
    top: 12px;
}

.clickable.active {
    background-color: var(--menu-bg-color-active);
}

.clickable{
    background-color: var(--menu-bg-color);
    padding-top:3px;
    padding-bottom:3px;
}

.clickable:hover{
    background-color: var(--menu-bg-color-hover);
    box-shadow: rgba(0, 0, 0, 0.35) 2px 3px 6px;
}

.home{
    margin-left:0.5em;
    margin-top:50px;
}

.button{
    justify-content: center;
    text-align: center;
}

/* HEAD */

.head{
    height: var(--head-height);
    background-color: var(--head-bg-color);
    color: var(--head-color);
    padding:15px 15px;
    display: flex;
    align-items: center;
}

.head p {
    font-size: 22px;
    font-family: 'Titillium Web', sans-serif;
    margin: 0px;
}

/* NAV */

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-color: #ADD8E6;
    color: white;
}

/* MENU */

.menu {
    --gap: var(--head-height);
    min-height: 100%;
    background-color: var(--menu-bg-color);
    color: var(--menu-color);
    position: fixed;
    top: var(--gap);
    left: 0;
    font-size: var(--menu-font-size);
    padding-top: calc(var(--gap) * 0.25);
    transition: left var(--transition-delay),
                transform var(--transition-delay);
    box-shadow: rgba(0, 0, 0, 0.5) 3px 4px 7px;
    z-index: 101;
    overflow-y: auto;
    height: 90vh;
}

.menu p {
    margin: 0;
}

.menu a {
    font-weight: initial;
    display: block;
    height: 100%;
    width: 100%;
}

.menu a, .menu a:visited {
    text-decoration: none;
    color: var(--menu-color-clickable);
}

.menu:not(:focus-within):not(:hover) {
    padding-right: var(--menu-handle);
    left: var(--menu-handle);
    transform: translateX(-100%);
    transition: left var(--transition-delay),
                transform var(--transition-delay),
                padding-right calc(var(--transition-delay) / 2) calc(var(--transition-delay) / 3) ;
    overflow-y: auto;
    height: 90vh;
}

.menu:not(:focus-within):not(:hover)::before{
    position: absolute;
    content: "☰";
    text-align: center;
    display: block;
    width: var(--menu-handle);
    right: 0;
    bottom: calc(50vh );
    font-size: 1.5em;
}

.menu ul{
    list-style: none;
    padding-left:10px;
    text-align: left;
}

.menu ul li ul{
    padding: 0.25em 1em;

}

/* SECTION */

.section {
    height: var(--head-height);
    background-color: var(--section-bg-color);
    color: var(--section-color);
    padding-left: calc(20px + var(--menu-handle));
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr var(--width-form);
    grid-column-gap: 5px;
    justify-items: center;
}

.section-header{
    grid-column-start: 1;
    color: var(--section-color);
    font-size:20px;
    margin-right: auto;
    margin-top: 5px;
}

.form{
    margin-top: 5px;
    margin-bottom: 2px;
    font-size: 15px;
    margin-left: auto;
    margin-right: 5px;
}

.form label {
    margin-left: 5px;
}

.form input {
    color: dimgrey;
}

.form select {
    color: dimgrey;
}

/* FIGURES */

.graph_group{
    background-color: var(--bcgcol);
    padding-bottom: 13px;
    padding-top: 13px;
    padding-left: calc(20px + var(--menu-handle));

}

.flex_div{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.graph-and-links{
    margin: 14px;
    box-shadow: rgba(0, 0, 0, 0.35) 2px 3px 6px;
}

.seriesinfo{
    justify-content: center;
    text-align: left;
    padding-left: 100px;
}

.missingseries{
    padding: 10px;
    background: #ffe7e8;
}

.table-graphmap{
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
}

.table-graphmap td, .table-graphmap th {
    border: 1px solid #ddd;
    padding: 3px;
}

.table-graphmap tr:nth-child(even){
    background-color: #f2f2f2;
}

.table-graphmap tr:hover {
    background-color: #ddd;
}

.table-graphmap th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #2f4f4f;
    color: white;
    position: sticky;
    top: 0;
}
