body {
    /* display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center; */
    margin: 0;
    /* height: 96vh;
          padding-top: 2vh;
          padding-bottom: 2vh; */
    background-color: #F8F4F1;
    font-family: 'FSAlbert-Light', 'Noto Sans', sans-serif;
    color: #060A3D;
    font-weight: 300;
}

svg {
    /* border: 1px solid #333; */
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    /* box-shadow: 0 0 1px 1px #333; */
}

.zoneX {
    fill: #999 !important;
}

.cpopo {
    border: 1px solid #444;
    border-radius: 0;
}

.btn-link1 {
    color: #FF6E00;
}

.btn-link2 {
    color: #044ED7;
}

/* p {
    font: 1.125em/2 trebuchet ms, tahoma, sans-serif;
} */

.bg_blue {
    background-color: #044ED7;
}

.bg_darkblue {
    background-color: #060A3D;
}

.bg_white {
    background-color: #F8F4F1;
}

.bg_orange {
    background-color: #FF6E00;
}

.bd-style2-right {
    /* margin: 0 auto 0 auto; */
    position: relative;
    width: 6rem;
    height: 10rem;
    z-index: 4;
    padding: 4rem 0 0 1.5rem;
    background-color: #F8F4F1;
    overflow: visible;
}

.bd-style2-right>* {
    position: relative;
    z-index: 4;
}

.bd-style2-right::before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 10rem;
    height: 10rem;
    z-index: 3;
    transform: translateX(50%);
    background-color: #F8F4F1;
}

.bd-style3-right {
    /* margin: 0 auto 0 auto; */
    position: relative;
    width: 35%;
    height: 10rem;
    z-index: 2;
    padding: 2rem 0 0 1.5rem;
    background-color: #044ED7;
    overflow: visible;
}

.bd-style3-right::before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 10rem;
    height: 10rem;
    z-index: 1;
    transform: translateX(50%);
    background-color: #044ED7;
}

.bd-style4-right {
    /* margin: 0 auto 0 auto; */
    position: relative;
    width: 85%;
    height: 4rem;
    z-index: 2;
    padding: 1.35rem 0 0 1.5rem;
    background-color: #F8F4F1;
    overflow: visible;
    border-top: 1px solid #FF6E00;
}

.bd-style4-right::before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    z-index: 1;
    transform: translateX(50%);
    background-color: #F8F4F1;
}

.bd-style-right {
    margin: 60% auto 0 auto;
    position: relative;
    width: 100%;
    z-index: 2;
    padding: 0 10%;
    background-color: #F8F4F1;
    overflow: visible;
}

.bd-style-right>* {
    position: relative;
    z-index: 2;
    top: -4rem;
}

.bd-style-right::before {
    position: absolute;
    background-color: #fff;
    content: '';
    top: 0;
    border-radius: 50%;
    padding-top: 100%;
    width: 100%;
    z-index: 1;
    transform: translateY(-50%);
    background-color: #F8F4F1;
}

.bd-style-right::after {
    position: absolute;
    content: '';
    bottom: 0;
    padding-top: 25%;
    width: 100%;
    z-index: 1;
    transform: translateY(60%);
    background-color: #F8F4F1;
}

#infoModal .modal-footer {
    border-top: none;
    background-color: #F8F4F1;
    padding: 0;
    height: 4rem;
}

#infoModal .modal-footer button {
    background-color: #FF6E00;
    font-family: 'FSAlbert-Bold', 'Noto Sans', sans-serif;
    border: none;
    margin: .5rem 1rem;
}

#infoModal .modal-body p b {
    font-family: 'FSAlbert-Bold', 'Noto Sans', sans-serif;
}

#infoModal .modal-footer div.wlogo {
    position: relative;
    height: 4rem;
    width: 14rem;
    color: #fff;
    background-color: #044ED7;
    margin: 0;
    z-index: 2;
}

#infoModal .modal-footer div.wlogo::before {
    position: absolute;
    content: '';
    width: 4rem;
    height: 4rem;
    right: 0;
    top: 0;
    background-color: #044ED7;
    border-radius: 50%;
    transform: translateX(50%);
    z-index: 1;
}

#welcomeModal .modal-footer {
    border-top: none;
    background-color: #F8F4F1;
    padding: 0;
    height: auto;
}

#welcomeModal .modal-footer button {
    background-color: #FF6E00;
    font-family: 'FSAlbert-Bold', 'Noto Sans', sans-serif;
    border: none;
    margin: .5rem 1rem;
}

#welcomeModal .modal-body p b {
    font-family: 'FSAlbert-Bold', 'Noto Sans', sans-serif;
}

#welcomeModal .modal-footer div.wlogo {
    position: relative;
    height: 4rem;
    width: 14rem;
    color: #fff;
    background-color: #044ED7;
    margin: 0;
    z-index: 2;
}

#welcomeModal .modal-footer div.wlogo::before {
    position: absolute;
    content: '';
    width: 4rem;
    height: 4rem;
    right: 0;
    top: 0;
    background-color: #044ED7;
    border-radius: 50%;
    transform: translateX(50%);
    z-index: 1;
}


div.toastlogo {
    position: relative;
    height: 2.2rem;
    width: 8rem;
    color: #fff;
    background-color: #044ED7;
    margin: 0;
    z-index: 2;
}

div.toastlogo::before {
    position: absolute;
    content: '';
    width: 2.2rem;
    height: 2.2rem;
    right: 0;
    top: 0;
    background-color: #044ED7;
    border-radius: 50%;
    transform: translateX(50%);
    z-index: 1;
}

div.toastlogo img {
    height: 2.2rem;
    width: auto;
    margin: 0;
}


.wlogo img {
    height: 3rem;
    width: auto;
    margin-top: .5rem;
    margin-left: 1rem;
}

.mlogo img {
    height: 3rem;
    width: auto;
    margin: 1rem;
}

@media screen and (min-width: 992px) {
    .bd-style-right {
        padding: 0 0 0 5%;
        margin: 0 40% 0 0;
        position: relative;
        height: 30rem;
        z-index: 2;
        width: auto;
        background-color: #fff;
    }

    .bd-style-right>* {
        top: 0;
    }

    .bd-style-right::before {
        position: absolute;
        content: '';
        top: 0;
        right: -15rem;
        border-radius: 50%;
        height: 30rem;
        width: 30rem;
        z-index: 1;
        padding-top: 0;
        transform: none;
        background-color: #fff;
    }

    .bd-style-right::after {
        display: none;
    }

    #welcomeModal .modal-footer {
        height: 4rem;
    }
}

#welcomeModal .modal-footer {
    border-top: none;
}

code {
    display: inline-block;
    padding: 0 0.375em 0.125em;
    border-radius: 0;
    background: #ccc;
    font: 900 1.125em/1.25 consolas, monaco, monospace;
}

#infoModal p {
    line-height: 1.25;
}

.text-blue {
    color: #044ED7;
}

.text-orange {
    color: #FF6E00;
}

.text-deep-blue {
    color: #060A3D;
}

[d] {
    fill: #333;
    transition: 0.7s;
    cursor: pointer;
}

[d]:hover {
    fill: #f90;
}

.msg {
    height: 2em;
}

.msg:not(:empty) {
    padding: 0.25em 0.75em;
    border-radius: 0;
    background: #b53;
    color: #fff;
}

#desc-box {
    display: none;
    font-weight: 300;
    line-height: 1.25;
    font-size: 95%;
    padding: 10px;
    background: #fff;
    border: 1px solid #3a676f;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.list-group label {
    font-size: 85%;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .5); */
}

#social-box {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

#lang-box {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
}

#branding-box {
    position: absolute;
    /* top: 1.5rem; */
    bottom: 1.5rem;
    right: 1.5rem;
}

#branding-box img {
    width: max(10vw, 4rem);
    vertical-align: middle;
    margin-left: 1rem;
    opacity: .88;
    max-width: 7rem;
}

#branding-box img:first-child {
    border-right: .1rem solid rgba(0, 0, 0, .125);
    vertical-align: middle;
}

#branding-box2 {
    position: relative;
    top: 0rem;
    right: 1.5rem;
}

#branding-box2 img {
    width: 5rem;
    vertical-align: middle;
    margin-left: 1rem;
    opacity: .88;
}

#branding-box2 img:first-child {
    /* border-right: .1rem solid rgba(0, 0, 0, .125); */
    vertical-align: middle;
}

.legend-box {
    position: absolute;
    top: .5rem;
    left: .5rem;
}

.legend-box .cats {
    position: relative;
    z-index: 2;
}

.legend-box .subcats {
    position: relative;
    left: 0;
    z-index: 1;
    max-height: 2rem;
    overflow: hidden;
    transition: max-height 2s;
}

/* .legend-box .subcats:hover {
    max-height: auto !important;
} */

.hauto {
    max-height: 1000% !important;
}

.legend-box input[type="radio"] {
    min-width: .8rem;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
}

input.index {
    visibility: hidden;
}

.legend-box span {
    font-weight: 300;
}

.legend-box label>span {
    padding-right: 1rem;
    background-color: #044ED7;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
    border-bottom: 1px solid #FF6E00;
}

.legend-box label>span>span {
    padding: .3rem .1rem .35rem;
    background-color: transparent;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
}

.legend-box .subcats label>span {
    padding-right: 1rem;
    /* padding-left: 2rem; */
    background-color: #FF6E00;
    /* border-radius: 3rem; */
    /* border-bottom: 1px solid #FF6E00; */
}

.legend-box .list-group-item {
    border: none;
    background-color: transparent;
    border-radius: 0;
    color: white;
    position: relative;
    cursor: pointer;
    min-width: 18rem;
}

.legend-box .list-group-item input {
    cursor: pointer;
    margin-top: 0;
}

.nav-tabs button.nav-link,
.nav-tabs a.nav-link {
    border-bottom-right-radius: 3rem;
    border-top-right-radius: 3rem;
    margin: .5rem .5rem .5rem 0;
}


/* .legend-box .list-group-item:hover {
    border: none;
    background-color: rgba(23, 94, 161, .9);
    border-radius: 0;
    color: #eee;
} */


/* .legend-box .list-group-item:last-child {
    background-color: rgba(115, 115, 115, 1);
} */


/* .legend-box .list-group-item:last-child:hover {
    background-color: rgba(115, 115, 115, 1);
} */

.legend-box .cats .list-group-item>span {
    position: relative;
}


/* .legend-box .cats .list-group-item>span::after {
    content: '';
    position: absolute;
    width: .22rem;
    left: .1rem;
    top: .2rem;
    bottom: .2rem;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
} */


/* .legend-box .legend-body .cats .list-group-item:last-child>span::after {
    content: '';
    display: none;
} */

.legend-box .legend-body .cats .list-group-item:nth-child(1)>span::after {
    background-color: hsl(207, 100%, 42%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(2)>span::after {
    background-color: hsl(2, 77%, 51%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(3)>span::after {
    background-color: hsl(50, 100%, 50%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(4)>span::after {
    background-color: hsl(150, 97%, 27%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(5)>span::after {
    background-color: hsl(345, 79%, 65%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(6)>span::after {
    background-color: hsl(69, 61%, 54%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(7)>span::after {
    background-color: hsl(42, 100%, 43%);
}

.legend-box .legend-body .cats .list-group-item:nth-child(8)>span::after {
    background-color: hsl(199, 86%, 70%);
}

.darker>span {
    background-color: #060A3D !important;
}

.bolder {
    font-weight: normal;
}

.borderb {
    border-bottom: 0px solid rgba(0, 0, 0, .125);
}

.borderb>span>span {
    white-space: nowrap;
    max-width: 72vw;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .7); */
}

.subcats .borderb>span {
    white-space: nowrap;
    max-width: 72vw;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .7); */
}

.borderb>span>a i.top15 {
    position: relative;
    top: .1rem;
}

.borderb>span>a i {
    font-size: 95%;
}

.borderb>span>span i {
    font-size: 100%;
}

.legend-box .list-group-item:last-child .borderb {
    border-bottom: none;
}

.legend-box .list-group-item:last-child {
    border-bottom-left-radius: 0.0rem;
    border-bottom-right-radius: 0.0rem;
}

.legend-box .list-group-item:first-child {
    border-top-right-radius: 0.0rem;
}

.legend-box .subcats .list-group-item:first-child {
    border-top-left-radius: 0.0rem;
}

.legend-box .nav-tabs {
    border-bottom: none;
}

.legend-box .nav-item {
    text-align: center;
}

.legend-box .nav-link {
    background-color: #060A3D;
    height: 2.4rem;
    width: 3.5rem;
    font-size: 100%;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .5); */
    color: #eee;
    border: none;
    border-right: 0px solid rgba(115, 115, 115, 1);
    /* box-shadow: 0px -1px 1px #000; */
    margin-bottom: 0px;
}

.legend-box .nav-link:hover {
    color: #FF6E00;
}

.legend-box .form-switch .form-check-input {
    margin-left: -2.25em;
    margin-top: .5rem;
    visibility: hidden;
}

.nav-tabs .nav-link {
    border-radius: 0.0rem;
}

.nav-tabs .nav-link.active {
    background-color: #060A3D;
    color: #FF6E00;
    border: none;
    position: relative;
    /* top: -1px; */
    font-size: 100%;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .5); */
    box-shadow: none;
}

.legend-body,
.calendar-body {
    display: flex;
}

#legend-label {
    font-size: 88%;
    font-weight: bold;
    color: white;
    line-height: 1.8;
    cursor: pointer;
    background-color: #FF6E00;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
    margin: 0;
    padding: .35rem 1rem;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .5); */
}

#search {
    position: relative;
    z-index: 11;
}

.matches {
    padding-left: .5rem;
}

.match {
    font-weight: 300;
    font-size: 88%;
    color: #FF6E00;
    line-height: 1.8;
    cursor: pointer;
    /* text-shadow: 1px 1px rgba(0, 0, 0, .5); */
    list-style-type: none;
    padding: 0 .5rem;
}

.match:hover {
    background-color: #060A3D;
}

.match:first-child {
    margin-top: .5rem;
}

.grey_bg {
    font-size: 88%;
    font-weight: bold;
    color: white;
    line-height: 1.8;
    cursor: pointer;
    background-color: #DAD7D6;
}

.heatmap_wrap {
    position: absolute;
    bottom: 7.5rem;
    right: 1rem;
    transition: top .9s ease 0s;
}

.heatmap_wrap>label {
    padding-left: .5rem;
    line-height: 1;
    font-size: 70%;
    color: #333;
    overflow: visible;
    padding-top: .5rem;
    text-align: center;
}

.flex-container {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    width: 1rem;
    border: none;
    justify-content: space-around;
    flex-direction: column-reverse;
}

.scale.flex-container {
    border: none;
}

.colors.flex-container {
    border: 1px solid rgb(66, 66, 66);
    border-radius: .11rem;
    margin-top: .25rem;
    border-top-left-radius: 5rem;
    border-bottom-left-radius: 5rem;
    border-top-right-radius: 5rem;
    border-bottom-right-radius: 5rem;
    overflow: hidden;
}

.flex-container>div {
    width: 100%;
    text-align: center;
    line-height: 2;
    font-size: 55%;
    color: #333;
    overflow: visible;
    height: .55rem;
}

.scale.flex-container>div {
    height: 1rem;
}

text.map {
    position: relative;
    /* text-shadow: 1px 1px 1px black; */
}

.clear_btn {
    position: absolute;
    top: .4rem;
    right: .5rem;
    color: #333;
    z-index: 9;
}

.clear_btn:hover {
    color: #ccc;
}

#lookup {
    padding-right: 2rem;
    font-weight: 300;
    border-radius: 0.0rem;
}

.marked {
    fill: purple !important;
}

.zone.zoneX.marked {
    fill: rgb(83, 83, 83) !important;
}

.custom-flex {
    display: flex;
}

.custom-flex label {
    cursor: pointer;
}

.overlay::after {
    content: 'Double-click to activate map';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: .30;
    transition: .5s ease;
    background-color: #aaa;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 300%;
    color: #ddd;
    padding: 1rem;
}

.overlay:hover::after {
    opacity: .5;
}

.overlay {
    overflow: hidden;
    position: fixed;
}

.subcats label span {
    position: relative
}

.subcats label span a {
    position: absolute;
    right: 2.5rem;
    top: .2rem;
}

.subcats label span a i.bi {
    font-size: .9rem;
}

/* Responsive mode for phones */

@media screen and (max-width: 50rem) {
    #branding-box {
        position: absolute;
        bottom: 1.5rem;
        top: auto;
    }

    #branding-box img {
        margin-left: .25rem;
    }

    .list-group-item:last-child .custom-flex {
        display: block;
    }

    .list-group-item:last-child label {
        display: block;
        padding-top: .5rem;
    }

    .legend-box .list-group-item {
        min-width: 11.25rem;
    }

    .legend-box .nav-link {
        width: 2.8rem;
    }

    #nav-tab .form-switch {
        margin-left: 0 !important;
    }

    #nav-tab .nav-link {
        padding: .5rem .85rem;
    }
}