@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: white;
  color: white;
  background-size: cover;
  background-position: center;
}

.side-bar {
  background: #981B49;
  /* backdrop-filter: blur(15px); */
  width: 350px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: -350px;
  overflow-y: auto;
  transition: 0.2s ease;
  transition-property: left;
}

.side-bar::-webkit-scrollbar {
  width: 0px;
}

.side-bar.active {
  left: 0;
  z-index: 999;
}

h1 {
  color: lightgrey;
  text-align: center;
  font-weight: 500;
  font-size: 25px;
  margin: 15px;
  font-family: sans-serif;
  /*letter-spacing: 2px;*/
}

.side-bar .menu {
  width: 100%;
  margin-top: 80px;
}

.side-bar .menu .item {
  position: relative;
  cursor: pointer;
}

.side-bar .menu .item a {
  color: lightgrey;
  font-size: 16px;
  text-decoration: none;
  display: block;
  padding: 4px 15px;
  line-height: 20px;
}

.side-bar .menu .item a:hover {
  background: #888;
  transition: 0.3s ease;
}

.side-bar .menu .item i {
  margin-right: 15px;
}

.side-bar .menu .item a .dropdown {
  position: absolute;
  right: 0;
  /*margin: 5px;*/
  transition: 0.3s ease;
}

.side-bar .menu .item .sub-menu {
  /*background: #fff;*/
  display: none;
}

.side-bar .menu .item .sub-menu a {
  padding-left: 30px;
}

.side-bar .menu .item .sub-menu2 a {
  padding-left: 45px;
}

.side-bar .menu .item .sub-btn {
  font-weight: 600;
}

.side-bar .menu .item .link{
  color: #0074a3;
}

.side-bar .menu .item .sub-menu .sub-btn {
  font-weight: 500;
}

.rotate {
  transform: rotate(90deg);
}

.close-btn {
  position: absolute;
  color: lightgrey;
  font-size: 23px;
  right: 0px;
  margin: 15px;
  cursor: pointer;
  z-index: 999;
}

.menu-btn {
  position: fixed;
  color: rgb(0, 0, 0);
  background-color: white;
  font-size: 20px;
  margin: 25px;
  cursor: pointer;
  z-index: 999;
}

.library-title {
  /*margin-top: 180px;*/
  padding-top: 70px;
  padding-bottom: 20px;
  font-size: 3.5em;
  font-weight: 600;
  color: #981B49;
}

/* ------------------------- floorplan holder ---------------------- */
#floorplan_holder {
  margin: 0px;
  margin-top: 0px;
  /*width:3091px;
	height:2400px;
	width:100%;
	height:100%;*/
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 993 / 567;
  left: 0px;
  top: 0px;
  position: relative;
}

/* ------------------------- floorplan image ---------------------- */
#floorplan {
  width: 100%;
  height: 100%;
  z-index: 5;
  left: 0px;
  top: 0px;
  position: absolute;
  border: 0px solid white;
  opacity: 1;
  filter: alpha(opacity=100);
  /* For IE8 and earlier */
}

/* ------------------------- floorplan image ---------------------- */
#floorplan_highlight {
  width: 100%;
  height: 100%;
  z-index: 10;
  left: 0px;
  top: 0px;
  position: absolute;
  border: 0px solid white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  /*animation: blink 1s steps(1, end) 3;*/
}



.map {
  width: 100%;
  display: flex;
  justify-content: center;
}

#wayfinding {
  margin: 20px;
}
#wayfinding p {
  color: black;
  margin: 20px;
}

.back-url {
  right: 20px;
  top: 20px;
  position: fixed;
  Z-INDEX: 900;
}

/* New style for active menu items */
.side-bar .menu .item a.active-menu-item {
	background: #bbb;
  color: white;
}

@keyframes pulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.blinking-highlight {
    animation: pulse 1s infinite;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  .library-title {
    font-size: 1.8em; /* Reduce font size for the main title */
    padding-top: 50px;
    padding-bottom: 10px;
  }

  .back-url img {
    width: 150px; /* Reduce logo size */
    height: auto; /* Maintain aspect ratio */
  }
}

/* Responsive styles for very small mobile devices */
@media (max-width: 500px) {
  .library-title {
    font-size: 1.5em; /* Even smaller font size for very small screens */
    padding-top: 60px; /* Larger padding top */
  }
}

