html, body, #root, #main {
    height: 100%;
}

#main {
    min-width: 20rem;
    margin: auto;
    overflow: hidden;
}

#liveMap {
    width: auto;
    height: 100%;
    position: relative;
}

.belowMapContent {
    position: fixed;
    top: 100%;
    transform: translateY(-6.2rem);
    width: 100vw;
    min-height: 6.3rem;
    text-align: center;
    z-index: 3;
    background-color: var(--chakra-colors-chakra-body-bg);
    border-top: 2px solid rgb(212, 212, 212);
    border-radius: 0 5px 0 0;
    justify-content: center;
    transition: transform 0.5s;
}

#popoutContainer {
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.belowMapContentExpanded {
    position: fixed;
    top: 100%;
    transform: translateY(-100%);
    width: 100vw;
    text-align: center;
    z-index: 3;
    background-color: var(--chakra-colors-chakra-body-bg);
    border-top: 2px solid rgb(212, 212, 212);
    border-radius: 0 5px 0 0;
    justify-content: center;
    transition: transform 0.5s;
}

#expandTag {
    position: absolute;
    top: -1.3rem;
    background-color: var(--chakra-colors-chakra-body-bg);
    width: 3rem;
    height: 1.35rem;
    border-radius: 0 5px 0 0;
    border-top: 2px solid rgb(212, 212, 212);
    border-right: 2px solid rgb(212, 212, 212);
}

#expandTag svg {
    position: relative;
    top: -0.2rem;
}

#siteInfoContainer {
    background-color: var(--chakra-colors-chakra-subtle-bg);
    padding: 0.3rem;
    margin-bottom: 0.5rem;
}

.lowestPricesContainer {
    padding: 0.2rem 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lowestPriceBox {
    display: grid;
    /*background: linear-gradient(0deg, #4f39a5, #2c1430);*/
    background-color: var(--chakra-colors-chakra-subtle-bg);
    min-width: 20rem;
    max-width: 30rem;
    flex-grow: 1;
    grid-template-columns: auto auto auto;
    border: 0.1rem solid grey;
    border-radius: 0.5rem;
    margin: 0 0.5rem 0.7rem 0.5rem;
    padding: 0.2rem 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.lowestPriceBox .siteLogo {
    justify-self: left;
    display: grid;
    min-width: 30px;
}

.lowestPriceBox .siteLogo img {
    height: 3rem;
    margin: auto auto auto 0;
}

.lowestPriceBox .chakra-heading {
    margin: auto auto auto 0;
}

.lowestPriceBox .priceStat {
    min-width: 8rem;
}

.lowestPriceBox .siteScore {
    margin: auto 0 auto auto;
    font-weight: bold;
    display: grid;
    justify-self: right;
}

.lowestPriceBox .siteScore text {
    fill: var(--chakra-colors-chakra-body-text);
}

.lowestPriceBox h2 {
    font-size: 1.5rem;
}

.lowestPriceBox h3 {
    font-size: 1.1rem;
    text-align: left;
}

.lowestPriceBox span {
    width: auto;
    margin: auto 0 auto auto;
    overflow-wrap: normal;
}

.latLongValue {
    font-weight: bold;
}

.e10 {
    border-color: green;
    color: green;

}

.ulp91 {
    border-color: yellow;
    color: yellow;
}

.ulp95 {
    border-color: lightblue;
    color: lightblue;
}

.ulp98 {
    border-color: red;
    color: red;
}

.diesel, .pdiesel {
    border-color: black;
    color: black;
}

.e85 {
    border-color: orange;
    color: orange;
}

.e10, .ulp91, .ulp95, .ulp98, .e85 {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#siteInfoLeft {
    margin-right: 0.2rem;
}

#siteInfoLogo {
    height: 50px;
}

#mapMenu {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    min-width: 29px;
    min-height: 29px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80' width='18' height='18'%3E%3Crect width='100' height='13' rx='10'%3E%3C/rect%3E%3Crect y='30' width='100' height='13' rx='10'%3E%3C/rect%3E%3Crect y='60' width='100' height='13' rx='10'%3E%3C/rect%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 50%;
}

#filterButton {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    margin: 10px 0 0 0;
    top: 0;
    width: 120px;
    background-color: white;
    color: black;
    box-shadow: 0 0 0 2px rgb(0 0 0 / 10%);
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

#filterButton button {
    height: 29px;
}

#mainMapMenu, #locationsMenu, #routesMenu, #fuelMenu {
    display: grid;
    justify-items: left;
    position: absolute;
    z-index: 2;
    margin-left: 10px;
    color: black;
    box-shadow: 0 0 0 2px rgb(0 0 0 / 10%);
    border-radius: 4px;
    background: #fff;
}

#mainMapMenu {
    left: 0;
    top: 45px;
}

#locationsMenu, #routesMenu, #fuelMenu {
    left: 130px;
}

#locationsMenu {
    top: 45px;
}

#routesMenu {
    top: 85px;
}

#fuelMenu {
    top: 125px;
}

#locationsMenu .locationButton {
    margin-right: auto;
}

#locationsMenu .locationDiv {
    width: 100%;
}

.locationDiv .locationDelete {
    margin: auto 0;
}

.setClickable {
    cursor: pointer;
}

.mapboxgl-popup {
    max-width: 12rem !important;
}

.popupContainer {
    font-weight: bold;
    color: #1a202c;
    display: flex;
    padding-top: 1rem;
}

.mapboxgl-popup-content h2 {
    font-size: 1.3rem;
}

.mapboxgl-popup-content h3 {
    font-size: 1.3rem;
}

.mapboxgl-popup-content .popupLeft {
    margin-right: 0.5rem;
    display: grid;
}

.mapboxgl-popup-content .popupRight {
    display: grid;
    text-align: center;
}

.mapboxgl-popup-content .popupName {
    margin-bottom: auto;
}

.mapboxgl-popup-content .popupFuel {
    margin: auto;
}

.mapboxgl-popup-content .popupPrice {
    margin-top: auto;
}

.mapboxgl-popup-content hr {
    color: #1a202c;
    border-color: #e2e8f0;
}

.mapboxgl-popup-content img {
    height: 3rem;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.mapboxgl-popup-close-button {
    font-size: 1.7rem;
}

.popupButton {
    font-weight: bold;
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.popupDirections {
    margin-top: auto;
}

#navigationPickerHeading {
    margin-bottom: 0.5rem;
}

.appIconContainer {
    width: 80px;
    text-align: center;
    font-size: small;
}

.appIcon {
    width: 50px;
    border-radius: 9px;
}

.appIcon:first-of-type {
    margin-right: 1rem;
}

.appIcon:last-of-type {
    margin-left: 1rem;
}

#saveDefault {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: right;
}

#saveDefault span {
    margin-right: 0.5rem;
}

@media (max-width: 500px) {
    .lowestPriceBox h2 {
        font-size: 1.2rem;
    }

    .lowestPriceBox .priceStat {
        min-width: 7rem;
    }
}

@media (min-width: 1740px ) {
    #belowMapContent {
        transform: translateY(-100%);
    }
}