:root{
    --primary: #33669a;
    --secondary: #15487c;
    --subscribeBackgroundBlue: #3574a3;
    --darkestBlue: #2b3990;
    --textGray: #515151;
    --lightGray: #eee;
    --lightestBlue: #c1d4ea;

}

body, html{
    padding: 0;
    margin: 0 ;
    font-family: 'Noto serif', "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 20px;
}

path.leaflet-interactive:focus {
    outline: none;
}

.col{
    display: inline-block;
    box-sizing: border-box;
    padding: 5px 20px; 
    position: relative;
}
.col-0 {
    width: 0;
}
.col-4 {
    width: 33% !important;
}

.col-6 {
    width: 49% !important;
}

.col-8 {
    width: 66% !important;
}

.col-12 {
    width: 100% !important;
}

.hidden {
    display: none !important;
}

.bold {
    font-weight: 700 !important;
}
.ital {
    font-style: italic !important;
}

p {
    font-size: 0.7rem;
}
p > .subscript{
    font-size: 0.5rem;
}


.upper-box{
    padding: 1em 2.375em; 
    background-color: var(--lightGray);

}

.upper-box > h2 {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
}
.upper-box > h2 > .subscript {
    font-size: 0.7rem;
}

.search-by-option{
    /* red */
    /* background: #BD0026; */
    /* blue */
    background-color: #79aae2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
} 

.search-input{
    display: none;
}
.search-input.address{
    position: relative;
}

#search-input-address{
    display: inline-block;
    position: relative;
    width: calc(100% - 30px);
}

.search-by-option.selected{
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.search-by-option:hover{
    background-color: #6294cc;
    border: 1px solid var(--primary);
}

.search-by-option:active{
    background: var(--subscribeBackgroundBlue) !important;
}

#big-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 20px;
}

#county-select, #search-address {
    min-height: 20px;
    box-shadow: none;
    border-color: #555;
    border-radius: 0;
    padding: 3px 6px;
    border: 1px solid #555;
    line-height: 1.43;
    color:#555;
}

#county-select {
    border: 1px solid #555;
}

#county-select:focus-visible {
    border: 2px solid #555;
}

#search-address{
    /* max-width: calc(100% - 160px); */
    width: 100%;
    padding-right: 25px;
}

button#search-address-btn {
    top: 1px;
    position: absolute;
    right: -32px;
    background: none;
    border: none;
    height: 25px;
}

#map{
    height: 600px;
    position: relative;
}
#map.fw {
    position: fixed;
    top: 0;
    left: 0;
    bottom:0;
    right:0;
    height: unset;
    max-height: unset;
}

#legend {
    position: absolute;
    right: 10px;
    bottom: 30px;
    width: 100px;
    height: 180px;
    background-color: #fff;
    z-index: 1000;
    border-radius: 3px;
    padding: 5px;
}

.fw #legend {
    left: 10px;
    right: unset;
}

.legend-footer{
    margin-top:10px;
}

.map-btn{
    position:absolute;
    left: 10px;
    z-index:1000;
    color: black;
    font-size:0.7rem;
    border-radius:0.25rem;
    border: 2px solid rgba(0,0,0,0.2);
    background-color: #fff;;
    height: 1.5rem;
    width: 1.5rem;
    text-align: center;
    background-clip: padding-box;
}

#fullscreen-btn {
    top:80px
}

#clear-marker-btn{
    top:110px;
    display: none;
}

.fa-map-marker:after {
    position: absolute;
    content: "\\";
    font-weight: 700;
    font-size: 2em;
    left: 11px;
    top: 0px;
    transform: rotate(135deg);
  }

#zoom-btn i {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.leaflet-title {
    font-size: 0.5rem;
}
.leaflet-title .subscript{
    font-size: 0.4rem
}

.color-ref {
    font-size: 0.5rem;
    margin-left: 1rem;
    margin-top: 0.8rem;
}
.color-ref-row {
    display: flex;
}
.color-swatch {
    height: 10px;
    width: 20px;
    opacity: 0.8;
    display: inline-block;
    border-bottom: 1px solid;
}
.numbers {
    height: 10px;
    width: 5px;
    display: inline-block;
    border-bottom: 1px solid black;
}
/* .tall > .color-swatch, .tall > .numbers{
    height: 15px;
    display: flex;
} */
.extra-tall > .color-swatch, .extra-tall > .numbers{
    height: 20px;
    display: flex;
}

.numbers span {
    margin-left:10px;
}
/* .tall > .numbers > span {
    padding-top:5px;
} */
.extra-tall > .numbers > span {
    padding-top:10px;
}


.leaflet-control-layers label {
    font-size: 0.6rem;
}
.leaflet-container{
    font-size: 0.5rem;
}

#table-side{
    overflow: hidden;
    position: relative;
    width: 0;
    /* padding:15px; */
    box-sizing: border-box;

    max-height: 598px;
    overflow-y: auto;
    box-shadow: -4px 0 3px 0px #666;
    margin-top: 1px;
}
#table-side.floating {
    background: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius:5px;
    background-clip: padding-box;
}

#header-county-value {
    font-size: 0.9rem;
    margin-top: 0;
    max-width: calc(100% - 30px);
}

h4#close-table {
    position: absolute;
    right: 20px;
    top: 10px;
    font-family: monospace;
    height: 16px;
    width: 16px;
    padding-left: 4.2px;
    box-sizing: border-box;
    cursor: pointer;
    color: var(--secondary);
    font-size: 0.8rem;
    margin: 0;
}

table{
    border-collapse: collapse;
    margin-bottom:-1px;
    width: 90%;
}

th {
    letter-spacing: 1px
}

th, td, table {
    border: 1px solid black;
    padding: 5px;
    font-size: 0.7rem;
    text-align: left;
}

table td, table th {
    font-family: 'Noto serif', "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
}

thead th {
    /* red */
    /* background: #BD0026; */
    /* blue */
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;

}

th.header-row {
    width: 65%
}
td.header-row {
    width: 35%
}
th .subscript {
    font-size: 0.5rem;
}

.inc-base-string {
    font-size: 0.65rem;
}

.fa-solid.fa-info {
    font-size: 0.5rem;
    border: 1px solid;
    width: 0.4rem;
    height: 0.6rem;
    border-radius: 0.3rem;
    padding-left: 0.2rem;
    position: relative;
}

.fa-solid.fa-info .tooltiptext {
    visibility: hidden;
    width: 220px;
    color: black;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 10;
    border: 1px solid white;
    opacity: 0;
    transition: opacity 1s;
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0px 0 3px 0px #666;
    left: 0;
    bottom: 1rem;
    transform: translateX(-50%);
    font-family: 'Noto serif', "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: 500;
}
.tooltiptext a {
    color: white;
}

.fa-solid.fa-info:hover .tooltiptext, .tooltiptext:hover {
    visibility: visible;
    opacity: 1;
}

.fa-solid.fa-info::before {
    position: absolute;
    width: 20px;
    height: 22px;
    background: transparent;
}
.tooltiptext::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 75px;
    border-radius: 50%;
    background: transparent;
}

.footnote {
    padding-top:10px;
    font-size: 0.7rem;
}
.footnote .subscript{
    font-size: 0.5rem;
}
.footnote-top {
    display: none;
}

#map-side, #table-side {
    transition: 0.7s width ease-out;
}

.leaflet-tooltip-left, .leaflet-tooltip-right, .leaflet-tooltip-own {
    opacity: 1;
    padding: 7px 15px;
    font-size: 0.6rem;
}

.leaflet-tooltip-left .subscript, .leaflet-tooltip-right .subscript, .leaflet-tooltip-own .subscript {    
    font-size: 0.4rem;
}

.leaflet-control-layers-list.leaflet-control-layers-scrollbar {
    overflow: hidden;
}


@media screen and (max-width: 992px) {
    .col-sm-12 {
        width: 100% !important;
    }

    #map {
        max-height: 75vh;
    }
    #table-side {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin: 0px 10px 40px;
        box-shadow: none;
        max-height: none;
    }
    table{
        margin: 0 5px;
        width: unset;
    }
    .footnote-bottom {
        display: none;
    }
    #footnote-top {
        display: unset !important;
    }

    h4#close-table {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    #header-value {
        margin-top: 5px;
    }
    #table-side {
        flex-wrap: wrap;
    }
    #table-side {
        flex-direction: column;
        align-items: center;
    }
    table {
        min-width: 80%;
        margin: 10px 0;
    }
}
