:root {
  /* Width of the navigation icons */
  --nav-icon-width: 50px;
  --nav-border-width: 8px;
}

/* Items related to navigation bar */
html,
body {
  /* Setting the body to 100% height and zero margin */
  height: 100%;
  margin: 0;
  font-family: sans-serif;
}

.page-container {
  /* Inherit the height from the parent element */
  height: inherit;
  /* For making navigation bar on the right side */
  display: flex;
}

.main {
  height: inherit;
  padding: 0;
  /* Padding to ensure the content start away from the border */
  padding-left: var(--nav-border-width);
  overflow-y: auto;
}

/* Rule set for the navigation bar */
.nav {
  width: 250px;
  height: inherit;
  position: relative;
  background-color: #eeeeee;
  transition: width 0.2s;
  flex-shrink: 0;
}

/* Set the icon to right arrow while loading */
.logo .material-icons {
  transform: rotate(-180deg);
}

/* Set for navigation collapse state */
.nav--collapsed {
  width: var(--nav-icon-width);
}

/* Set the rotation of logo when in collpsed state */
.nav--collapsed .logo .material-icons {
  transform: rotate(0deg);
}

/* Switching label off when navigation is collapsed */
.nav--collapsed .nav__label {
  display: none;
}

/* How to diplay links in the navigation bar */
.nav__link {
  display: flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
}

/* Hover effect on links */
.nav__link:hover {
  background-color: #dddddd;
}

/* Creating a icon container, use this to modify the navigation items*/
.nav__icon-container {
  width: var(--nav-icon-width);
  height: var(--nav-icon-width);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Disabling text wrapping */
.nav__label {
  white-space: nowrap;
}

/* Setting navigation border "the small gap between the side bar and the main contend" */
.nav__border {
  position: absolute;
  left: 100%;
  top: 0;
  width: var(--nav-border-width);
  height: inherit;
  background-color: #dddddd;
  transition: background-color 0.2s;
  cursor: ew-resize;
}

/* Color of navigation border on hover */
.nav__border:hover {
  background-color: #cccccc;
}

/* Adding theme to the Logo */
.logo {
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.2ch;
  width: 100%;
}

.layer_active {
  background-color: #B1B1B1;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: default;
}

[data-tooltip]::after {
  position: absolute;
  width: 120px;
  left: calc(50%- 70px);
  bottom: 125%;
  text-align: center;
  box-sizing: border-box;
  content: attr(data-tooltip);
  color: #ffffff;
  background: black;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: bold;

  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opactity 0.3s, transform 0.2s;
  z-index: 999;
}

/* Tool tip only visible when the navigation bar is collapsed */
.nav--collapsed [data-tooltip]:hover::after {
  opacity: 0.7;
  visibility: visible;
  transform: translateY(0);
}

/* Place the insights button at the end */
.insights {
  position: absolute;
  width: inherit;
  bottom: 0;
}

/* Popup */
/* #ac-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}
#popup {
  width: 100%;
  height: 30%;
  width: 555px;
  height: 375px;
  background: #ffffff;
  display: flex;
  align-items: center;
} */

/* #popup {
  width: 555px;
  height: 375px;
  background: #ffffff;
  border: 5px solid #000;
  border-radius: 25px;
  -moz-border-radius: 25px;
  -webkit-border-radius: 25px;
  box-shadow: #64686e 0px 0px 3px 3px;
  -moz-box-shadow: #64686e 0px 0px 3px 3px;
  -webkit-box-shadow: #64686e 0px 0px 3px 3px;
  position: relative;
  top: 150px;
  left: 375px;
} */

/* #ac-wrapper {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

#popup {
  background-color: white;
  width: 30%;
  height: 30%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
} */

/* #popup {
  width: 555px;
  height: 375px;
  background: #ffffff;
  border: 5px solid #000;
  border-radius: 25px;
  -moz-border-radius: 25px;
  -webkit-border-radius: 25px;
  box-shadow: #64686e 0px 0px 3px 3px;
  -moz-box-shadow: #64686e 0px 0px 3px 3px;
  -webkit-box-shadow: #64686e 0px 0px 3px 3px;
  position: relative;
  top: 150px;
  left: 375px;
} */

/* #ac-wrapper .popup {
  background-color: rgb(240, 0, 0);
  width: 30%;
  height: 30%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
} */
/* .modal button {
  padding: 10px 30px;
  background-color: #2980b9;
  color: white;
  border: none;
  cursor: pointer;
} */
