html{
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body {
  margin: 0;
  padding: 0;
  background: #111;
  color: #fff;
  font-family: sans-serif;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Top bar === */
#top-bar {
  height: 50px;
  width: 2000px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding-bottom: 20px;
  padding-top: 50px;
  background: linear-gradient(to bottom, #111, #000);
  box-shadow: 0 2px 10px #00f4;
}

button {
  background: transparent;
  border: 2px solid #00f;
  color: #00f;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

#fake_pane{
  display: block;
}

button:hover {
  color: #fff;
  border-color: #0af;
  box-shadow: 0 0 10px #0af;
}

/* === Main content === */
#main {
  flex: 1;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* === Canvas wrapper === */
#canvas-wrapper {
  flex: 1;
  position: relative;
  padding-top: 10px;
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

#canvas_container{
  position: relative;
  width: 512px;
  height: 480px;
  background: #111;
  border: 1px solid #00f;
  display: block;
}
canvas {
  position: relative;
  background: #111;
  border: 1px solid #00f;
  display: block;
}

/* === Fullscreen button anchored bottom-right of canvas === */
#fullscreen-btn {
  position: absolute;
  bottom: 10px;  /* Distance from the bottom */
  right: 10px;   /* Distance from the right */
  opacity: 0;
  transition: opacity 1.5s;
}

#canvas-wrapper:hover #fullscreen-btn,
#fullscreen-btn:hover {
  opacity: 1;
}


#right-pane {
  position: relative;
  width: 350px;
  height: 480px;
  left: 50px;
  top: 20px;
  background: transparent;
  color: #fff;
  overflow-y: auto;

  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none; /* avoid blocking clicks when hidden */
  display: block;
}

#right-pane.visible {
  opacity: 1;
  pointer-events: auto;
}
/* === Bottom icons (below everything) === */
#bottom-icons {
  position: fixed;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 10px;
}

#bottom-icons button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  padding: 0;
}

#intro, #about {
  max-width: 700px;
  text-align: center;
}