/* media queries 922 x 1000 */

* {
  font-family: "Josefin Sans", sans-serif;
}

body {
  display: grid;
  grid-template-columns: [sidebar-start] 50px [map-start] 50px [sidebar-end] 50px [map-end];
  /* grid-template-rows: [left-start] 60px [right-start] 60px [left-end] 60px [right-end]; */
  grid-template-columns: 0 1fr;
  /* grid-template-rows: auto auto; */
  grid-template-rows: 106px 100vh;
  grid-template-areas:
    "header header"
    "sidebar map";
  background-color: #FAF9F6;
}

.image {
  background-image: url(../i-voted.png);
}

header {
  display: flex;
  grid-area: header;
  background-color: rgb(50, 50, 116);
  background-image: url(../i-voted.png);
  background-size: 1400px;
  color: white;
  max-height: 106px;
  align-items: center;
  padding-left: 10px;
}

#info h1, #teaminfo h1{
  color: #FAF9F6;
  background-color: rgb(50, 50, 116);
  padding: 10px;
}

#info h2, #teaminfo h2{
  color: #FAF9F6;
  background-color: rgb(126, 35, 35);
  padding: 10px;
}

#teaminfo h3{
  color: #FAF9F6;
  background-color: rgb(126, 35, 35);
  padding: 10px;
}

#info, #teaminfo {
  padding-top: 40px;
  padding-left: 100px;
  padding-right: 100px;
  justify-self: center;
  width: 80vh;
  line-height: 1.5;
}

/* BUG: remove pointer event for annoying sidebar that overlays the map */
#sidebar {
  grid-area: sidebar;
  z-index: 9999;
  pointer-events: none;
  /* grid-column: 1; */
  /* grid-row: 1/-1; */
  /* height: 100vh; */
}

/* add pointer event for the menu */
.main-menu {
  pointer-events: visible;
}

#map {
  display: grid;
  /* min-height: 90vh; */
  width: 100%;
  grid-area: map;
  /* grid-template-columns: repeat(11, minmax(0, 1fr)); */
  grid-template-columns: 250px auto auto auto;
  /* grid-template-columns: 0.05fr 0.9fr 0.05fr; */
  /* grid-template-rows: repeat(auto-fit, minmax(150px, auto)); */
  /* grid-auto-rows: minmax(min-content, max-content); */
  /* grid-template-rows: 0.05fr 0.2fr 0.2fr auto 0.2fr 0.05fr 0.15fr; */
  grid-template-rows: 4% 20% 20% 5% auto 3% 20%;
  /* OOPS! I PRESSED Refresh on discord  HAHAHAHAHA */
  /* bruh. */
  /* grid-template-rows: repeat(7, minmax(auto, auto)); */
  align-items: end;
  justify-self: end;
  /* grid-gap: 25px; */
  grid-row-gap: 10px;
  padding-top: 10px;
  padding-right: 10px;
}

#title {
  grid-row: 1;
  grid-column: 4 / span 2;
  display: inline-block;
  z-index: 9999;
  background-color: white;
  padding: 10px;

  /* margin-right: 10px; */
  /* margin-bottom: 50px; */
  border-radius: 7px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
  height: fit-content;
  width: fit-content;
  /* position: absolute; */
  /* right: 0; */
  /* top: 10px; */
  font-size: 15px;
  justify-self: end;
  align-self: start;
}


#layerControl {
  grid-row: 2;
  display: inline-block;
  z-index: 9999;
  background-color: white;
  padding: 10px;
  /* grid-column: 30 / span 1; */
  /* grid-row: 10; */
  /* margin-right: 10px; */
  /* margin-top: 10px; */
  border-radius: 7px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
  height: fit-content;
  width: fit-content;
  /* position: absolute; */
  /* top: 50px; */
  /* right: 0; */
  font-size: 13px;
  grid-column: 5;
  justify-self: end;
  align-self: start;
}


.legend{
  z-index: 9999;
}

#theLegend{
  grid-row: 6;
  z-index: 9999;
  background-color: white;
  padding: 10px;
  grid-column: 5;
  /* position: relative; */
  border-radius: 7px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
  /* margin-left: 30px; */
  /* margin-bottom: 40px; */
  /* margin-right: 10px; */
  font-size: 14px;
  justify-content: self;
  width: 200px;
  justify-self: right;
  align-self: end;
}

#toggleMenu {
  grid-row: 7;
  /* display: grid; */
  z-index: 9999;
  background-color: white;
  padding: 10px;
  /* grid-column: 30 / span 1; */
  /* grid-row: 10; */
  /* margin-right: 10px; */
  /* margin-bottom: 50px; */
  border-radius: 7px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
  height: fit-content;
  width: fit-content;
  /* position: absolute; */
  /* bottom: 0; */
  /* right: 0; */
  font-size: 14px;
  grid-column: 5;
  justify-self: right;
  align-self: start;
}
/* #spaceBetweenLegendAndToggle{
  grid-row: 7;
  min-height: 200px;

} */
.toggle {
  cursor: pointer;
  display: inline-block;
  /* padding: 5px; */
}

.toggle-switch {
  display: inline-block;
  background: #ccc;
  border-radius: 16px;
  width: 45px;
  height: 25px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
}
.toggle-switch:before,
.toggle-switch:after {
  content: "";
}
.toggle-switch:before {
  display: block;
  background: linear-gradient(to bottom, #fff 0%, #eee 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  width: 18px;
  height: 18px;
  position: absolute;
  top: 3px;
  left: 2px;
  transition: left 0.25s;
}
.toggle:hover .toggle-switch:before {
  background: linear-gradient(to bottom, #fff 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.toggle-checkbox:checked + .toggle-switch {
  background: #56c080;
}

#repToggle .toggle-checkbox:checked + .toggle-switch {
  background: #fb716f;
}

#demToggle .toggle-checkbox:checked + .toggle-switch {
  background: #0088fe;
}

#indToggle .toggle-checkbox:checked + .toggle-switch {
  background: #76cd8f;
}

#AaPopToggle .toggle-checkbox:checked + .toggle-switch {
  background: #6a51a3;
}

.toggle-checkbox:checked + .toggle-switch:before {
  left: 23px;
}

.toggle-checkbox {
  position: absolute;
  visibility: hidden;
}

.toggle-label {
  margin-left: 5px;
  position: relative;
  top: 2px;
  font-size: 14px;
}

.geographic-label {
  position: absolute;
  width: auto;
  font-size:20px;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0) !important;
  box-shadow: none !important;
  border: none !important;
  stroke: white !important;
  stroke-width: 10px !important;
  /* text-shadow: 2px 2px 2px #FFFFFF; */
  text-shadow:
    -1px -1px 0 white,
     0   -1px 0 white,
     1px -1px 0 white,
     1px  0   0 white,
     1px  1px 0 white,
     0    1px 0 white,
    -1px  1px 0 white,
    -1px  0   0 white;
}

.boundary-label {
  font-size: 15px;
  z-index: 100;
}

.leaflet-popup-tip {
  display: none;
}

/* this is the search bar css */

.leaflet-geosearch-bar{
  background-color: #5c5c90;
  width: 500px !important;
}

.leaflet-control-container{
  justify-self: start;
  align-self: start;
  grid-row: 1 !important;
  grid-column: 2 !important;
}

.leaflet-control-geosearch form input {
  font-size: 14px !important;
}