body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* height: 100vh; */
  margin-bottom: 0;
  overflow: hidden;
}
.header {
  padding: 0.5rem;
  background-color: #f0f0f0;
  text-align: center;
}

#sigma-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 80vh;
  width: 100%;
  /* width: 100vw; */
  z-index: 1;
}

.card-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 1000;
  width: 95%;
  height: 53.5%;
}
.card-contents {
  /* bottom: 0; */
  /* left: 50%;
              transform: translate(-50%, 0); */
  border-radius: 25px;
  height: 67.5%;
  border: 2px solid Black;
  padding: 15px 15px 15px 15px;
  margin: 20px 20px 20px 20px;
  background: #ffffff;
  /* background: #c9dbe6; */
  overflow: visible;
  box-shadow: 5px 5px 2px #888888;
  /* position: relative; */
  /* z-index: 1000; */
  /* position: fixed; */
  overflow-y: auto;
  overflow-x: hidden;
}

.close-button:hover {
  cursor: pointer;
  background: rgb(255, 66, 66);
  transition: background-color 0.2s ease-in-out;
}
.close-button {
  color: #888888;
  position: absolute;
  border-radius: 50%;
  background: white;
  top: 6.5px;
  right: 3px;
  font-size: 1.2em;
  width: 2em;
  height: 2em;
  z-index: 1001;
  /* position: relative;
              top: 10px;
              left: auto;
              right: 10px;
              font-size: 18px;
              cursor: pointer; */
}
.tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px 5px 0 0;
  background-color: #f0f0f0;
  cursor: pointer;
}
.rounded-div {
  z-index: 3;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.tab-button.active {
  background-color: #ccc;
}
.tab-content {
  width: 100%;
}

#tab-pane-2.active {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tab-pane {
  display: none;
  position: relative;
}

.tab-pane.active {
  display: block;
}

.tab-pane:not(.active) {
  display: none;
}
.table-container {
  width: 96%;
}
#top-papers-table {
  width: 100%;
}
/*
    #search-container div {
      display: flex;
      width: 100%;
      } */
#search-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
#search-container input[type='search'] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.input-years {
  /* display: flex; */
  /* justify-content: center; */
  padding-top: 10px;
}
#filters-and-contents {
  display: flex;
  flex-direction: row;
}

#content {
  flex: 7; /* adjust the flex value as needed */
  /* width: 80vw; */
  display: inline-block;
  vertical-align: top;
  overflow: auto;
}
#global-filters {
  flex: 1.7;
  overflow-y: auto;
  max-height: 94%;
  /* position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 10px; 
        margin-bottom: 0;
        border-top: 1px solid #ccc; 
        z-index: 2; */
  /* position: absolute;
        left: 1px; */
  /* width: 4%; */
  height: 100%;
  /* height: 100vh; */
  background-color: #fff;
  /* display: inline-block; */
  vertical-align: top;
  padding: 20px;
  border-right: 1px solid #ccc;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* overflow: auto; */
  min-height: min-content; /* needs vendor prefixes */
  height: 80vh;
  /* width: 15vw; */
}

#global-filters > * {
  flex: 1;
}

.clusterLabel {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: sans-serif;
  font-variant: small-caps;
  font-weight: 400;
  font-size: 1.4rem;
  text-shadow: 2px 2px 1px white, -2px -2px 1px white, -2px 2px 1px white, 2px -2px 1px white;
  white-space: break-spaces;
  text-align: center;
}
.cluster-labels-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 6px;
  justify-content: center;
}
.cluster-labels-section {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  /* overflow-x: auto; */
}

.cluster-labels-section input[type='checkbox'] {
  margin-right: 10px;
}

#selected-nodes-count {
  top: 10px;
  left: 10px;
  position: absolute;
}

#bottom-left-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 3;
  justify-content: end;
  width: 100%;
  align-items: center;
}

#show-labels-checkbox-container {
  /* bottom: 10px; */
  /* right: 10px; */
  /* flex: 1; */
  /* width: 50px; */
  /* height: 100px; */
}
#help-button-container {
  /* flex: 1; */
  /* width: 100px; */
  /* height: 100px; */
  /* bottom: 10px; */
  /* right: 10px; */
}

.help-container {
  position: fixed;
  bottom: 10%;
  right: 1%;
  /* left: 50%; */
  /* transform: translate(-50%, 0%); */
  z-index: 1000;
}

.help-contents {
  border-radius: 25px;
  border: 2px solid Black;
  padding: 15px 15px 15px 15px;
  margin: 20px 20px 20px 20px;
  background: #ffffff;
  overflow: visible;
  /* box-shadow: 5px 5px 2px #888888; */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  width: 30vw;
  height: 70vh;
}

#help-button {
  border: none;
  background-color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
/* .cluster-labels-section label {
  margin-right: 20px;
} */
#year-min-threshold,
#year-max-threshold {
  width: 98%;
}
.loading-animation {
  position: fixed;
  top: 18.4vh;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
}

#loading-animation.show {
  display: block;
}

.spinner {
  position: fixed;
  top: 55vh;
  left: 58vw;
  width: 50px;
  height: 50px;
  border: 10px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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