@import url("components/header.css");
@import url("components/left-panel.css");
@import url("components/right-panel.css");

/* Customer variables  */

:root {
    --left-panel-accent-color: #335E6F;
    --left-panel-select-background-color: #4A90A4;
    --left-panel-select-color: #ffffff;
    --left-panel-color: #003247;
    --left-panel-background-color: #f4f8fa;
    --left-panel-border-color: #d0dde4;
    --left-panel-title-color: #335E6F;
    --left-panel-subtitle-color: #2A4B5A;
    --tooltip-backgroung: #6ba3b8;
    --header-color: #e8f1f5;
    --header-background-color: #003247;
    --header-border-color: #335E6F;
    --link-color-visited: #b8d4e0;
    --link-color: #e8f1f5;
    --hystmodal-zindex: 7000 !important;
    --adm-boundaries-color: #f4f8fa;
    --cocoa-color: #994C00;
}

/* Fonts */

@font-face {
  font-family: NotesESAbold;
  src: url(/static/map/fonts/NotesEsaBol.otf) format("opentype")
}

@font-face {
  font-family: NotesESAregular;
  src: url(/static/map/fonts/NotesEsaReg.otf) format("opentype")
}

@font-face {
  font-family: NotesESAlogos;
  src: url(/static/map/fonts/NotesEsaLogos.otf) format("opentype")
}

body {
    overflow-x: hidden;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

a:visited {
    color: var(--link-color-visited);
}

#main {
    display: flex;
    flex-direction: row;
    position: relative;
    height: calc(100vh - 80px);
}

#map {
    display: flex;
    width: 100vw;
    height: 100%;
}

#spinner {
    z-index: 1001;
    position: absolute;
    top: 50%;
    left: 50%;

    filter: drop-shadow(0 0 2px white);
    -webkit-filter: drop-shadow(0 0 2px white);
}

#spinner .fa {
    font-size: 48px;
    filter: drop-shadow(0 0 2px white);
    -webkit-filter: drop-shadow(0 0 2px white);

    mask: url("/static/map/img/svg/loading.svg");
    -webkit-mask-attachement: url("/static/map/img/svg/loading.svg");
    background-color: var(--header-background-color);

    animation: spin 1s ease-in-out infinite;
}

.hidden{
    display: none;
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.fa {
    width: 1em;
    height: 1em;
    display: inline-block;
    background: var(--header-color);
    mask-size: cover;
    font-size: 24px;
    cursor: pointer;
    transition: transform .3s;
}
.fa:hover {
    transform: translateY(-2px);
}

/* Tooltip from http://www.menucool.com/tooltip/css-tooltip */

.tooltip {
    display: inline-block;
    position: relative;
    border-bottom: 1px dotted var(--tooltip-backgroung);
    text-align: left;
    cursor: help;
}

.tooltip .top,
.tooltip .bottom {
    padding: 10px 20px;
    color: #ffffff;
    background-color: var(--tooltip-backgroung);
    font-weight: normal;
    font-size: 12px;
    border-radius: 8px;
    position: absolute;
    z-index: 1001;
    box-sizing: border-box;
    display: none;
}

.tooltip .top {
    width: 220px;
    min-width: 220px;
    top: -5px;
    left: 50%;
    transform: translate(-40%, -100%);
}

body.ar .tooltip .top {
    right: 50%;
    transform: translate(40%, -100%);
}

.tooltip .bottom {
    max-width: 120px;
    top: 35px;
    left: 50%;
    transform: translate(-50%, 0);
}

body.ar .tooltip .bottom {
    right: 50%;
    transform: translate(50%, 0);
}

.tooltip:hover .top,
.tooltip:hover .bottom {
    display: block;
}

.tooltip .top i {
    position: absolute;
    top: 100%;
    left: 30%;
    width: 30px;
    height: 15px;
    overflow: hidden;
}

body.ar .tooltip .top i {
    right: 30%;
}

.tooltip .bottom i {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-left: -15px;
    width: 30px;
    height: 15px;
    overflow: hidden;
}

.tooltip .top i::after,
.tooltip .bottom i::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--map-grey);
}

.tooltip .top i::after {
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.tooltip .bottom i::after {
    left: 50%;
    transform: translate(-50%, 50%) rotate(45deg);
}

a#download-link {
    display: none;
}

.hystmodal__window {
    width: 60vw !important;
    height: 60vh !important;
    max-height: 100% !important;
}
