@font-face {
    font-family: TypoGraphica;
    src: url(../fonts/TypoGraphica_demo.otf);
}

@font-face {
    font-family: 'Chunkfive Ex';
    src: url('../fonts/Chunkfive Ex.ttf');
}

body {
    background-color: #b6f6fc;
}

a {
    color: inherit;
    text-decoration: inherit;
}

#header-box {
    position: fixed;
    top: 0;
    left: 300px;
    height: 60px;
    background-color: #03b1c8;
    width: calc(100vw - 300px);
    text-align: center;;
}

#header-text {
    display: inline-block;
    position: relative;
    top: 50%;
    font-size: 24px;
    transform: perspective(1px) translateY(-50%);
    font-family: 'TypoGraphica', sans-serif;
    color: #b6f6fc;
}

#header-text a {
    transition: font-size .5s;
}

#header-text a:hover {
    font-size: 26px;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background-color: #03b1c8;
}

#sidebar-tabs {
    position: relative;
    height: 60px;
    width: 100%;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.sidebar-tab {
    position: absolute;
    height: 100%;
    width: 50%;
    top: 0;
    font-size: 24px;
    font-family: 'TypoGraphica', sans-serif;
    color: #b6f6fc;
    z-index: 1;
    transition: font-size .5s;
    text-align: center;
}

.sidebar-tab-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-tab:hover {
    font-size: 28px;
}

#graphs-tab {
    left: 0;
}

#details-tab {
    left: 50%;
}

#sidebar-tab-highlighter {
    position: absolute;
    width: 50%;
    height: 100%;
    left: 50%;
    background-color: #2b76a6;
    transition: left .5s;
}

#sidebar.graphs-open > #sidebar-tabs > #sidebar-tab-highlighter {
    left: 0;
}

#sidebar-content {
    position: relative;
    height: calc(100vh - 60px);
    width: 100%;
    overflow-x: hidden;
}

.sidebar-menu {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    transition: left .5s;
    background-color: #2b76a6;
    color: #b6f6fc;
    font-size: 25px;
    font-family: 'Chunkfive Ex';
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 10px;
    float: left;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: none;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #03b1c8;
}

#graphs {
    left: -100%;
}

#sidebar.graphs-open > #sidebar-content > #graphs {
    left: 0;
}

#details {
    left: 0;
}

#sidebar.graphs-open > #sidebar-content > #details {
    left: 100%;
}

.sidebar-menu-item {
    transition: padding-left .5s;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.sidebar-menu-item.lv1 {
    padding: 15px;
}

.sidebar-menu-item.lv1:hover {
    padding-left: 22px;
}

.sidebar-menu-item.lv2 {
    padding: 15px 15px 15px 30px;
}

.sidebar-menu-item.lv2:hover {
    padding-left: 37px;
}

.sidebar-menu-content {
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    transition: max-height .5s;
}

.sidebar-menu-content p {
    font-family: sans-serif;
    font-size: 18px;
    padding: 0px 15px 0px 30px;
}

.sidebar-menu-content p a {
    color: #f6ffff;
}

.sidebar-menu-item.lv1.open + .sidebar-menu-content {
    max-height: 400px;
}

#content {
    position: fixed;
    height: calc(100vh - 60px);
    width: calc(100vw - 300px);
    top: 60px;
    left: 300px;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

#content svg {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    max-height: 100%;
    max-width: 100%;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
    font-size: 6px;
}

#graph-axes {
    color: black;
    opacity: 1;
    transition: transform 1s, opacity 1s;
    transform: scale(1);
    transform-origin: 50% 50%;
}

#graph.unloaded #graph-axes {
    opacity: 0;
    transform: scale(.8);
}

#graph.unloaded .graph-part {
    opacity: 0;
    transform: scale(.8);
}

.graph-part {
    transition: opacity 1s, transform 1s, padding-left .5s;
    transform-origin: 50% 50%;
    transition-delay: .3s, .3s, 0s;
    opacity: 1;
}

#graph.part-selected .graph-part {
    opacity: .3;
    transition-delay: 0s, 0s;
}

#graph.part-selected .graph-part.open {
    opacity: 1;
}

.graph-part.open {
    opacity: 1;
}