/* general */
:root {
    --default-page-width: 100%;
    --default-footer-height: 2.5rem;

    --font-main: Poppins, sans-serif;

    --background-color-footer-rgb: 220, 220, 220;
    --background-color-basic-rgb: 240, 240, 240;
    --background-color-content-rgb: 253, 253, 252;
    --primary-color: #1d4c78;
    --secondary-color: #90c43e;
    --warning-color: #f58323;
    --info-color: #1cb0e6;
}

html,
body {
    font-family: var(--font-main) !important;
}

.main-container {
    width: var(--default-page-width);
    margin: auto;
    padding-top: 8vh;
    background-color: rgb(var(--background-color-content-rgb));
    min-height: 100vh;
}

.base-background {
    background-color: rgb(var(--background-color-basic-rgb));
    min-height: 100vh;
}

/* needed for footer */
.body-container {
    padding-bottom: var(--default-footer-height) !important;
}


/* Black screen for changing orientation */
.black-screen {
    display: none;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
}

.black-screen>div {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: x-large;
}

@media (orientation: portrait) {
    .black-screen {
        display: block !important;
    }
}

@media (orientation: landscape) {
    .black-screen {
        display: none !important;
    }
}

/* Dash data table */
.dash-spreadsheet-container .dash-spreadsheet-inner table {
    --accent: var(--bs-secondary) !important;
}


/* bootstrap layout */
.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

div.row {
    margin-left: 0;
    margin-right: 0;
    /* margin-bottom: .5rem; */
}


/* dbc carousel */
.carousel-caption {
    background-color: rgba(var(--bs-primary-rgb), 0.6);
    color: white !important;
}

/* header */
.header {
    padding-top: 1rem;
    height: 4rem;
    margin-bottom: 0.5rem;
}

.logo-img {
    height: var(--default-footer-height);
}

.banner-logo {
    height: var(--default-footer-height);
}

.thimo-table {
    margin-left: 1rem;
    margin-right: 1rem;
    padding-top: 1rem;
}

/* footer */
.footer {
    height: auto;
    z-index: 5;
}

.footer-floating {
    position: fixed;
    bottom: 0;

    width: var(--default-page-width);
    height: var(--default-footer-height);
    /* Set the fixed height of the footer here */
    line-height: var(--default-footer-height);
    /* Vertically center the text there */
    background-color: rgb(var(--background-color-footer-rgb));
}

.footer-link {
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: none;
    color: var(--bs-secondary);
}

.footer-link-margin-left {
    margin-left: 1rem;
    margin-right: auto;
}


/* navbar */
.NavBottom {
    /* border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.25); */
    padding-top: 0.5%;
    /* padding-bottom: 0.5%; */
    position: fixed;
    top: 0;
    z-index: 5;
    background-color: white;
    width: 100%;
    height: 8.5vh;
}

.navigation-card {
    /* margin-top: 2rem; */
    padding-bottom: 2rem;
}

.edit-buttons {
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    top: 8.5vh;
    z-index: 4;
    background-color: white;
    padding-bottom: 0.5%;
    position: sticky;

}

/* help buttons */
.btn-help {
    height: 1.5rem !important;
    width: 1.5rem !important;
    display: block !important;
    border-radius: 50% !important;

    color: white !important;
    padding: 0 !important;
}

.creation-area {
    width: 40%;
}

/* dcc multi dropdown (for simple dropdown use dbc) */
.Select,
.dash-dropdown {
    cursor: pointer;
}

.VirtualizedSelectFocusedOption {
    background-color: rgba(var(--bs-primary-rgb), 0.3);
}

.Select.is-focused>.Select-control {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.3) !important;
}

.Select--multi .Select-value {
    border-color: rgba(var(--bs-primary-rgb), 0.4) !important;
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.25) !important;
}

.Select--multi .Select-value:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.5) !important;
}

.Select--multi .Select-value-icon {
    color: var(--bs-primary) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.4) !important;
}

.Select--multi .Select-value-icon:hover,
.Select-value-icon:focus,
.Select-value-icon:active {
    background-color: rgba(var(--bs-primary-rgb), 0.5) !important;
}

/* Slider */
.rc-slider-track {
    background-color: rgba(var(--bs-primary-rgb), 0.5);
}

.rc-slider-dot-active {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.rc-slider-handle {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.rc-slider-handle:hover,
.rc-slider-handle:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.rc-slider-handle:active,
.rc-slider-handle-active:active {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: 0 0 5px rgba(var(--bs-primary-rgb), 0.3);
}

.rc-slider-handle-dragging {
    border-color: rgba(var(--bs-primary-rgb), 0.7) !important;
    box-shadow: 0 0 0 5px rgba(var(--bs-primary-rgb), 0.5) !important;
}


/* Dash data table */
.dash-spreadsheet-container .dash-spreadsheet-inner table {
    --accent: var(--bs-secondary) !important;
}

/* FIDA "L" snippets */
div.topleftsnippet {
    box-shadow: 3px 3px 0 3px var(--bs-primary),
        3px 10px 0 3px var(--bs-primary),
        3px 20px 0 3px var(--bs-primary),
        3px 30px 0 3px var(--bs-primary),
        3px 35px 0 3px var(--bs-primary),
        10px 3px 0 3px var(--bs-primary),
        17px 3px 0 3px var(--bs-primary);
    border-top-left-radius: 5px;
    background-color: var(--bs-primary);
    width: 10px;
    height: 10px;
    overflow: hidden;
    position: relative;
    left: -10px;
    z-index: 1;
}

div.bottomrightsnippet {
    box-shadow: 3px 3px 0 3px var(--bs-secondary),
        3px 10px 0 3px var(--bs-secondary),
        3px 20px 0 3px var(--bs-secondary),
        3px 30px 0 3px var(--bs-secondary),
        3px 35px 0 3px var(--bs-secondary),
        10px 3px 0 3px var(--bs-secondary),
        17px 3px 0 3px var(--bs-secondary);
    border-top-left-radius: 5px;
    background-color: var(--bs-secondary);
    width: 10px;
    height: 10px;
    overflow: hidden;
    position: relative;
    left: 100%;
    z-index: 1;
    transform: rotate(180deg);
}


#lang-switch>.dropdown-toggle.nav-link::before {
    font: var(--fa-font-solid);
    content: "\f1ab";
    /* <i class="fa-solid fa-language"></i> */
    margin-right: 8px;
}

.button-full-width {
    width: 100%;
}