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

/* These fonts are for HMC self hosted dashboard instance, which should be in place in the server, (not in a public repository) */
@font-face {
    font-display: auto;
    font-family: halvar;
    font-stretch: normal;
    font-style: normal;
    font-weight: 300;
    src: url(./fonts/HelmholtzHalvarMittel-Lt.woff2) format("woff2"),
    url(./fonts/HelmholtzHalvarMittel-Lt.woff) format("woff"),
    url(./fonts/HelmholtzHalvarMittel-Lt.eot) format("eot")
}

@font-face {
    font-display: auto;
    font-family: halvar;
    font-stretch: normal;
    font-style: normal;
    font-weight: 400;
    src: url(./fonts/HelmholtzHalvarMittel-Rg.woff2) format("woff2"), url(./fonts/HelmholtzHalvarMittel-Rg.woff) format("woff"), url(./fonts/HelmholtzHalvarMittel-Rg.eot) format("eot")
}

@font-face {
    font-display: auto;
    font-family: halvar;
    font-stretch: normal;
    font-style: normal;
    font-weight: 700;
    src: url(./fonts/HelmholtzHalvarMittel-Bd.woff2) format("woff2"), url(./fonts/HelmholtzHalvarMittel-Bd.woff) format("woff"), url(./fonts/HelmholtzHalvarMittel-Bd.eot) format("eot")
}

@font-face {
    font-display: auto;
    font-family: halvar;
    font-stretch: normal;
    font-style: italic;
    font-weight: 400;
    src: url(./fonts/HelmholtzHalvarMittel-LtSlanted.woff2) format("woff2"), url(./fonts/HelmholtzHalvarMittel-LtSlanted.woff) format("woff"), url(./fonts/HelmholtzHalvarMittel-LtSlanted.eot) format("eot")
}

@font-face {
    font-display: auto;
    font-family: halvar;
    font-stretch: normal;
    font-style: italic;
    font-weight: 400;
    src: url(./fonts/HelmholtzHalvarMittel-RgSlanted.woff2) format("woff2"), url(./fonts/HelmholtzHalvarMittel-RgSlanted.woff) format("woff"), url(./fonts/HelmholtzHalvarMittel-RgSlanted.eot) format("eot")
}

@font-face {
    font-display: auto;
    font-family: halvar;
    font-stretch: normal;
    font-style: italic;
    font-weight: 700;
    src: url(./fonts/HelmholtzHalvarMittel-BdSlanted.woff2) format("woff2"), url(./fonts/HelmholtzHalvarMittel-BdSlanted.woff) format("woff"), url(./fonts/HelmholtzHalvarMittel-BdSlanted.eot) format("eot")
}


/* These fonts are for public users with the License information */
@font-face {
    font-display: auto;
    font-family: hifis-din;
    font-stretch: normal;
    font-style: normal;
    font-weight: 300;
    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');
}

body {
    font-family: halvar, 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;
}



.hmc-navbar {
    background-color: #ffffff !important;
    color: #002864 !important;
}

.hmc-navbar .navbar-toggler {
    border-color: #002864;
}

.hmc-navbar .navbar-toggler:focus {
    border-color: #14C8FF;
}

.hmc-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23002864' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.hmc-navbar .navbar-toggler:focus .navbar-toggler-icon,
.hmc-navbar .navbar-toggler:active .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2314C8FF' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

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

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

.hmc-navbar .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: center top;
    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%);
}


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;
}
