@font-face {
    font-family: 'EncodeSans';
    src: url('EncodeSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 100%;
}

body {
    --bs-font-sans-serif: 'EncodeSans' !important;
    font-family: 'EncodeSans' !important;
    margin: 0;
    overflow: hidden;
    color: var(--theme-text-brand);
    font-size: 1rem;
    height: 100svh !important;
}

h1, h2, h3, h4, h5, h6, p, a, li, span, div, table, tr, td {
    --bs-font-sans-serif: 'EncodeSans' !important;
    font-family: 'EncodeSans' !important;
    color: var(--theme-text-brand) !important;
}

span, label, a, i, p, ol, ul, li {
    color: var(--theme-text) !important;
}

h5 {
    font-weight: bold;
}

.btn-primary {
    --bs-btn-bg: var(--theme-primary);
    --bs-btn-border-color: var(--theme-primary-hover);
    --bs-btn-hover-bg: var(--theme-primary-hover);
    --bs-btn-hover-border-color: var(--theme-primary);
    --bs-btn-active-bg: var(--theme-primary-active);
}

.text-size-toggle {
    position: fixed;
    left: 20px;
    bottom: 14px;
    z-index: 10000;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 0;
}

.text-size-toggle .bi {
    color: white !important;
    font-size: 36px;
    line-height: 1;
}

i {
    color: var(--theme-text-brand);
    font-size: 2rem;
}

iframe {
    height: 100%;
    width: 100%;
    border: 0;
    overflow: hidden;
}

.dropdown-menu-languages {
    min-width: auto;
    position: absolute !important;
    right: 0;
    left: unset !important;
}

.carousel {
    z-index: 10000;
    width: 100%;
}

.carousel-item, .carousel-item img {
    object-fit: cover;
    height: 250px;
}

.page-content {
    display: contents;
    height: 100%;
}

.text-content {
    --bs-font-sans-serif: 'EncodeSans' !important;
    font-family: 'EncodeSans' !important;
    overflow-y: auto;
    height: 100%;
}

.text-content h5 {
    font-size: 2rem;
}

.text-content {
    font-size: 1.1rem;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
}

.content-footer {
    bottom: 0px;
    position:absolute;
    width: 100%;
}

.text-content-parent {
    padding-bottom: 120px;
    position: absolute;
    top: 0;
    height: 100%;
    padding-top: 30px;
}

.info-image {
    opacity: 0.1;
    filter: grayscale(100%);
    flex-wrap: nowrap;
    justify-content: flex-start; 
    left: unset;
    right: 0;
    width: inherit;
    background-size: cover;
    transition: top 0.5s ease;
    padding-bottom: 60px;
    background-position: center top;
}

.info-overlay {
    opacity: 1;
    justify-content: flex-start;
    left: unset;
    right: 0;
    width: inherit;
    background-size: cover;
    transition: top 0.5s ease;
    background: linear-gradient(var(--theme-primary-hover), var(--theme-primary));
    padding-bottom: 60px;
    background-position: center top;
}

.info-control {
    flex-wrap: nowrap;
    justify-content: flex-start;
    left: unset;
    right: 0;
    width: inherit;
    background-size: cover;
    transition: all 0.5s ease;
}

#info-content > div > div > table {
    margin: 0 auto;
    width: auto;
}

#info-content > div > div > table > tbody {
    border: transparent;
}

#info-content > div > div > table > tbody > tr > td {
    background-color: transparent;
}

.info-content-container {
    top: unset;
    height: unset;
    position: relative;
    display: block;
}

.info-content-container > nav > div {
    position: relative;
}

.modal-window-close-button {
    position: absolute;
    right: 10;
    top: 10;
    float: right;
    background: white;
    border-radius: 30px;
    padding: 10px;
    opacity: 0.5;
    z-index: 80000;
}

.language-selector-page-overlay {
    background: linear-gradient(var(--theme-primary-hover), var(--theme-primary));
    width: 100%;
    height: 100%;
    position: absolute;
}

.language-selector-page-background {
    opacity: 0.1;
    filter: grayscale(100%);
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}

.language-selector-page-language {
    background-color: var(--theme-language-background);
    padding: 10px 20px;
    margin: 10px;
    font-size: 1rem;
    border-radius: 10px;
}

.text-content > p {
    margin-bottom: 0px;
}

.h-100.content {
    z-index: 100;
}

.info-control {
    z-index: 10000;
}

.overlay {
    width: 100%;
}

#audio-content {
    position: fixed;
    left: 50%;
    bottom: -20px;
    transform: translate(-50%, -50%);
    margin: 0 auto;
    background: gray;
    padding: 20px;
    border-radius: 60px;
    box-shadow:
    inset 0 -3em 3em rgba(0, 0, 0, 0.1),
    0 0 0 2px rgb(255, 255, 255),
    0.3em 0.3em 1em rgba(0, 0, 0, 0.3);;
}

#audio-content > i {
    color: black !important;
    font-size: 3rem;
}

.filter-checkbox{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  user-select:none;
  transition: opacity .15s ease;
}

.filter-checkbox-input{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:-1px;
  padding:0;
  border:0;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  overflow:hidden;
  white-space:nowrap;
}

.filter-checkbox-circle{
  inline-size:28px;
  block-size:28px;
  padding: 14px;
  border-radius:50%;
  display:inline-flex;
  flex: 0 0 28px;
  align-items:center;
  justify-content:center;
  position:relative;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.06);
  outline:2px solid;
}

.filter-checkbox-icon{
  max-inline-size:90%;
  max-block-size:90%;
  object-fit:contain;
  transform:scale(1);
  opacity: 1;
  transition: transform .15s ease;
}

#guided-route-point-list {
    padding: 0.85rem;
    gap: 0.6rem;
}

.guided-route-actions {
    padding: 0.85rem 0.85rem 0;
}

.guided-route-point-item {
    margin: 0;
}

.guided-route-point-row {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr);
    align-items: stretch;
    min-height: 3.35rem;
    border: 1px solid rgba(var(--theme-text-brand-rgb), 0.14);
    border-left: 4px solid var(--theme-primary);
    background: #fff;
}

.guided-route-point-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(var(--theme-text-brand-rgb), 0.14);
    color: var(--theme-primary) !important;
    font-weight: 700;
    line-height: 1;
}

.guided-route-point-title {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    color: var(--theme-text) !important;
    line-height: 1.25;
}

.guided-route-point-item.is-discovered .guided-route-point-row {
    border-left-color: #4A5568;
    background: #f7f7f7;
}

.guided-route-point-item.is-discovered .guided-route-point-order,
.guided-route-point-item.is-discovered .guided-route-point-title {
    color: #666 !important;
}

.guided-route-point-item.is-pending .guided-route-point-row {
    border-color: rgba(var(--theme-primary-rgb), 0.45);
    border-left-color: var(--theme-primary);
    background: linear-gradient(90deg, rgba(var(--theme-primary-hover-rgb), 0.22), #fff 44%);
}

.guided-route-point-item.is-locked .guided-route-point-row {
    opacity: 0.55;
}

.route-destination-halo {
    position: absolute;
    left: 50%;
    top: 40%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(var(--theme-primary-rgb), 0) 25%,
        rgba(var(--theme-primary-rgb), 0.45) 52%,
        rgba(var(--theme-primary-rgb), 0.12) 70%,
        transparent 72%);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.75),
        0 0 18px 8px rgba(var(--theme-primary-rgb), 0.35);
    pointer-events: none;
    z-index: 0;
}

.guided-route-locked-point-message {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 90000;
    max-width: min(92vw, 560px);
    padding: 0.85rem 1.25rem;
    background: linear-gradient(var(--theme-primary-hover), var(--theme-primary));
    color: white !important;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -120%);
    transition: transform 220ms ease-out;
}

.guided-route-locked-point-message.is-visible {
    transform: translate(-50%, 88px);
}

.route-modal-window {
    width: 100vw;
}

@media (max-width: 599.98px) {
    .route-modal-window {
        box-sizing: border-box;
        align-items: stretch !important;
        height: 100svh !important;
        margin: 0 !important;
        min-height: 0 !important;
        width: 100vw;
    }

    .route-modal-window .modal-content {
        height: 100%;
        max-height: 100%;
    }
}

.analytics-consent-banner {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.45);
}

.analytics-consent-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 960px;
    width: 100%;
    margin: 0;
    padding: 1rem;
}

.analytics-consent-text {
    flex: 1 1 auto;
}

.analytics-consent-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.analytics-consent-actions .btn {
    width: 100%;
}

@media (min-width: 600px) {
    .analytics-consent-banner {
        padding: 2rem;
    }

    .analytics-consent-content {
        align-items: center;
        flex-direction: row;
        padding: 1.25rem 1.5rem;
    }

    .analytics-consent-actions {
        flex: 0 0 auto;
        flex-direction: row;
    }

    .analytics-consent-actions .btn {
        width: auto;
        min-width: 7rem;
    }

    .route-modal-window {
         width: 1140px;
    }

    .carousel-item img {
        height: 100%;
        object-fit: cover;
        transform-origin: center;
    }

    .carousel-item {
        height: 100%;
    }

    .page-content {
        display: flex;
        height: 100%;
    }

    .text-content-parent {
        position: relative;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    #info-content {
        padding-top: 80px;
    }

    #info-content > div > div > table {
        font-size: 1.1rem;
        margin: unset;
        margin: 0 auto;
    }

    .text-content h5 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .h-100.content {
        width: 40%;
    }

    .carousel {
        z-index: 11000;
        width: 60%;
    }

    .container-fluid.text-content {
        padding-right: 4em !important;
        padding-left: 4em !important;
    }

    .overlay {
        width: 40%;
    }

    .overlay.text-only-overlay {
        width: 100%;
    }

    .info-content-text {
        margin-top: 80px !important;
    }

    .modal-window-close-button {
        right: 30px;
        top: 30px;
        border-radius: 40px;
        z-index: 80000;
    }

    .modal-window-close-button > button {
        font-size: 2rem; 
    }

    #audio-content {
        position: unset;
        left: unset;
        bottom: unset;
        transform: unset;
        margin: unset;
        background: unset;
        padding: unset;
        border-radius: unset;
        box-shadow: unset;
    }

    .text-size-toggle {
        position: unset;
        left: unset;
        bottom: unset;
        z-index: unset;
        margin: unset;
    }

    #audio-content > i {
        color: white !important;
        font-size: 2rem;
    }
}
