#loading {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  background-color: rgba(192, 192, 192, 0.5);
  background-image: url(assets/loading.gif);
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  font-size: 24px;
}

.centered {
  text-align: center;
  margin-top: 2%;
}

#contentContainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 2%;
}

#contentCanvas {
  max-width: 600px;
  width: 100%;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

:fullscreen #contentCanvas {
  max-width: none;
  width: 100vw;
  height: 100vh;
}

:fullscreen #authorNetwork {
  max-width: none;
  width: 100vw;
  height: 100vh;
}

#canvasContainer {
  position: relative;
  display: inline-block;
}

#networkContainer {
  position: relative;
  display: inline-block;
}

#fullscreenBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 0.8em;
}

#networkFullscreenBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 0.8em;
}

#networkControls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 4px;
}

#networkControls label {
  margin-right: 10px;
}

#networkControls input[type="range"] {
  vertical-align: middle;
}

#similarDiv {
  max-width: 300px;
}

#similarDiv ul {
  list-style-type: none;
  padding-left: 0;
}

#statsDiv {
  max-width: 300px;
}

#statsDiv ul {
  list-style-type: none;
  padding-left: 0;
}

#corpusContainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 2%;
}

#corpusStats {
  max-width: 300px;
}

#corpusComparison {
  max-width: 300px;
}

#corpusStats ul {
  list-style-type: none;
  padding-left: 0;
}

#corpusComparison ul {
  list-style-type: none;
  padding-left: 0;
}

#authorNetwork {
  max-width: 400px;
  width: 400px;
}

#selectDiv select {
  padding: 5px;
  font-size: 1em;
}

#controls input[type="number"] {
  padding: 5px;
  font-size: 1em;
  width: 80px;
}
#controls input[type="range"] {
  vertical-align: middle;
}
#controls label {
  margin-right: 10px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  /* height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #dedede;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 5%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Translate */
#google_translate_element{
  display: none;
}

.skiptranslate{
  display: none;
}

body{
  top: 0!important;
}

/* span {
  width: 50%;
} */


/* On / Off switch */
.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 34px;
}

.switch input {display:none;}

.slideraa {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #aaaa09;
  -webkit-transition: .4s;
  transition: .4s;
   border-radius: 34px;
}

.slideraa:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slideraa {
  background-color: #2ab934;
}

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

input:checked + .slideraa:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(55px);
}

/*------ ADDED CSS ---------*/
.slideraa:after
{
 content:'OFF';
 color: white;
 display: block;
 position: absolute;
 transform: translate(-50%,-50%);
 top: 50%;
 left: 50%;
 font-size: 10px;
 font-family: Verdana, sans-serif;
}

input:checked + .slideraa:after
{
  content:'ON';
}

/*--------- END --------*/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgb(0,0,0,0.5);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
  font-size: 150%;
  transition: opacity 0.8s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip.focus, .tooltip:focus {
    outline: 0;
    box-shadow: none!important;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip .tooltiptext:hover {
  visibility: hidden;
}
/* Section styles */
#selectedHymnal, #corpusOverview {
  margin: 2% auto;
  padding: 1% 2%;
  max-width: 1200px;
}

#selectedHymnal {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
}

#corpusOverview {
  background-color: #fafafa;
  border: 1px solid #ccc;
}

#selectedHymnal h2, #corpusOverview h2 {
  text-align: center;
  margin-top: 0;
}
