#tsuMap-window {
    width: 100%;
    height: 100vh;
    position: relative;
    font-family: 'PT Sans';
    --border: 1px solid black;
    --outline-border: 2px solid black;
    --width: 230px;
    --base-background: rgba(244, 244, 244, 1);
    --active-background: rgba(212, 212, 212, 1);
    --hover-background: rgba(229, 229, 229, 1);
    --dark-background: rgba(52, 57, 69, 1);
    --aec-red: rgba(190, 15, 54, 1);
    --tab-button-height: 40px;
    --top-bar-offset: 70px;
    --tab-gradient: radial-gradient(rgba(212, 212, 212, 0.6) 35%, rgba(0, 0, 0, 0) 70%);
    --card-button-gradient: linear-gradient(to right, rgba(244, 244, 244, 0) 20%, rgba(20, 20, 20, 0.2));
}

#legend {
    position: absolute;
    padding-left: 10px;
    width: 160px;
    height: 215px;
    bottom: 0px;
    left: calc(50% - 80px);
    z-index: 100;
    background: white;
    border: var(--outline-border);
}

#legend-button {
    position: absolute;
    bottom: 1px;
    left: calc(50% - 80px);
    padding-left: 10px;
    padding-right: 10px;
    z-index: 110;
    color: white;
    background: var(--dark-background);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: var(--outline-border);
}

.leaflet-popup-content a {
    color: #be0f36 !important;
}

.legend-button-active {
    bottom: 215px !important;
}

.leaflet-bar {
    border: var(--outline-border) !important;
}

.leaflet-bar a {
    background-color: var(--dark-background) !important;
    color: white !important;

}

.leaflet-control-attribution a {
    color: #be0f36 !important;
}

#top-bar {
    position: absolute;
    height: var(--top-bar-offset);
    left: 0;
    top: 0;
    z-index: 2;
}

#top-bar-logo {
    position: absolute;
    top: 10px;
    left: 0px;
    width: 120px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 40%, rgba(0, 0, 0, 0));
}

#top-bar-DGGSLogo {
    position: absolute;
    top: 95px;
    left: 10px;
    width: 100px;
    height: 100px;
}

#top-bar-DHSLogo {
    position: absolute;
    top: 200px;
    left: 10px;
    height: 100px;
    width: 100px;
    display: none;

}

#top-bar-share {
    float: right;
    width: 30px;
    padding-right: 10px;
    padding-top: 10px;
}

#map {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}


#tsuMap-menu {
    position: absolute;
    top: 56px;
    right: 10px;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    height: calc(100% - 72px);
    z-index: 10;
    pointer-events: none;
    width: var(--width);
}

#tsuMap-loader {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 25%;
    left: calc(50% - 50px);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #be0f36;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#tsuMap-tab-menu {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

#button-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 3px;
    border-top-left-radius: 0;
    border: var(--outline-border);
    background: var(--dark-background);
    width: calc(var(--width) - 4px);
    height: 45px;
    z-index: 4;
}

#button-bar-shakemap {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 3px;
    border-top-left-radius: 0;
    border: var(--outline-border);
    background: var(--dark-background);
    width: calc(var(--width) - 4px);
    height: 45px;
    z-index: 4;
}

#side-bar {
    position: absolute;
    top: 10px;
    right: calc(8px + var(--width));
    border: var(--outline-border);
    background: var(--dark-background);
    width: 75px;
    height: 35px;
    z-index: 2;

}

#side-bar-toggle-container {}

#side-bar-toggle {
    position: absolute;
    right: calc(8px + var(--width));
    top: 10px;
    height: 35px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    width: 25px;
    border: var(--outline-border);
    border-right: 1px solid black;
    background: var(--dark-background);
    z-index: 3;
}

.side-bar-toggle-active {
    right: calc(85px + var(--width)) !important;
}

#print-button {
    float: left;
    width: 30px;
    height: 25px;
    margin-top: 5px;
    margin-left: 5px;
}

#explainer-page {
    float: left;
    width: 27px;
    height: 27px;
    margin-top: 4px;
    margin-left: 8px;
}

#tsuMap-tab-menu-list {
    -webkit-flex: 1;
    flex: 1;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    overflow-y: scroll;
    overflow-x: hidden;
}

#tab-menu-sliders {
    height: 290px;
    padding-top: 10px;
    padding-left: 10px;
}

#tsuMap-tab-menu-mapselect {
    height: 450px;
}

#tsuMap-tab-menu-analysis {
    height: 260px;
}

#d3-window {
    --dwidth: 55%;
    min-width: 300px;
    left: calc(50% - var(--dwidth) / 2);
    top: 10px;
    z-index: 200;
    background: white;
    position: absolute;
    text-align: right;
    border: 2px solid black;
    /*color: white;*/
    padding: 3px;
    cursor: grab;
    width: var(--dwidth);
}

#d3-window-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: black;
    color: white;
    padding: 5px;
    width: 25px;
    height: 25px;
    font-size: 1.7em;
    padding-bottom: 8px;
    padding-top: 0px;
    text-align: center;
    cursor: pointer;
}

#tsuMap-legend {
    display: flex;
    height: 110px;
}

#tsunami-card-container {
    height: 100%;
    width: 100%;
}


#tsuMap-tab-menu-list-selector {
    text-align: center;
    float: left;
}

#tsuMap-tab-menu-mapselect-selector {
    text-align: center;
    float: left;
}

#tsuMap-tab-menu-transparency-selector {
    text-align: center;
    float: left;
}

#tsuMap-tab-menu-legend-selector {
    text-align: center;
    float: left;
}

#tsuMap-tab-menu-analysis-selector {
    text-align: center;
    float: left;
}

#analysis-draw-button {
    position: absolute;
    cursor: pointer;
    margin-top: 10px;
    width: 120px;
    height: 2em;
    left: calc(50% - 62px);
    background: var(--base-background);
    border: 2px solid black;
}

#analysis-draw-button:hover {
    background: var(--active-background);
}

#analysis-plot-botton {
    margin-top: calc(20px + 2em);
}

#cumulative-plot-button {
    margin-top: calc(20px + 4em);
}

#magtime-plot-button {
    margin-top: calc(20px + 6em);
}

.plot-button {
    position: absolute;
    cursor: pointer;
    margin-top: calc(20px + 2em);
    width: 120px;
    height: 2em;
    left: calc(50% - 62px);
    background: var(--base-background);
    border: 2px solid black;
}

.plot-button:hover {
    background: var(--active-background);
}

.text-center {
    margin-top: 0.3em;
    text-align: center;
}

#legend-container {
    display: flex;
    font-size: 0.9em;
    flex-direction: column;
}

#legend-top {
    display: flex;
    height: 60px;
    padding-top: 10px;
    padding-left: 20px;
    flex-direction: column;
}

#legend-bottom {
    float: right;
    display: flex;
    height: 40px;
    padding-top: 10px;
    padding-left: 20px;
    flex-direction: column;
}

#depth-s {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#depth-s-box {
    background-color: #FFFF00;
}

#depth-m {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#depth-m-box {
    background-color: #FFAA00;
}

#depth-l {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#depth-l-box {
    background-color: #E60000;
}

#hazard {
    flex: 1 1 auto;
    display: flex;
}

#hazard-line {
    border-top: 3px solid #FF0000;
}

#hazard-p {
    flex: 1 1 auto;
    display: flex;
}

#hazard-p-line {
    border-top: 3px dashed #FF0000;
}

#inun {
    flex: 1 1 auto;
    display: flex;
}

#inun-line {
    border-top: 3px solid #FF0000;
}

#shoreline {
    flex: 1 1 auto;
    display: flex;
}

#shoreline-line {
    border-top: 3px solid #0070FF;
}

#depth-block {
    display: flex;
    width: 120px;
    height: 50px;
    margin-top: 10px;
    margin-left: 13px;
    flex-direction: row;
}

#disclaimer-tooltip {
    width: 17px;
    height: 15px;
}

.slider-tool {
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 30px;
    margin-bottom: 15px;
}

.d3-body {
    padding-top: 10px;
}

.d3-x-axis {
    color: black;
}

.d3-y-axis {
    color: black;
}

.d3-title {
    width: calc(100% - 10px);
    font-size: 1.2em;
    float: left;
    color: white;
    background-color: var(--dark-background);
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    padding-left: 10px;
}

.noUi-connect {
    background: var(--dark-background) !important;
}

.noUi-handle {
    border: 1px solid black !important;
}

.noUi-handle::after {
    background: black !important;
}

.noUi-handle::before {
    background: black !important;
}

.noUi-tooltip {
    font-size: 0.8em !important;
}

.temp-box {
    width: 5px;
    height: 5px;
    position: absolute;
    background: steelblue;
}

.tooltip {
    position: relative;
    left: 5px;
    /*float: left;*/
    top: 2px;
    width: 17px;
    height: 17px;

}

.grid line {
    stroke: var(--active-background);
    stroke-opacity: 0.7;
}

.cumulative-line {
    stroke: var(--aec-red);
    stroke-width: 2px;
    fill: transparent;
}

.d3-tooltip {
    position: absolute;
    width: 200px;
    height: 100px;
    background: white;
    color: black;
}

.legend-depth-title {
    display: flex;
    padding-bottom: 3px;

}

.legend-color-line {
    order: 1;
    width: 30px;
    margin-top: 10px;
    margin-left: 15px;
}

.legend-color-box {
    width: 30px;
    height: 20px;
    margin-left: 3px;
    border: var(--border);
    float: left;
    order: 1;
}

.tab-menu {
    pointer-events: auto;
    margin-top: -2px;
    background: var(--base-background);
    border: var(--outline-border);
}

.tab-selector {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 45px;
    height: calc(100% - 12px);
}

.button-defaults {
    z-index: 3;
    cursor: pointer;
}

.card-menu-body {
    position: absolute;
    top: 15px;
    padding-left: 10px;
    font-size: 0.8em;
}

.checkbox-container {
    /* height: 23px;*/
}

.card-button-defaults {
    border-right: var(--border);
    border-bottom: var(--border);
    background: var(--base-background);
    height: 60px;
    z-index: 3;
    width: 100%;
}

.card-subMenu-defaults {
    position: relative;
    height: 140px;
    width: 100%;
    z-index: 2;
    padding-top: 10px;
    background-image: linear-gradient(to top, rgba(229, 229, 229, 1) 90%, rgba(20, 20, 20, 0.4));
    border-bottom: var(--border);
    border-right: var(--border);
}

.tools-body {
    padding-top: 8px;
    padding-left: 15px;
    padding-right: 15px;
}

#basemap-imagery {
    margin-left: 15px;
}

#basemap-shadedrelief {
    margin-left: 10px;
}

#basemap-darkGray {
    margin-left: 10px;
}

#basemap-terrain {
    margin-left: 10px;
}

.l-label {
    position: absolute;
    bottom: 15px;
    width: 40px;
    text-align: center;
}

.plot-circle {
    stroke: black;
    stroke-width: 1px;
    fill: lightgray;
}

.r-label {
    position: absolute;
    top: 15px;
    width: 40px;
    text-align: center;
}

.button-body {
    font-family: "Courier New", Courier, monospace;
    padding-left: 4px;
    padding-top: 2px;
    width: 15px;
    font-size: 1.8em;
    color: white;
}

.map-select-button {
    border-radius: 3px;
    width: 40px;
    height: 40px;

    margin-top: 7px;
    display: inline-block;
    border: var(--border);
    cursor: pointer;
}

.tools-header {
    padding-left: 7px;
}

.list-body {
    padding-top: 10px;
    padding-right: 10px;
    padding-left: 10px;
}

.mapselect-body {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
}

.analysis-body {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 2px;
}

.mapselect-thumbnail:hover {
    filter: brightness(70%);
}

.transparency-body {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 7px;
}

.legend-body {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 13px;
}

.legend-text {
    margin-left: 5px;
    order: 2;
    font-size: 0.8em
}

.body-defaults {
    position: relative;
    top: 0px;
}

.ui-slider {
    border: 1px black solid !important;
    background: var(--hover-background) !important;
}

.ui-slider-range {
    background: var(--dark-background) !important;
}


.ui-slider-handle {
    border: 1px black solid !important;
    outline: none !important;
    cursor: grab;
}

.ui-widget {
    font-size: 0.8em !important;
    border: 1px solid black !important;
}

.ui-tooltip {
    max-width: 500px !important;
}

.toggle-button-active {
    background: rgba(212, 212, 212, 0.4);
    color: var(--base-background) !important;
}

.card-button-active {
    background: var(--active-background);
}

.card-button-body {
    font-size: 1.15em;
}

.mutually-exclusive-checkbox {
    margin-left: 14px;
    margin-right: 7px;
}

.checkbox-span {
    position: relative;
    top: 3px;
    font-size: 0.95em;
}

.double {
    --zoom: 1.1;
    --scale: 1.5;
    zoom: var(--zoom);
    transform: scale(var(--scale));
    -ms-transform: scale(var(--scale));
    -webkit-transform: scale(var(--scale));
    -o-transform: scale(var(--scale));
    -moz-transform: scale(var(--scale));
    transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.loading-frame {
    position: relative;
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 100%;
    z-index: 100;
}

.loading-circle {
    --circle-diameter: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #be0f36;
    border-radius: 50%;
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    animation: spin 1s linear infinite;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    /*background: black;*/
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

.left-mag {
    float: left;
    width: 25%;
    padding-top: 18px;
    padding-left: 13px;
}

.left-mag-bold {
    float: left;
    color: var(--aec-red);
    font-weight: bold;
    width: 25%;
    padding-top: 18px;
    padding-left: 13px;
}

.right-mag {
    float: right;
    width: 65%;
    font-size: 0.7em;
    padding-top: 13px;
}

.right-mag-bold {
    color: var(--aec-red);
    font-weight: bold;
    float: right;
    width: 65%;
    font-size: 0.7em;
    padding-top: 13px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (hover: hover) {
    .tab-selector:hover {
        /*background-image: var(--tab-gradient);*/
    }

    .card-button-defaults:hover {
        background-image: var(--card-button-gradient);
    }

    .map-select-button:hover {
        background: var(--hover-background);
    }

    .card-button-active:hover {
        background-image: var(--card-button-gradient) !important;
    }

    #d3-window-close:hover {
        background-color: var(--active-background);
        /*border: 1px solid white;*/
        color: black;
    }
}

@media print {
    body {
        -webkit-print-color-adjust: exact;
    }
}

button {
    outline: none;
}

a {
    color: #be0f36;
}

.leaflet-container a {
    /*color: #be0f36 !important;*/
}

body {
    margin: 0px;
    height: 100%;
}

img {
    width: 100%;
    height: auto;
}