/**
 * Fonts
 */

@font-face {
    font-family: 'DINPro';
    font-weight: 300;
    font-style: normal;
    src: url('/static/fonts/DINPro-Light.otf')   format('otf'),
         url('/static/fonts/DINPro-Light.woff')  format('woff'),
         url('/static/fonts/DINPro-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'DINPro';
    font-weight: 400;
    font-style: normal;
    src: url('/static/fonts/DINPro-Regular.otf')   format('otf'),
         url('/static/fonts/DINPro-Regular.woff')  format('woff'),
         url('/static/fonts/DINPro-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'DINPro';
    font-weight: 500;
    font-style: normal;
    src: url('/static/fonts/DINPro-Medium.otf')   format('otf'),
         url('/static/fonts/DINPro-Medium.woff')  format('woff'),
         url('/static/fonts/DINPro-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'DINPro';
    font-weight: 700;
    font-style: normal;
    src: url('/static/fonts/DINPro-Bold.otf')   format('otf'),
         url('/static/fonts/DINPro-Bold.woff')  format('woff'),
         url('/static/fonts/DINPro-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Bryant Pro';
    font-weight: 400;
    font-style: normal;
    text-rendering: optimizeLegibility;
    src: url('/static/fonts/BryantPro-Regular.otf')   format('otf'),
         url('/static/fonts/BryantPro-Regular.woff')  format('woff'),
         url('/static/fonts/BryantPro-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Bryant Pro';
    font-weight: 500;
    font-style: normal;
    text-rendering: optimizeLegibility;
    src: url('/static/fonts/BryantPro-Medium.otf')   format('otf'),
         url('/static/fonts/BryantPro-Medium.woff')  format('woff'),
         url('/static/fonts/BryantPro-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Bryant Pro';
    font-weight: 700;
    font-style: normal;
    text-rendering: optimizeLegibility;
    src: url('/static/fonts/BryantPro-Bold.otf') format('otf'),
         url('/static/fonts/BryantPro-Bold.woff') format('woff');
}

:root {
    color-scheme: light dark;

    --map-background-color: #ffffff;
    --node-label-color: #000000;
    --scale-text-color: #000000;

    --color-rnz-blue: rgb(0, 185, 228);
    --color-rnz-teal: rgb(0, 129, 158);
    --color-rnz-dark-blue: rgb(0, 76, 96);
    --color-rnz-dark-teal: rgb(17, 54, 62);

    --page-heading-bg-color: linear-gradient(210deg, var(--color-rnz-blue), var(--color-rnz-teal));
    --header-text-color: #f0f0f0;
    --link-label-fill-color: #ffffff;
    --link-label-text-color: hsl(191, 100%, 31%);
    --link-label-opacity: 0.9;
}

@media screen and (prefers-color-scheme: dark) {
    :root {
        --map-background-color: #101010;
        --node-label-color: #f0f0f0;
        --scale-text-color: #e0e0e0;

        --link-label-fill-color: #101010;
        --link-label-text-color: hsl(191, 100%, 60%);
        --link-label-opacity: 0.6;
        --page-heading-bg-color: linear-gradient(210deg, var(--color-rnz-dark-blue), var(--color-rnz-dark-teal));
    }
}

:root.dark {
    --map-background-color: #101010;
    --node-label-color: #f0f0f0;
    --scale-text-color: #e0e0e0;

    --link-label-fill-color: #101010;
    --link-label-text-color: hsl(191, 100%, 60%);
    --link-label-opacity: 0.6;
    --page-heading-bg-color: linear-gradient(210deg, var(--color-rnz-dark-blue), var(--color-rnz-dark-teal));
}

*, ::after, ::before {
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

html, body {
    height: 100%;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;

    font-size: 10px;
    font-family: "Helvetica Neue", system-ui,
                 ui-sans-serif, Helvetica, Arial, sans-serif;
    background-color: var(--map-background-color);
    color: var(--scale-text-color);
}
#map-container {
    background: var(--map-background-color, #ffffff);

    display: flex;
    align-items: center;
    height: 100vh;
}

#map-container.site-map {
    min-height: 80vh;
    height: auto;
    margin: auto;
}

#map {
    background: var(--map-background-color, #ffffff);

    min-width: 800px;
    min-height: 400px;

    width: 100%;

    max-height: 100vh;
    margin: auto;
}

#map-container.site-map > #map {
    max-height: none;
    min-height: 100px;
}


#map .link-segment path {
    transition: fill ease-in-out 1s;
}

#map .font-sans, .font-sans {
    font-family: DINPro, Helvetica Neue, sans serif;
}

#map .font-mono, font-mono {
    font-family: Menlo, Andale Mono, monospace;
}

#map .link-label-box {
    opacity: var(--link-label-opacity, 0.9);
    fill: var(--link-label-fill-color, #ffffff);
    stroke: hsl(191, 100%, 31%);
    stroke-width: 1;
}

#map .link-label-text {
    fill: var(--link-label-text-color, hsl(191, 100%, 31%));
    font-family: Menlo, Andale Mono, monospace;
}
#map .node-label-text {
    fill: var(--node-label-color, #000000);
    font-family: DINPro, Helvetica Neue, sans serif;
}
#map .link-segment {
    fill: #808080;
    stroke-width: 0;
}
#map .node {
    fill: #ffffff;
    stroke: hsl(191, 55%, 44.7%);
    stroke-width: 4;
}

.top-map #map .node {
    fill: #ffffff;
    stroke: hsl(191, 55%, 44.7%);
    stroke-width: 4;

    cursor: pointer;
}

#scale text {
    fill: var(--scale-text-color, #000000);
}

.minichart {
    color: #000000;
}

.title {
    font-family: DINPro, Helvetica Neue, sans serif;
}

#login-container {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem;
}

#animation-link {
    position: absolute;
    bottom: 2rem;
    left: 0;
    padding: 0.5rem;
}

#return-link {
    padding: 0.5rem;
}

[data-ui] {
    opacity: 0;

    transition: opacity ease-in-out 0.5s;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

h1, .h1 {
    margin: 0.67em 0;
    min-height: 1rem;
    font-size: 4.8rem;
}

a {
    font-size: 1.4rem;
    color: hsl(191, 100%, 31%);
}

button,
.button {
    color: #000;
    text-decoration: none;
    font-size: 1.4rem;

    display: inline-block;
    padding: 0.5rem;
    white-space: nowrap;
    vertical-align: middle;

    background-color: #FFF;
    border: solid 0.1rem;
    border-color: hsl(191, 100%, 31%);

    cursor: pointer;

    user-select: none;
}

button:hover,
.button:hover {
    color: #fff;
    background-color: hsl(191, 100%, 31%);
    border-color: hsl(191, 100%, 31%);
}

select {
    color: #000;
    text-decoration: none;
    font-size: 1.4rem;

    display: inline-block;
    padding: 0.5rem;
    white-space: nowrap;
    vertical-align: middle;

    background-color: #FFF;
    border: solid 0.1rem;
    border-color: hsl(191, 100%, 31%);
}

hr.color-red {
    border-color: rgb(219,  40,  40);
}

/* Error Page Styles */

#error-page {
    display: flex;
    font-size: 1.4rem;
    padding-top: 5rem;
    align-items: center;
    flex-direction: column;
}

#error-box {
    min-width: 25%;
    border: solid 2px rgb(219,  40,  40);
    background-color: #fff;
}

#error-page .err-title {
    font-size: 3.2rem;

    margin: 1rem;
}

#error-page p {
    margin: 1rem;
}

#error-page .err-message {
    font-size: 1.8rem;
}

#error-page .err-detail {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
}

#error-page .err-return {
    margin-top: 2rem;
}

#error-code {
    font-family: DINPro, Helvetica Neue, sans serif;
    font-size: 9.2rem;

    margin: 0;

    color: rgb(176,  40,  40);
}

#animation-header {
    padding: 1.5rem 10%;
    background: var(--page-heading-bg-color);
    color: var(--header-text-color);
}

#animation-header a {
    color: var(--header-text-color);
}

#animation-header h1 {
    font-size: 4.8rem;
    margin-bottom: 0;
}

#animation-header .subtitle {
    font-size: 3.2rem;
    margin-top: 0;
}

#animation-content {
    width: 80%;
    padding: 2rem;
    margin: 0 auto;
    font-size: 1.6rem;
    max-width: 1200px;
}

@media only screen and (max-width: 800px) {
    #animation-content {
        width: 100%;
    }
}

#animation-list {
    list-style-type:none;
    padding-left:0;
    margin:0;
}

.text-small {
    font-size: 1.2rem;
}

.text-medium {
    font-size: 1.6rem;
}

#logo {
    position: absolute;
    right: 0;
    padding: 1rem;
}

#select-member {
    max-width: 20rem;
}
