/* MAIN CONTAINER  */
.globalContainer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 768px) {
    .globalContainer {
        flex-direction: column;
    }
}

/* MENU: HEADER */
:root {
    --header-height: 38px;
    --nav-width: 200px;
    --nav-minimized-width: 63px;
}

header {
    height: var(--header-height);
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: var(--grey-light);
    z-index: 1;
    position: fixed;
    box-shadow: 0 0 2px 1px var(--grey-mid);
    justify-content: space-between;
}

@media only screen and (max-width: 768px) {
    header {
        display: none;
    }
}

.menuAreaContainer {
    display: flex;
    flex-direction: row;
}

header .websiteTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0 15px;
}

.websiteTitle>span {
    margin-left: 7px;
    color: var(--secondary-color-mid);
}

/* MENU: HEADER ACTIONS */
.menuButton {
    font-size: 14px;
    padding: 0 10px 0 7px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.menuButtonLink.withBorder {
    border-bottom: 2px solid rgba(255, 255, 255, 0);
}

@media only screen and (max-width: 400px) {
    .websiteTitle>span{
        display: none;
    }
}

.menuButtonLink {
    color: var(--primary-color-dark);
    border-bottom: 2px solid transparent;
    padding-top: 2px;
}

.menuButtonLink.active {
    color: var(--primary-color-lighter);
    background-color: var(--primary-color-mid);
}

.menuButtonLink>span{
    display: flex;
    align-items: center;
    font-size: 1em;
}

a.menuButtonLink:hover{
    color: var(--primary-color-darker);
    border-bottom-color: var(--primary-color-darker);
}

/* User name clickable -> dropdown */
.headerDropdownTrigger.menuButtonLink{
    justify-content: flex-end;
}

/* user icon */
.headerDropdownTrigger.menuButtonLink>i{
    font-size: 26px;
    color: var(--primary-color-dark);
    margin: 0 5px 0 0;
}

/* Carret */
.headerDropdownTrigger.menuButtonLink>i ~ i{
    font-size: 18px;
    color: var(--primary-color-mid);
}

.headerDropdownTrigger.menuButtonLink:hover>i{
    color: var(--primary-color-darker);
}

.websiteTitle>svg{
    height: 28px;
}

/* MENU ICONS */
.menuButtonLink>i {
    margin: 0 5px;
}

.options {
    display: flex;
    justify-content: center;
    color: var(--grey-mid);
    cursor: pointer;
    margin-block-end: 0;
    text-decoration: none;
    margin-left: 5px;
    width: 20px;
    height: 18px;
    padding: 1px 5px;
    font-size: 18px;
    align-items: center;
    border-radius: 15px;
}

.options:hover {
    color: var(--secondary-color-mid) !important;
    background-color: var(--grey-lighter);
}

/* USER dropdown */
header .dropdown {
    top: calc(var(--header-height) - 2px);
    right: 4px;
}

.dropdown {
    position: absolute;
    flex-direction: column !important;
    background-color: var(--grey-lighter);
    box-shadow: 0 0 2px 1px var(--grey-mid);
    border-radius: 5px;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    z-index: 2;
}

.dropdown.hidden {
    display: none;
}

.dropdown>.element {
    width: 180px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    padding: 7px 20px;
    color: var(--primary-color-mid);
}

.dropdown>a.element {
    text-decoration: none;
    overflow: hidden;
    white-space: normal;
}

.dropdown>.element.separator {
    height: 1px;
    background-color: var(--primary-color-light);
    padding: 0 20px;
    margin: 8px 0;
}

.dropdown>a.element:not(.separator):hover{
    background-color: var(--secondary-color-mid);
    color: white;
}

.dropdown>.element>i {
    width: 18px;
    margin-right: 7px;
}

/* MENU: NAV */
nav {
    display: flex;
    flex-direction: column;
    width: var(--nav-width);
    background-color: var(--primary-color-darker);
    padding-top: 10px;
    justify-content: space-between;
    z-index: 2;
    position: fixed;
    height: 100%;
}

@media only screen and (max-width: 768px) {
    nav {
        display: none;
    }
}

nav .element.websiteTitle {
    padding: 0 15px;
    margin-bottom: 15px;
}

.navAreaContainer .element.active {
    color: var(--primary-color-lighter);
    background-color: var(--secondary-color-dark);
}

.websiteTitle>span {
    font-size: 18px;
    color: var(--secondary-color-light);
}

header .websiteTitle>span, .headerMobileView.loggedOut .websiteTitle>span {
    color: var(--secondary-color-mid);
}

.navAreaContainer {
    display: flex;
    flex-direction: column;
}

.globalContainer.minimized>nav {
    width: var(--nav-minimized-width);
}

.navAreaContainer>.element {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    color: var(--primary-color-light);
    height: 33px;
    padding: 2px 20px;
    font-size: 14px
}

.navAreaContainer a {
    text-decoration: none;
}

.navAreaContainer>.element:not(.websiteTitle):hover {
    color: var(--primary-color-lighter);
    cursor: pointer;
}

.navAreaContainer>.element>i {
    display: flex;
    justify-content: center;
    width: 20px;
    font-size: 16px;
}

.navAreaContainer>.element>span {
    margin-left: 7px;
}

.globalContainer.minimized nav>.navAreaContainer>.element>span {
    margin: 0;
}

.globalContainer.minimized nav>.navAreaContainer>.element>span {
    opacity: 0;
    width: 0;
    font-size: 0;
}

.resizeNavAction {
    justify-self: flex-end;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 20px;
    cursor: pointer;
    color: var(--primary-color-mid);
    z-index: 3;
}

.globalContainer.minimized .resizeNavAction>i {
    transform: rotate(180deg);
}

.resizeNavAction:hover {
    color: var(--primary-color-light);
}

.resizeNavAction>i {
    font-size: 20px;
}

/* Nav on mobile = header */
.headerMobileView {
    display: none;
    height: var(--header-height);
    flex-direction: row;
    width: 100%;
    background-color: var(--primary-color-darker);
    z-index: 3;
    justify-content: space-between;
    position: fixed;
    box-shadow: 0 1px 4px 1px rgba(0,0,0,0.3);
}

.headerMobileView.loggedOut {
    background-color: var(--grey-light);
}

@media only screen and (max-width: 768px) {
    .headerMobileView {
        display: flex;
    }
}

.headerMobileView>.websiteTitle{
    padding: 5px;
    align-items: center;
    display: flex;
    text-decoration: none;
}

.headerMobileView .websiteTitle>svg{
    height: 24px;
}

.headerMobileView:not(.loggedOut)>.websiteTitle>span {
    display: none;
}

.hamburgerMenu {
    display: flex;
    width: 30px;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
}

.hamburgerMenu > div {
    height: 2px;
    background-color: var(--primary-color-light);
}

.hamburgerMenu:hover > div, .hamburgerMenu.active > div {
    background-color: var(--primary-color-lighter);
}

/* bars for the opening anim */
.hamburgerMenu > .bar3 {
    /*display: none;*/
    opacity: 0;
    margin-top: -8px;
}

.hamburgerMenu.active > .bar1, .hamburgerMenu.active > .bar4 {
    opacity: 0;
}

.hamburgerMenu.active > .bar3 {
    /*display: block;*/
    opacity: 100%;
    transform: rotate(45deg);
}

.hamburgerMenu.active > .bar2 {
    transform: rotate(-45deg);
}

.headerMobileView .headerDropdownTrigger.menuButtonLink>i{
    color: var(--primary-color-light);
}

.headerMobileView .headerDropdownTrigger.menuButtonLink:hover>i{
    color: var(--primary-color-lighter);
}

.headerMobileView .dropdown {
    top: calc(var(--header-height) - 2px);
    right: 4px;
}

.navMobileView {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color-darker);
    padding-top: 20px;
    justify-content: space-between;
    z-index: 2;
    height: 100%;
    position: fixed;
    margin-top: var(--header-height);
}

.navMobileView.hidden {
    width: 0;
}

@media only screen and (min-width: 769px) {
    .navMobileView {
        display: none;
    }
}

.navMobileView.hidden .element {
    opacity: 0;
}

/* LABELS */
.label {
    font-size: 12px;
    background-color: var(--primary-color-light);
    color: var(--primary-color-dark);
    border-radius: 3px;
    padding: 3px 5px;
    margin: 0 7px;
    font-weight: bold;
}

/* POP UPS*/
.popUpContainer {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.popUp {
    /*background-color: var(--surface-color);*/
}

.popUp.small {
    width: 400px;
    height: 200px;
}

.popUpBackground {
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* TOOLTIPS */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltipText {
    visibility: hidden;
    position: absolute;
    background-color: var(--grey-darker);
    color: var(--grey-light);
    text-align: center;
    border-radius: 4px;
    padding: 5px 1px;
    font-weight: normal;
    font-size: 0.9em;
    z-index: 1;
}

.tooltip:hover .tooltipText {
    visibility: visible;
}

.tooltipText.small {
    width: 120px;
    margin-left: -60px;
}

.tooltipText.large {
    width: 240px;
    margin-left: -120px;
}

.tooltipText.top {
    margin-bottom: 7px;
    bottom: 100%;
    left: 50%;
}

.tooltipText.bottom {
    margin-top: 7px;
    top: 100%;
    left: 50%;
}

.tooltip .tooltipText::after {
    content: " ";
    position: absolute;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent;
}

.tooltip .tooltipText.top::after {
    top: 100%;
    border-top-color: var(--grey-darker);
}

.tooltip .tooltipText.bottom::after {
    bottom: 100%;
    border-bottom-color: var(--grey-darker);
}