:root {
  --color-lightgreen: #2ce897;
  --color-secondary: #554840;
}

/* ELEMENTS IN GRID */
.linechart-container {
  grid-area: linegraph;
  border: 1px solid black;
  display: inline-block;
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  vertical-align: center;
  overflow: hidden;
  transition: all 1s;
  background: #212121;
}

.panel {
  grid-area: panel;
  display: grid;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 5px;
  /*background: #1b1b1b;*/
  background: var(--color-secondary);
  z-index: 999;
}

.container--map-panel {
  grid-area: map;
}

.map-panel {
  box-shadow: var(--shadow);
  border-radius: 2px;
  padding: 0.5rem;
  background: var(--color-secondary);
  z-index: 999;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leaflet-map {
  height: 55rem;
  width: 100%;
  justify-self: center;
  align-self: center;
  margin-top: 0;
}

.data-table {
  grid-area: table;
  /*border: 1px solid gray;*/
  background: var(--color-secondary);
  overflow: hidden;
  max-height: 100vh;
  transition: all 1s;
  box-shadow: var(--shadow);
  border-radius: 4px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

/* Footer */
.grid__footer {
  display: grid;
}

@media screen and (min-width: 1024px) {
  .grid__footer {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* GRID TO ORGANIZE ELEMENTS */
.grid > div {
  text-align: center;
  padding: 0 0;
  font-size: 30px;
}

@media screen and (min-width: 1024px) {
  .grid {
    grid-template-areas:
      "linegraph linegraph linegraph"
      "panel map table";
    grid-template-columns: auto 1fr auto;
  }

  .panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "firebutton"
      "datepicker"
      "hidegraph"
      "hidetbl"
      "airbase"
      "target";
    justify-items: center;
  }

  .btn-checkbox.buttonS {
    display: none;
  }

  .btn-checkbox.buttonB {
    display: visible;
  }
}

@media screen and (max-width: 1024px) {
  .grid {
    grid-template-areas:
      "linegraph"
      "panel"
      "map"
      "table";
    grid-template-columns: 1fr auto;
  }

  .panel {
    grid-template-areas:
      "firebutton firebutton datepicker datepicker"
      "hidegraph hidetbl airbase target";
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-items: center;
  }

  .btn-checkbox.buttonS {
    display: visible;
  }

  .btn-checkbox.buttonB {
    display: none;
  }
}

/* LEAFLET MAP */
#map {
  font-size: 10px;
}

.leaflet-popup-content-wrapper {
  background: var(--color-lightgreen);
  border-radius: 5px;
  text-transform: capitalize;
}

.airbase-popup .leaflet-popup-content-wrapper,
.target-popup .leaflet-popup-content-wrapper {
  font-size: 2rem;
}

.airplane-popup .leaflet-popup-content-wrapper {
  font-size: 1rem;
  max-width: 1000px;
  min-width: 300px;
}

.airplane-popup .leaflet-popup-content {
  margin: 5px;
}

.airplane-popup .leaflet-popup-tip,
.airbase-popup .leaflet-popup-tip,
.target-popup .leaflet-popup-tip {
  background: var(--color-lightgreen);
}

.popup-image {
  height: 200px;
  width: 100%;
}

/* PANEL ROUND BUTTONS */
.input {
  display: none;
}

.btn-checkbox {
  grid-area: firebutton;
  width: 6rem;
  height: 6rem;
  margin: 2rem;
  background: #1c222e;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: #9e9a75;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon--checkbox {
  font-size: 3rem;
}

#btn-hidegraph {
  --shadow-color: #ff5858;
  grid-area: hidegraph;
}

#btn-hide_tbl_big {
  --shadow-color: #ddd6f3;
  grid-area: hidetbl;
}

#btn-hide_tbl_small {
  --shadow-color: #ddd6f3;
  grid-area: hidetbl;
}

#btn-hideairbases {
  --shadow-color: #92fe9d;
  grid-area: airbase;
}

#btn-hidetargets {
  --shadow-color: #fdd05f;
  grid-area: target;
}

.input:checked ~ .btn-checkbox {
  color: var(--shadow-color);
  box-shadow: 0 0 0 rgba(0, 0, 0, 1), inset 0 -2px 5px rgba(0, 0, 0, 1),
    inset 0 5px 5px rgba(255, 255, 255, 0.1), 0 0 0 2px #000, 0 0 0 5px #0c0c0c,
    0 0 0 7px var(--shadow-color);
  text-shadow: 0 0 15px var(--shadow-color), 0 0 30px var(--shadow-color);
  animation: mymove 0.25s ease;
}

@keyframes mymove {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* DATEPICKER */
#datepicker {
  grid-area: datepicker;
}

.datepicker--dark {
  color-scheme: dark;
  font-size: 2rem;
}

@media screen and (max-width: 1024px) {
  #datepicker {
    margin-right: 2rem;
  }

  .datepicker--dark {
    font-size: 2.5rem;
  }
}

/* FIRE BUTTON */
.button {
  border: 1px solid black;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: #1c222e;
  transform: skewX(-10deg);
  zoom: 1.5;
  height: 3.5rem;
  width: 7rem;
  border-radius: 20px 5px 20px 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font: 15px sans-serif;
  font-weight: 300;
  text-shadow: 0 0 20px black;
  text-transform: uppercase;
  animation: breath2 2s 0.5s infinite alternate, glowing 1s 4 ease-in-out;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 1rem;
  color: #9e9a75;
}

.button:before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2rem);
  height: 2.7rem;
  animation: breath 2s infinite alternate;
  left: 10px;
  top: 3px;
  position: absolute;
  background-color: transparent;
  border-radius: 15px 3px 15px 3px;
}

.input:checked ~ .button.fire {
  border-color: #ffeca8;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 138, 48, 0.8),
    rgba(240, 96, 29, 0.8)
  );
  box-shadow: 0 0 70px rgba(255, 138, 48, 0.6),
    0 5px 20px rgba(255, 138, 48, 0.6), inset 0 1px #ffeca8,
    inset 0 -1px #ffeca8;
  color: #ffeca8;
}

.input:checked ~ .button.fire:before {
  box-shadow: inset 0 0 30px 0 #ffeca8;
  border: 1px solid white;
}

.button + .button {
  animation-delay: 0.3s;
}

@keyframes breath {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0.95);
  }
}

@keyframes breath2 {
  0% {
    transform: skewX(-10deg) scaleX(1);
  }
  100% {
    transform: skewX(-10deg) scaleX(0.95);
  }
}

@keyframes glowing {
  0% {
    background-color: #2ba805;
    box-shadow: 0 0 5px #2ba805;
  }
  50% {
    background-color: #49e819;
    box-shadow: 0 0 20px #49e819;
  }
  100% {
    background-color: #2ba805;
    box-shadow: 0 0 5px #2ba805;
  }
}

@media screen and (max-width: 1024px) {
  .btn-checkbox {
    width: 4rem;
    height: 4rem;
    margin: 0 0 2rem 1rem;
  }
}

/* DROP DOWN MAP */
.map-form {
  color-scheme: dark;
  font-size: 2rem;
  margin-left: 1rem;
  border-radius: 5px;
}

@media screen and (max-width: 1024px) {
  .map-form {
    margin-left: 0.5rem;
    font-size: 1.5rem;
  }
}

/* FULL SCREEN BUTTON */
#full-screen {
  color-scheme: dark;
  margin-right: 2rem;
}

/* DATA TABLE */
.table-scrollable {
  overflow-y: auto; /* Trigger vertical scroll    */
  overflow-x: hidden; /* Hide the horizontal scroll */
  margin: 0 1rem;
}

#table-airplanes,
#table-airfields,
#table-targets {
  margin: 0 1rem;
  width: 100%;
}

#table-airplanes th,
#table-airfields th,
#table-targets th {
  background-color: black;
  color: white;
  font-size: 2rem;
  text-align: center;
  font-weight: normal;
}

#table-body-airplanes,
#table-body-airfields,
#table-body-targets {
  font-size: 2rem;
}

#table-body-airplanes {
  text-transform: uppercase;
}

#table-body-airfields,
#table-body-targets {
  text-transform: capitalize;
}

#table-body-airplanes tr:nth-child(even),
#table-body-airfields tr:nth-child(even),
#table-body-targets tr:nth-child(even) {
  background-color: #1c222e;
}

#table-airfields,
#table-targets {
  display: none;
}

.data-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 1rem;
}

.data-button {
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .data-table {
    max-width: 350px;
  }

  #table-airplanes,
  #table-airfields,
  #table-targets {
    margin: 0 1rem;
    width: 300px;
  }

  #table-body-airplanes,
  #table-body-airfields,
  #table-body-targets {
    font-size: 1.5rem;
  }

  #table-airplanes th,
  #table-airfields th,
  #table-targets th {
    font-size: 1.5rem;
    cursor: pointer;
  }
}

/* NAV BAR */
.nav-datatable {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  background-color: #212121;
  padding: 0 1rem;
  margin: 1rem;
  border-radius: 4px;
  box-shadow: 0 5px 5px rgba(10, 10, 10, 0.9);
}

.nav-item-datatable {
  color: #83818c;
  padding: 0.5rem;
  text-decoration: none;
  transition: 0.3s;
  margin: 0 0.5rem;
  z-index: 1;
  position: relative;
  font-size: 2rem;
}
.nav-item-datatable:before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: #dfe2ea;
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: 0.3s;
}

.nav-item-datatable:not(.is-active):hover:before {
  opacity: 1;
  bottom: 0;
}

.nav-item-datatable:not(.is-active):hover {
  color: #fcfcfc;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  transition: 0.4s;
  height: 0.5rem;
  z-index: 1;
  border-radius: 8px 8px 0 0;
}

.nav__brand {
  transform: translateY(3px);
  height: 5rem;
  width: 5rem;
  margin-left: 2rem;
}

@media (max-width: 580px) {
  .nav-datatable {
    overflow: auto;
  }
}

/* Line chart */
#timeseries-linechart {
  width: 100%;
  color: white;
}

.figure-title {
  margin: 0;
}

.svg-content {
  display: inline-block;
}

/* Forms */
.form--no-margins {
  margin: 0;
  padding: 0;
  display: inline;
}

/* Dropdown wrapper */
.dropdownWrapper {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  line-height: 1;
}

/* Highlight button */
#highlightButton {
  color-scheme: dark;
  font-size: 1.5rem;
  text-transform: Capitalize;
  margin-left: 1rem;
  border-radius: 5px;
}

#highlightButton optgroup {
  color: #16ef8a;
  font-size: 2rem;
}

@media screen and (max-width: 1024px) {
  #highlightButton {
    font-size: 1rem;
  }

  #highlightButton optgroup {
    font-size: 1.5rem;
  }
}

.popupalert {
  position: relative;
  color: white;
  font-size: 1.25rem;
  animation: glowing 1s 3 ease-in-out;
}
