/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

:root {
    --theme-background-color: #d0f2fc;
    --translucent-color: rgba(255,255,255,0.8);
    --solid-translucent-color: #e8f9fe; /* Halfway between the background color and white */
    --background-image: url(../images/background.svg);
    --swiper-bullet-background-color: #000;
}

.dark {
    --theme-background-color: black;
    --translucent-color: rgba(0,0,0,0.8);
    --solid-translucent-color: black;
    --background-image: url(../images/background-transparent.svg);
    --swiper-bullet-background-color: #fff;
}

.swiper-pagination-bullet {
    background-color: var(--swiper-bullet-background-color);
}
.swiper-pagination-bullet-active {
    background-color: var(--swiper-pagination-color,var(--swiper-theme-color));
}


.fab {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    font-family: var(--f7-font-family);
    font-size: var(--f7-font-size);
    line-height: var(--f7-line-height);
}

.button .fa-solid, .button .fa-regular, .button .fa-duotone {
    margin-right: 0.3rem;
}

.page {
    background-color: var(--theme-background-color);
    background-image: var(--background-image);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    background-attachment: fixed;
}

.list.transparent ul {
    background-color: var(--translucent-color);
}
.list.transparent ul li.item-divider {
    background-color: var(--translucent-color);
}
.popup {
    overflow-y: auto;
}

.dark .popup {
    background-color: rgba(0,0,0,0.95);
}

.navbar, .navbar-bg, .subnavbar, .subnavbar *, .subnavbar .searchbar-inner .searchbar-input-wrap * {
    background-color: var(--solid-translucent-color);
}

.background-color-transparent {
    background-color: transparent;
}

.page-content-fab-pad {
    padding-bottom: var(--f7-fab-size);
}

.navbar, .item-link .item-title, .item-media, .item-divider, .item-label, .fab, .button, .noselect {
    user-select: none;
}

.navbar-inner {
    -webkit-app-region: drag;
}
.navbar-inner > * {
    -webkit-app-region: no-drag;
}

/*
 * Material icons are too big and disrupt the flow of text
 */
.block .material-icons {
    font-size: var(--f7-block-font-size);
}

.material-icons.material-icons-24px {
    font-size: 24px;
}

.material-icons-intext .material-icons {
    font-size: var(--f7-block-font-size);
}

.searchbar-icon-button {
    pointer-events: auto;
}

.searchbar-icon-button:after {
    color: var(--f7-navbar-link-color,var(--f7-bars-link-color,var(--f7-theme-color)));
}

.card-header.no-hairlines:after {
    display: none;
}

.no-animation * {
    -webkit-transition: 10ms !important;
    -moz-transition: 10ms !important;
    -o-transition: 10ms !important;
    -ms-transition: 10ms !important;
    transition: 10ms !important;
}

.trackingeventicon {
    vertical-align: middle;
    width: 1.5em;
}

/*
 Allow easily changing help text to reflect finger/mouse usage.
*/
.clicktext {
    display: none;
}
@media (pointer:fine) {
    .taptext {
        display: none;
    }
    .clicktext {
        display: initial;
    }
}


.pointercursor {
    cursor: pointer;
}

.card-expandable .card-closed-display-none {
    display: none;
}
.card-expandable.card-opened .card-opened-display-none {
    display: none;
}
.card-expandable.card-opening .card-opened-display-none {
    display: none;
}
.card-expandable.card-opened .card-closed-display-none {
    display: initial;
}
.card-expandable.card-opening .card-closed-display-none {
    display: initial;
}

.card-expandable.card-opened .card-content, .card-expandable.card-opening .card-content {
    padding-top: calc(var(--f7-navbar-height) * 1.5);
}



.list.basic-list li {
    padding-top: calc(var(--f7-list-item-min-height) / 4);
    padding-bottom: calc(var(--f7-list-item-min-height) / 4);
    padding-left: calc(var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-left));
    padding-right: calc(var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-right));
}

.list.basic-list ul ul {
    padding-left: 1em;
}

.list.basic-list li:not(:last-child):after {
    content: '';
    position: absolute;
    background-color: var(--f7-list-item-border-color);
    display: block;
    z-index: 15;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    transform-origin: 50% 100%;
    transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
}

.fullwidth-filler-image {
    max-height: 40vh;
    max-width: 90%;
    height: 50rem;
}

dl {
    margin-left: 1rem;
    margin-right: 1rem;
}

dt {
    font-weight: 700;
}

dd {
    margin-left: 1rem;
    margin-bottom: .5rem;
}