*{
  box-sizing: border-box;
}

:root {
  --navbar-height: 3.5rem;
  --sidebar-width: 17rem;
  --background-color: rgb(255, 255, 255);
  --gray-color: #5f5f5f;
}

html, body {
  margin: 0;
  height: 100%;
}

th, td {
  padding: 0px 10px;
}

.alert {
  top: var(--navbar-height);
  z-index: 100;
}

.navbar {
  display: flex;
  position: fixed;
  top: 0px;
  width: 100%;
  align-items: center;
  z-index: 50;
}

.alert {
  margin: 0;
  border-radius: 0;
}

#main-div {
  display: flex;
  padding: 0;
  margin: 0;
  width: 100%;
  height: calc(100% - var(--navbar-height));
}

.form-container {
  padding: 24px 0;
  min-width: 290px;
  max-width: 500px;
  top: 2rem;
  border-radius: 1rem;
  background-color: var(--background-color);
}

.form-container-parent {
  position: relative;
  background-color: var(--background-color);
  top: var(--navbar-height);
}

.dropzone {
  box-shadow: 0px 2px 20px 0px #f2f2f2;
  border: 1px dashed #c0ccda;
  padding: 60x;
  border-radius: 10px;
  background-color: #fbfdff;
  margin-left: 15px;
  margin-bottom: 15px;
  margin-top: 15px;
  z-index: 500;
}

.sidebar-wrapper {
  position: fixed;
  width: var(--sidebar-width);  /* Used for when the spinner is added when adding files */
  height: calc(100% - var(--navbar-height));
  z-index: 50;
  top: var(--navbar-height);
  background-color: var(--background-color);
  box-shadow: 0px 1px 4px 1px rgba(0 ,0, 0, .3);
  transition: 0.5s ease;
}

.sidebar {
  position: fixed;
  width: var(--sidebar-width);
  height: calc(100% - var(--navbar-height));
  /* z-index: 10; */
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.5s ease;
}

.sidebar-toggle {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: flex-end;
  border: none;
  height: 3rem;
  width: 3rem;
  flex-flow: nowrap;
  margin-left: var(--sidebar-width);
  border-radius: 10%;
  text-align: right;
  box-shadow: 0px 1px 4px 1px rgba(0 ,0, 0, .3);
  /* left: 4rem; */
  top: 9rem;
  transform: translateX(-50%);
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: 0.5s ease;
}

.sidebar-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 1.2rem;
}

.sidebar .row {
  display: flex;
  flex-flow: nowrap;
  width: 100%;
  justify-content: space-between;
}

.accordion {
  white-space: nowrap;
}

.file-btn {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.list-group-item:last-child {
  border-radius: 0;
}

.list-group-item.active .text-muted {
  color: white!important;
}

#add-files-button {
  border-bottom: 1px solid rgba(90, 90, 90, 0.3);
  white-space: nowrap;
}

#delete-all-files-btn {
  border-top: 1px solid rgba(90, 90, 90, 0.3);
  white-space: nowrap;
}

#display-area {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  left: var(--sidebar-width);
  top: var(--navbar-height);
  width: calc(100% - var(--sidebar-width));
  min-height: calc(100% - 10rem);
  transition: all 0.5s ease;
  z-index: 0;
}

.tab {
  position: relative;
  padding: 0;
}

.tab .navbar {
  top: var(--navbar-height);
  height: 4rem;
  padding: 0;
  transition: all 0.5s ease;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  text-align: center;
  border: none;
  outline: none;
  transition: 0.3s;
  white-space: nowrap;
  padding-inline: 0.5rem;
  height: 100%;
}

.tab .tab-buttons-wrapper {
  display: flex;
  position: relative;
  border-bottom: 1px solid #ccc;
  background-color: #f1f1f1;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

/* Change background color of buttons on hover */
.tab button:hover:enabled {
  background-color: #ddd;
  cursor: pointer;
}

/* Create an active/current tab-links class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tab-content {
  display: none;
  padding: 6px 12px;
  /* border: 1px solid #ccc; */
  border-top: none;
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
} 

/* Fade effect when switching tabs */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.spinner {
  display: flex;
  position: fixed;
}

.display-title-wrapper {
  display: flex;
  height: 1.5rem;
  margin: 0;
  border-color: rgb(194, 194, 194);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  z-index: 1;
  background-color: var(--gray-color);
  /* background-color: rgb(230, 230, 230); */
  align-items: center;
  justify-content: center;
  width: calc(100% - var(--sidebar-width));
  padding: 0;
  transition: all 0.5s ease;
}

.display-title {
  margin: 0;
  font-weight: lighter;
  font-size: 1.2rem;
  font-family: var(--bs-body-font-family);
  color:white;
  text-align: center;
  white-space: nowrap;
}

.display-subtitle {
  font-weight: bold;
  font-size: 2rem;
  font-family: var(--bs-body-font-family);
  color: var(--gray-color);
  text-align: center;
  white-space: nowrap;
}

/* #line-3d-plot-div{
  display: inline-flex;
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  transition: all 0.5s ease;
} */

.plot-wrapper{
  display: inline-flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 0;
  transition: all 0.5s ease;
  width: 100%;
  top: 4rem;
}

.canvas-wrapper {
  display: flex;
  position: relative;
  /* align-items: center; */
  max-width: 32rem;
  margin: 0;
  /* margin-right: 1rem;
  margin-left: 1rem; */
}

.plot-tab{
  display: inline-flex;
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 1rem;
  width: 100%;
  transition: all 0.5s ease;
}

/* .decay-plot-tab{
  flex-direction: column;
} */

/* .map-tab{
  display: inline-flex;
  position: relative;
  margin: 0;
  padding: 0;
  transition: all 0.5s ease;
} */

.plot-canvas-wrapper {
  display: grid;
  position: relative;
  grid-template-columns: 1rem auto;
  align-items: center;
  max-width: 40rem;
  margin: 0;
}

.decay-plot-canvas-wrapper {
  top: 1.5rem;
}

.plot-canvas-ylabel {
  position: relative;
  rotate: -90deg;
  margin: 0;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  grid-column-start: 1;
  font-family: var(--bs-body-font-family);
  /* font-family: "Open Sans", verdana, arial, sans-serif; */
  font-size: 0.9rem;
  font-weight: lighter;
}

#plot-canvas-title-div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  position: fixed;
  width: calc(100% - var(--sidebar-width));
  top: 7.5rem;
  margin: 0;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  font-family: var(--bs-body-font-family);
  font-size: 1.2rem;
  font-weight: lighter;
  z-index: 5;
  text-align: center;
  background-color: white;
}

.plot-canvas-title {
  /* position: fixed; */
  /* width: calc(100% - var(--sidebar-width)); */
  /* top: 7.5rem; */
  margin: 0;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  font-family: var(--bs-body-font-family);
  font-size: 1.2rem;
  font-weight: lighter;
  z-index: 5;
  text-align: center;
  background-color: white;
}

.plot-canvas {
  display: flex;
  position: relative;
  grid-column-start: 2;
  min-height: 40rem;
  min-width: 20rem;
  height: calc(100vh - 8rem);
  padding: 0;
}

.change-station-btn {
    position: relative;
    /* width: calc(100% - var(--sidebar-width)); */
    /* top: 8.5rem;
    margin: 0;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    font-family: var(--bs-body-font-family);
    font-size: 1.2rem;
    font-weight: lighter;
    z-index: 5;
    text-align: center;
    background-color: white; */
}

.map-canvas {
  display: flex;
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 40rem;
  min-width: 20rem;
  padding: 0;
}

#map-toggle-div {
  display: flex;
  position: relative;
  top: 2rem;
  left: 2rem;
}

.decay-plot-canvas {
  height: 40rem;
}

/* #toggleSidenavIcon[aria-expanded=false] .bi-caret-left {
  display: none;
}

#toggleSidenavIcon[aria-expanded=true] .bi-caret-right {
  display: none;
} */

/* #toggleSidenavButton{
  position: fixed;
  left: 240px;
  top: 56px;
  z-index: -1;
} */