html {
  margin: 20px;
}


body {
  font-family: Arial, sans-serif;
  background-image: url('./bg_s1.png');
  background-size: contain;       /* Make the image cover the entire element */
  background-position: center;  /* Center the image */
  background-repeat: no-repeat; 
  width: 95vw;
  height: 95vh;
  /* max-height: 1100px; */
  max-height: calc(0.5*100vw);
  max-width: calc(2*100vh);
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: start;

}




#layout {
  display: flex;
  flex-direction: row-reverse;
  align-items: end;
  position: fixed;
  right: 0;
  width: 50vw;  
  height: 50%;
  
}

.tree_svg {
  margin: 0;
  padding: 0;
  height: 8vw;
  max-height: 20vh;
  width: 45%; 
  bottom: 0;
  transform-origin: bottom center;
  transition: transform 1s ease; 
}

.tree_svg > svg {
  position: absolute;
  bottom: 0;
  margin-bottom: 100px;
}


#tree-grid {
  flex: 40;
  height: 30%;
  position: relative;
  max-width: 50vw;
  margin-bottom: calc(2vh + 10px);
  padding-left: 5vh;

  padding-bottom: 10px;
  padding-right: 12vw;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-left: -3vw;
}

#bar-interaction {
  flex: 40;
  height: 50%;
  width: 50vw;
  display: flex;
  align-items: end;
  margin: 0 1rem;
}

/*old trapez*/
#tree-grid::before {
  /* content: "";
  position: absolute;
  bottom: 0;
  inset: 0;
  background: rgb(224, 224, 224);
  clip-path: polygon(20% 0, 80% 0%, 100% 100%, 0% 100%);
  z-index: -1; */
} 

.btn {
  position: fixed;
  left: 400px;
  background: rgb(75, 75, 75);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: rgb(94, 94, 94);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn:active {
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.3); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#overlay img {
  position: absolute;
}

#overlay img {
  position: absolute;
  top: 0;
}

#overlay img,
p {
  transition: opacity 2s ease-in-out;
  display: block;
}

#overlay img.active {
  opacity: 1;
}

#overlay .hide {
  opacity: 0;
}

#overlay p {
  position: absolute;
  bottom: 3vh;
}

.radial_center_text {
  max-width: 10ch;
}

#svg_container {
  height: 40%;
  display: flex;
  position: relative;
}

.tree_svg {
  align-self: end;
}

