
body {
  font-family: Arial,sanserif; /* font-size: 120% */
  /* overflow: auto is needed so that window.scrollTo works */
  overflow: auto;
}

.tab-container {
  color: rgb(75,75,75);
  padding: 8px 5px 8px 0px;
  margin: 0px auto;
  max-width: 967px; margin: 0px auto; 
  min-width: 300px;
}

.tab-container .tab {
  font-weight: bold;
  font-size: 120%;
  border: solid 1px rgb(100,100,100);
  padding: 3px 5px;
  background-color: #ffffff;
}

/* https://medium.com/@mezoistvan/finally-a-css-only-solution-to-hover-on-touchscreens-c498af39c31c */
@media(hover: hover) and (pointer: fine) {
  .tab-container .unselected:hover {
    background-color: #add8e6;
    cursor: pointer;
  }
  .tab-container .selected:hover {
  }
}

.tab-container .selected {
  background-color: #ffffff;
  padding-bottom: 10px;
  border-bottom: none;
}

.page-container {
  max-width: 970px; margin: 0px auto; 
  min-width: 300px;
  padding: 0px; 
  border: solid 1px rgb(100,100,100);
}

.main-area {
  width: 90%; margin: 0px auto;
  color: rgb(75,75,75);
}

/* Mobile Styles */
/* 440+16+20 */
/* 340+16+20 */
@media only screen and (max-width: 376px) {
  .main-area {
    width: 306px;
  }

  .page-container {
    border: none;
    border-top: solid 1px rgb(100,100,100);
    border-bottom: solid 1px rgb(100,100,100);
  }
}

#title-area {
  font-size: 120%;
  font-weight: bold;
}

#log-area p {
  margin-block-start: 2px;
  margin-block-end: 2px;
  font-size: 10pt
}

.data-source-area {
  font-size: 10pt;
}

#button-area {
  font-size: 100%;
}

.link-title {
  font-weight: bold;
}

.link-like {
  text-indent: .5em;
  font-size: 100%;
  font-weight: normal;
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

.y-grid {
  stroke-width: .5px;
  color: #080808;
}

.line {
  stroke-width: 2.0px;
}

.cases {
    stroke: red;
}

.deaths {
    stroke: black;
}

.b-slope {
    width: 5px;
    /*height: 5px;*/
}

.cases-b {
    fill: red;
}

.deaths-b {
    fill: black;
}

.dots {
    fill: none;
    r: 3px;
}

.new-cases {
    stroke: red;
}

.new-deaths {
    stroke: black;
}

.legend-text {
    font-size: 14px; 
    dominant-baseline: middle;
}

.legend-bg {
  fill: white;
  stroke: black;
  stroke-width: 1;
  opacity: .8;
}

.time-mark {
  stroke: gray;
  stroke-dasharray: 3,3;
  stroke-width: 2.0px;
}

.slope-line {
  stroke-width: 2.0px;
  /*
  // stroke-dasharray: 3,3;
  // stroke-dasharray: 5,5;
  */
}

.slope-line-c {
  stroke: #a04040
}

.slope-line-d {
  stroke: #808080
}

.tooltip {   
  position: absolute;           
  padding: 8px;             
  font: 12px sans-serif;  
  font-weight: 500;   
  background: white;   
  border-radius: 8px;           
  pointer-events: none;         
}

.tooltip-date {
  font-weight: bold;
  text-align: center;
  margin-bottom: -1em;
}

.tooltip-data table {
  border-collapse: collapse;
  margin-bottom: .5em;
}

.tooltip-data th {
  font-weight: normal;
  border: 1px solid;
  padding: 2px;
}

.tooltip-data td {
  text-align: right;
  padding: 4px;
  border: 1px solid;
}

.tooltip-data td {
  border-right: 2px solid;
}

.tooltip-data th {
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.link-table {
}

.link-table td {
  text-align: right;
}

.link-table th {
  text-align: right;
  font-size: 110%;
}

.link-table td:nth-child(1), th:nth-child(1) {
  text-align: left;
}

.link-table td:nth-child(3) {
  padding-left: 1em;
}

.sorter {
  cursor: pointer;
}

.sorter:hover span:first-child {
  opacity: 1.0;
}

.both-arrow span:first-child {
  opacity: .33;
}

.up-arrow span:nth-child(2) {
  display:none;
}

.down-arrow span:nth-child(2) {
  display:none;
}

#map-holder {
  display: none;
}

#chart-holder {
  display: none;
}

#about-holder {
  width: 80%; margin: 0px auto;
  display: none;
}

.fine-print {
  font-size: 80%;
}

#rate-map {
  height: 500px;
  width: 100%;
  margin: 10px 0 0 0;
}

.mbpop-visible {
  visibility: visible;
  transition: opacity .8s ease;
  opacity: .85;
}

.mbpop-hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .8s, opacity .8s ease;
}

.mapboxgl-popup {
  user-select:none;
  z-index:5;
  width: 300px;
}

.mbpop {
  width: 100%;
}

@media only screen and (max-width: 476px) {
  .mapboxgl-popup {
    width: 60%;
  }
  .mbpop {
  }
}

.mbpop .mbcity {
  line-height: 1.0;
  height: 2.5em;
  margin-bottom: 0px;
  font-size: 120%
}

.lgradall {
  padding: 1px 5px 1px 10px;
  font-size: 8pt;
  text-align: right;
}

.ltitle {
  font-size: 8pt;
  text-align: center;
}

#rate-map-warning {
  position: absolute;
  /*
  bottom: 25px;
  left: 85px;
  */
  left: 100px;
  bottom: 5px;
  opacity: 0.;
  background: white;
  font-weight: bold;
  font-size: 12pt;
  color: red;
  padding: 5px;
  user-select:none;
  z-index: 6;
}

#rate-map-loading {
  position: absolute;
  /*
  bottom: 25px;
  left: 85px;
  */
  left: 30%;
  bottom: 50%;
  /*
  opacity: .5;
  */
  font-weight: bold;
  font-size: 16pt;
  color: orange;
  /*
  background: white;
  color: red;
  */
  padding: 5px;
  user-select: none;
  pointer-events: none;
  z-index: 7;
}

.loading-visible {
  visibility: visible;
  transition: opacity .8s ease;
  opacity: .5;
}

.loading-hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .8s, opacity .8s ease;
}

@media only screen and (min-width: 500px) and (max-width: 550px) {
  #rate-map-warning {
    bottom: 25px;
    left: 85px;
  }
}

#rate-map-legend {
  z-index: 4;
  position:absolute;
  left:0px;
  bottom:30px;
  display:inline-block;
  color: #c0c0c0;
  user-select:none;
}

#map-item-control {
    clear: left;
    margin-top: 5px;
}

#map-props {
    margin-bottom: 5px;
    border-collapse: collapse;
    font-size: 80%;
    /*border: 1px solid;*/
    user-select:none;
}

#map-props th:nth-child(2), #map-props th:nth-child(3) {
    border: 1px solid;
    /*font-size:80%;*/
}

#map-props td:first-child {
    font-weight: bold;
    /*font-size:80%;*/
    border: 1px solid;
}
#map-props td:nth-child(2), #map-props td:nth-child(3) {
    border: 1px solid;
    text-align: center;
}
#map-props td:nth-child(4) {
    padding-left: 5px;
}

.map-button {
    float: left;
    padding: 5px 10px 0px 10px;
    touch-action: manipulation;
    user-select:none;
}

.range-holder {
    float: left;
    position: relative;
    margin-bottom: 1.5em;
    width: 65%;
    max-width: 450px;
    padding-left: 5px;
    padding-right: 5px;
}

#map-date-control {
    /*max-width: 300px;*/
    width: 100%;
}

#map-range {
    width: 100%;
}

#map-range-info {
    position: absolute;
    width: max-content;
    left: 50%;
    transform: translateX(-50%);
    top: 100%
}
