canvas {
  width: 100%;
  height: 100%;
}

a {
  color: #576569;
}

#text-on-screen {
  border: 2px solid #9f9f9f;
  border-radius: 2px;
  padding: 10px;
  color: rgb(222, 213, 190);
  cursor: pointer;
  position: absolute;
  background-color: rgba(0, 27, 32, 0.7);
  font-size: 1.5em;
  bottom: 1em;
  opacity: 1;
  z-index: 9999;
  max-width: 95vw;
}

.viewer {
  border: none;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.overlay-for-audio-play{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 0, 0, 0);
}

@keyframes fadeOut {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

@keyframes fadeInViewer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
  
}

#image-view {
  max-width: 95vw;
  max-height: 85vh;
  height: auto;
  border: 4px solid #9f9f9f;
}

* {
  box-sizing: border-box;
}

.row {
  display: inline-flex;
  clear: both;
}
.columnLateral {
  float: left;
  width: 15%;
  min-width: 300px;
}
.columnCetral {
  float: left;
  width: 70%;
  min-width: 300px;
}
#joy3Div {
  opacity: 0.5;
  width: 6em;
  height: 6em;
  margin: 50px;
  position: fixed;
  bottom: 0;
  left: 0em;
  z-index: 9999;
}

#audio-on {
  position: absolute;
  right: 2%;
  top: 4em;
  height: 3em;
  opacity: 0.4;
}

#text-info,
#text-books {
  position: absolute;
  max-width: 96%;
  color: white;
  background-color: rgba(159, 159, 159, 0.95);
  text-align: justify;
  display: none;
  justify-content: center;
  padding: 9px;
  left: 2%;
  border: 2px solid #d5e5eb;
  border-radius: 4px;
  z-index: 101;
}

#text-books.open,
#text-info.open {
  display: flex;
}
/*


*/

/* Google Font Link */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 1px;
}
.sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 3em;
  height: 100%;
  width: 0px;
  background: #142236;
  padding: 6px 1px;
  z-index: 99;
  transition: all 0.5s ease;
}
.sidebar.open {
  width: 400px;
  max-width: 86%;
}
.sidebar .logo-details {
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}
@media (max-width: 420px) {
  .sidebar .logo-details {
    height: 1.5em;
  }
}
.sidebar .logo-details .icon {
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar .logo-details .logo_name {
  color: #fff;
  font-size: 1.5em;
  font-weight: 600;
  opacity: 0;
  transition: all 0.5s ease;
}
@media (max-width: 420px) {
  .sidebar .logo-details .logo_name {
    font-size: 1em;
  }
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
  opacity: 1;
}
.sidebar .logo-details #btn {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.4s ease;

  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
  background-color: #ddebff;
  border: 2px solid #142236;
  border-radius: 20%;
  color: #142236;
  padding: 2px 4px 3px 4px;
}

@media (max-width: 420px) {
  .sidebar .logo-details #btn {
    font-size: 1em;
  }
}

.sidebar.open .logo-details #btn {
  text-align: right;
  transform: scaleX(-1);
}

.sidebar canvas,
.sidebar div.map_in_sidebar canvas,
li.text_in_sidebar canvas {
  display: none;
  transition: all 0.5s ease;
}

.sidebar.open canvas.open,
.sidebar.open div.map_in_sidebar,
li.text_in_sidebar.open canvas.open {
  transition: all 0.5s ease;
  display: block;
  width: 360px;
  height: 500px;
  position: relative;
  bottom: 50%;
}
.text_in_sidebar {
  display: flex;
  height: fit-content;
  max-height: 50vh;
}

#info_text_in_sidebar,
#books_text_in_sidebar,
#map_in_sidebar {
  display: none;
  align-items: flex-start;
  position: relative;
  max-width: 96%;
  color: white;
  text-align: left;
  justify-content: flex-start;
  font-size: 1em;
  font-weight: 100;
  transition: all 0.5s ease;
  margin: 1.5em 0 0 0px;
  /*padding: 10em 1em 0 0;*/
}
@media (max-width: 420px) {
  .sidebar div.info_text_in_sidebar,
  .sidebar div.books_text_in_sidebar,
  li.text_in_sidebar,
  .sidebar div.map_in_sidebar {
    font-size: 0.9em;
  }
}

#info_text_in_sidebar.open,
#books_text_in_sidebar.open,
#map_in_sidebar.open {
  display: flex;
  overflow: auto;
  /*max-height: 31%;*/
  height: 40vh;
  padding: 1em 0em 0 0;
}

.sidebar i {
  color: #ffffff;
  height: 60px;
  min-width: 50px;
  font-size: 1.5em;
  text-align: center;
  line-height: 60px;
}
@media (max-width: 420px) {
  .sidebar i {
    font-size: 1em;
  }
}
.sidebar .nav-list {
  padding: 1em 1em;
  /*margin-top: 20px;*/
  height: 100%;
}

@media (max-width: 420px) {
  .sidebar .nav-list {
    padding: 0.2em 0.5em;
  }
}

.sidebar li {
  position: relative;
  margin: 8px 0;
  list-style: none;
}

.sidebar li a {
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 50px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #11101d;
}
.sidebar li a:hover,
#info-icon.active,
#books-icon.active {
  background: #2d88e3;
}
.sidebar li a .links_name {
  color: #c7eaf4;
  font-size: 1em;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}

@media (max-width: 420px) {
  .sidebar li a .links_name {
    font-size: 0.8em;
  }
}

.sidebar.open li a .links_name {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  align-items: center;
}
.sidebar li a:hover .links_name,
.sidebar li a:hover i {
  transition: all 0.5s ease;
  color: #11101d;
}
.sidebar li i {
  height: 50px;
  line-height: 50px;
  font-size: 1.2em;
  border-radius: 12px;
}

@media (max-width: 420px) {
  .sidebar li i {
    font-size: 1em;
  }
}

.sidebar li img {
  opacity: 0.7;
  height: 3em;
  width: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}
