.theme-light {
  --color-primary: #1f77b4;
  --color-secondary: #fbfbfe;
  --color-accent: #fd6f53;
  --font-color: #000000;
}

.theme-dark {
  --color-primary: #17ed90;
  --color-secondary: #1a1a1b;
  --color-accent: #12cdea;
  --font-color: #ffffff;
}

body {
  background: var(--color-secondary);
}

.container {
  background: var(--color-secondary);
  height: 100%;
  display: grid;
  grid-gap: 3px;
  /* grid-row-gap: 15px; */
  grid-template-columns: 2fr 2fr 1fr 2fr 2fr;
  grid-template-rows: 40vh auto 40px 75px 400px 400px 40px 30px;
  grid-template-areas:
    "m m m m m"
    ". l . r ."
    ". h h t ."
    ". s s s ."
    ". c c c ."
    ". p p p ."
    ". f f f ."
    ". . . . .";
}

container>div {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: #ffeead;
}

.header {
  grid-area: h;
  align-items: center;
}

/* LEAFLET */
.my-map {
  grid-area: m;
  align-items: center;
}

#map {
  /* width: 600px; */
  /* height: 400px; */
  background-color: var(--color-secondary);
}

.info {
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.info h4 {
  margin: 0 0 5px;
  color: #777;
}

.contact-info {
  /* padding: 6px 8px; */
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.contact-info h4 {
  /* margin: 0 0 5px; */
  color: #777;
}

.leaflet-popup-close-button {
    display:none;
}

.leaflet-label-overlay {
    line-height:0px;
    margin-top: 9px;
    position:absolute;
}

.text-labels {
    font-size: 1em;
    /* font-weight: 700; */
    color: white;
    /* Use color, background, set margins for offset, etc */
      }

/* LEAFLET RELATED*/
.my-toggle {
  grid-area: t;
  align-items: center;
  margin-right: 15px;
  margin-top: 15px;
}

.menu-left {
  grid-area: l;
}

.menu-right {
  grid-area: r;
}

.select2-container {
  width: 100% !important;
}

.myselect {
  /* padding-top: 15px; */
  grid-area: s;
}

.footer {
  grid-area: f;
}

.my-footer {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   text-align: center;

   font: 14px/16px Arial, Helvetica, sans-serif;
   background: white;
   background: rgba(255, 255, 255, 0.8);
   box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
   border-radius: 5px;
   color: #777;
   padding-bottom: 3px;
   padding-top: 3px;
}

.myplot {
  grid-area: c;
}

.myplot2 {
  grid-area: p;
}

.download {
  float: right;
  padding-top: 2px;
  display: inline;
}

.health-link{
  padding-top: 10px;
  float: left;
  display: inline;
  padding-left: 5px;
}

a {
  color: #1f77b4;
}

.cases-box{
border: 1px solid #1f77b4;
height: 50px;
/* border-radius: 10px; */
background-color: #1f77b4;
}

.deaths-box{
  border: 1px solid #fd6f53;
  height: 50px;
  /* border-radius: 10px; */
  background-color: #fd6f53;
}

.cases-count{
  text-align: center;
  color: white;
  font-weight: bold;
}

.cases-title{
  text-align: center;
  margin-bottom: 5px;
  margin-top: 0;
}

/* .mybutton{
  background-color: #1f77b4;
} */
.btn {
  font-size: 14px;
  padding: 6px 12px;
  margin-bottom: 0;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
}

.btn:focus,
.btn:active:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.btn:hover,
.btn:focus {
  color: #333;
  text-decoration: none;
}

.btn:active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.btn-default {
  color: #ffffff;
  background-color: #1f77b4;
  /* border-color: #ccc; */
}

.btn-default:focus {
  color: #333;
  background-color: #e6e6e6;
  border-color: #8c8c8c;
}

.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-default:active {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

#selectbox {
  /* min-width: 100%; */
  /* float: left;
  margin-top: 5px;
  max-width: 60%;
  height: 60px; */
}

/**********************************************************************/
/************************ DARK MODE STYLE *******************/
/********************************************************************/
.container h1, label {
  color: var(--font-color);
  font-family: sans-serif;
}

p {
  color: var(--font-color);
  font-family: sans-serif;
}

.container button {
  /* color: var(--font-color); */
  background: var(--color-primary);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  float: right;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 0px;
  bottom: 4px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  box-shadow: 0 0px 15px #2020203d;
  background: white url('https://i.ibb.co/FxzBYR9/night.png');
  background-repeat: no-repeat;
  background-position: center;
}

input:checked+.slider {
  background-color: #2196f3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(24px);
  -ms-transform: translateX(24px);
  transform: translateX(24px);
  background: white url('https://i.ibb.co/7JfqXxB/sunny.png');
  background-repeat: no-repeat;
  background-position: center;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/**********************************************************************/
/************************ END DARK MODE STYLE *******************/
/********************************************************************/
/**********************************************************************/
/************************ MOBILE STYLE *******************/
/********************************************************************/
@media only screen and (max-width: 767px) {
  .container {
    /* height: 100%;
      display: grid;
      grid-gap: 3px; */
    /* grid-row-gap: 15px; */
    grid-template-columns: repeat(5, 1fr);
      grid-template-rows: 40px 11vh 80px 300px auto auto 40px 45px;
    grid-template-areas:
      "h h h h t"
      "l l . r r"
      "s s s s s"
      "m m m m m"
      "c c c c c"
      "p p p p p"
      "f f f f f"
      ". . . . .";
  }

  .header {
    grid-area: h;
    align-items: center;
  }

  /* .menu-left {
    grid-area: l;
  }

  .menu-right {
    grid-area: r;
  } */

  .select2-container {
    width: 100% !important;
  }

  .myselect {
    grid-area: s;
  }

  .footer {
    grid-area: f;
  }

  .myplot {
    grid-area: c;
  }
}

/* @media (prefers-color-scheme: dark) {
  body{
    color: black;
    background-color: black;
  }
h1{
  color: white;
}

#infections-graph {
  background-color: black;
  color: black;
}

} */
