:root{
    /* Abos motīvos */

    /* Gaišais motīvs */
    --fonaKrasa: #dae6ff;
    --otraFonaKrasa: #cedeff;
    --poguKrasa: #c1d5ff;
    --otraTekstaKrasa: #404040;
}
@media (prefers-color-scheme: dark){
    :root{
      /* Tumšais motīvs */
        --fonaKrasa: #000d25;
        --otraFonaKrasa: #001233;
        --poguKrasa: #001a4b;
        --otraTekstaKrasa: #a0a0a0;
    }
}

.titleContainer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 24px;
}

.titleContainer * {
    display: block;
    max-width: 500px;
}

#playBadge {
    width: 190px;
}

.logo {
    width: 124px;
    margin-right: 24px;
    border-radius: 24px;
}

#mainContainer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.subContainer {
    border-radius: 12px;
    background-color: var(--otraFonaKrasa);
    flex-grow: 1;
}

button {
    border: none;
    color: var(--tekstaKrasa);
    background-color: var(--poguKrasa);
    border-radius: 8px;
    font-size: 16px;
    padding: 12px;
}
button:hover {
    cursor: pointer;
}

.smallButton {
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
}

.marginTop {
    margin-top: 8px;
}

.noBackground {
    background-color: #00000000;
}

.imageScroll {
    overflow-x: scroll;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

.screenshot {
    border-radius: 16px;
    width: 270px;
}

.circleMarker {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    border-radius: 50%;
    border-style: solid;
    width: 20px; 
    height: 20px; 
    border-width: 2px; 
    border-color: #000000; 
    font-weight: bold;
}

#map {
    z-index: 0;
}

.floatingContainer {
    background-color: var(--fonaKrasa);
    padding: 16px 16px 8px 16px;
    z-index: 1;
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    max-width: 180px;
    /* max-width: 250px;  */
    box-sizing: border-box;
}

.vehicleSpecIcon, .vehicleSpecIconNoInvert {
    height: 14px; 
    width: 14px; 
    margin-bottom: -1px; 
    display: inline-block;
}

.floatingContainer h1 {
    font-size: 20px;
    margin: 0;
}

.floatingContainer p {
    font-size: 14px;
    margin: 8px 0 8px 0;
}

.arrowContainer {
    position: absolute;
    top: -5px;
    padding-bottom: 10px;
    width: 24px; 
    height: 24px; 
}

s {
    color: var(--otraTekstaKrasa);
}

.arrowUp {
    width: 0; 
    height: 0; 
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 14px solid black;
}

#locSelect {
    display: inline-block;
    vertical-align: middle;
    margin-top: 2px;
}

select {
    background-color: var(--poguKrasa);
    padding: 4px;
    margin-left: -2px;
    border-radius: 4px;
    border: none;
    color: var(--tekstaKrasa);
}

#locateButton {
    vertical-align: middle;
    background-color: var(--poguKrasa);
    color: var(--tekstaKrasa);
    display: inline-block;
    padding: 5px;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    border: none;
}

.mapFrame {
    width: 100%; 
    border-radius: 16px; 
    height: 500px;
}

.routeIconSmall {
    border: 1px solid black;
    border-radius: 4px;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 1px;
    padding-bottom: 1px;
    line-height: 22px;
    font-size: 16px;
    background-color: white;
    color: black;
}

.routeIconLarge {
    border: 1px solid black;
    padding: 2px 6px 2px 6px;
    border-radius: 4px;
    font-size: 18px;
    background-color: white;
    color: black;
}

.departureItem {
    line-height: 150%;
}

#tripRouteIcon {
    margin-top: 8px;
}

.infoPanelTitle {
    display: inline-block;
    margin-bottom: 4px;
    margin-top: 0;
}

.infoPanelSubtitle {
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 4px;
}

#infoPanel {
    padding: 12px 24px 12px 24px;
    width: 400px;
    position: fixed;
    overflow-y: scroll;
    top: 0;
    left: 0;
    right: auto;
    box-sizing: border-box;
    padding-top: 12px;
    padding-bottom: 12px;
    z-index: 40;
    background-color: var(--fonaKrasa);
}

.infoPanelFullHeight {
    bottom: 0;
    height: 100%;
}

h2 {
    font-size: 20px;
}

.infoPanelWrapContents {
    bottom: auto;
    height: auto;
}

#infoPanelClose {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px 24px 12px 24px;
    background-color: transparent;
    font-weight: bold;
    margin: 8px;
}

#infoPanelContainer {
    padding-top: 4px;
    margin-top: 16px;
    border-top: 1px solid var(--otraTekstaKrasa);
}

.routeTypeIcon {
    height: 14px;
    width: 14px;
    margin-bottom: -2px;
}

li {
    line-height: 130%;
}

@media screen and (max-width: 800px) {
    .mapFrame {
        display: none;
    }

    #infoPanel {
        width: 100%;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .infoPanelFullHeight {
        height: 40%;
    }

    .infoPanelWrapContents {
        height: auto;
    }
}

@media screen and (max-width: 400px) {
    .floatingContainer {
        width: 100%;
        max-width: none;
    }

    /* .floatingContainer .linkBlock, .floatingContainer .locSelectBlock, .floatingContainer h1{
        display: inline-block;
        margin-right: 12px;
    } */
}

@media (prefers-color-scheme: dark) {
    .routeTypeIcon, .vehicleSpecIcon {
        filter: invert(100%); 
        -webkit-filter: invert(100%); 
    }
}
