/*
 * SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Berlin für Materialien und Energie GmbH, Berlin, Germany
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/* Self-hosted HIFIS DIN font family (licensed files stored in assets/fonts) */
@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: normal;
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/hifis-din.woff2') format('woff2'),
        url('./fonts/hifis-din.woff') format('woff');
}


@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: normal;
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/hifis-din-bold.woff2') format('woff2'),
        url('./fonts/hifis-din-bold.woff') format('woff');
}

@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: normal;
    font-style: italic;
    font-weight: 400;
    src: url('./fonts/hifis-din-italic.woff2') format('woff2'),
        url('./fonts/hifis-din-italic.woff') format('woff');
}

@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: condensed;
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/hifis-din-condensed.woff2') format('woff2'),
        url('./fonts/hifis-din-condensed.woff') format('woff');
}

@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: condensed;
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/hifis-din-condensed-bold.woff2') format('woff2'),
        url('./fonts/hifis-din-condensed-bold.woff') format('woff');
}

@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: expanded;
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/hifis-din-exp.woff2') format('woff2'),
        url('./fonts/hifis-din-exp.woff') format('woff');
}

@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: expanded;
    font-style: italic;
    font-weight: 400;
    src: url('./fonts/hifis-din-exp-italic.woff2') format('woff2'),
        url('./fonts/hifis-din-exp-italic.woff') format('woff');
}

@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: expanded;
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/hifis-din-exp-bold.woff2') format('woff2'),
        url('./fonts/hifis-din-exp-bold.woff') format('woff');
}

body {
    font-family: hifis-din, sans-serif;
    margin: 0;
    color: #002864;

}

p a {
    --tw-text-opacity: 0.8;
    color: rgb(20 200 255/var(--tw-text-opacity));
}

p a:hover {
    --tw-text-opacity: 1;
    color: rgb(20 200 255/var(--tw-text-opacity));
}

.text-justify {
    text-align: justify
}

#navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px -6px rgba(0, 0, 0, .5);
    transition: 1s;
    z-index: 1030;
}

#languages {
    display: flex;
    transition: 1s;
}

#logo {
    transition: 1s;
}

.navbar-light .navbar-nav .nav-link {
    --tw-text-opacity: 1;
    color: rgb(0 40 100/var(--tw-text-opacity))
}

.navbar-light .navbar-nav .nav-link.active {
    --tw-text-opacity: 1;
    color: rgb(20 200 255/var(--tw-text-opacity))
}

.bg-blue,
.bg-blue-dark {
    --tw-bg-opacity: 1;
    background-color: rgb(0 40 100/var(--tw-bg-opacity))
}

.bg-blue-light {
    --tw-bg-opacity: 1;
    background-color: rgb(20 200 255/var(--tw-bg-opacity))
}


.banner {
    background-position: right center;
    background-size: cover;
    height: 280px;
    background-repeat: no-repeat;
    background-color: #002864;
}

.banner h3 {
    color: #fff;
    padding-left: 5rem;
    font-weight: bold;
}

.info-box {
    background-color: #ECFBFD;
}

.info-box a,
.content a {
    color: #002864;
    text-decoration: underline;
    font-weight: 600;
}

.info-box a:hover,
.content a:hover {
    --tw-text-opacity: 1;
    color: rgb(20 200 255/var(--tw-text-opacity));
    text-decoration: none !important;
    font-weight: bold;
}

.info-box h3:first-child {
    padding: 16px;
}


.info-box .accordion .accordion-item,
.info-box .accordion-button {
    background-color: #ECFBFD;
    color: #002864;
}

.info-box .accordion-button:not(.collapsed) {
    color: #14C8FF;
    font-weight: bold;
    background-color: rgb(0 0 0/ 8%);
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);
}

.clipboard-button {
    border: none;
    background: transparent;
    padding: 0;
    color: #002864;
    cursor: pointer;
}

.clipboard-button:hover {
    color: #14C8FF;
}

.dmc-filter-input {
    min-height: 38px;
    height: 38px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 24px;
}

.question-select-value {
    font-size: 40px;
}

.question-select-item {
    font-family: hifis-din, sans-serif;
    font-size: 20px;
    overflow-y: auto;
    max-height: 300px;
}


footer .nav-link {
    color: #fff;
    padding-left: 0;
}


#navbar-collapse {
    flex-direction: column;
}

#languages_mobile {
    display: none;
}

/* Add responsiveness - on screens less than 580px wide, display the navbar vertically instead of horizontally */
@media screen and (max-width: 580px) {
    #logo {
        height: 30px !important;
        /* Use !important to make sure that JavaScript doesn't override the padding on small screens */
    }

    .banner h3 {
        padding-left: 2rem;
    }


    .plotly {
        font-size: 10px !important;
    }

}

@media (max-width: 768px) {
    #languages {
        display: none;
    }

    #languages_mobile {
        display: block;
    }
}


.filter_msg {
    text-align: center;
    position: relative;
    max-width: 220px;
    margin-left: 10px;
    font-size: small;
    padding-top: 2px;
}



.header {
    height: 288px;
    padding: 16px 0 0 0;
}

.header-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px auto;
    height: 80px;

}

.header-emoji img {
    width: 400px;
}

.header-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
}

.header-description {
    margin: 4px auto;
    text-align: center;
    max-width: 384px;
}

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 1024px;
    margin-top: 32px;
}

.card {
    margin-bottom: 24px;
}

.menu {
    height: 112px;
    display: flex;
    justify-content: space-evenly;
    padding-top: 24px;
    margin: -80px auto 0 auto;
}

.Select-control {
    width: 320px;
    height: 48px;
}

.Select--single>.Select-control .Select-value,
.Select-placeholder {
    line-height: 48px;
}

.Select--multi .Select-value-label {
    line-height: 32px;
}

.menu-title {
    margin-bottom: 6px;
    font-weight: bold;
}

.sidebar-header-title {
    margin-bottom: 6px;
    font-weight: bold;
}

.avg_FAIR_text {
    position: absolute;
    top: 40px;
    z-index: 1;
}

.my-btn {
    background-color: #002864;
    border: 0;
}

.my-btn:hover {
    background-color: #005AA0
}

.my-btn-color {
    border-color: #002864;
}

.my-btn-color:hover {
    border-color: #005AA0 !important;
    background-color: #005AA0 !important;
    color: #fff !important;
}

.my-btn-active {
    background-color: #002864 !important;
    border-color: #002864 !important;
    color: #fff !important;
}

/* restyle radio items */
.radio-group .form-check {
    padding-left: 0;
}

.radio-group .form-check label {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-group .btn-group>.form-check>.btn {
    border-radius: 20px;
}

.radio-group .btn-group>.form-check:not(:last-child)>.btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}


.radio-group .btn-group>.form-check:not(:first-child)>.btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

.mantine-Carousel-indicator {
    width: 12px;
    height: 12px;
    margin-top: 10;
    background-color: #e0e0e0;
}

.mantine-Carousel-indicator:hover {
    background-color: #00b2ff;
}

.mantine-Carousel-indicator:where([data-active]) {
    background-color: #002864;
}

.mantine-Carousel-control {
    background-color:  #e0e0e0;

}