/* Common Styles */
body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Menu Icon */
#menu-icon {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bar {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Side Panel */
#side-panel {
  position: fixed;
  top: 0;
  left: -15%;
  width: 15%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.98);
  z-index: 999;
  transition: left 0.3s ease;
}

#side-panel.open {
  left: 0;
}

#close-panel {
  position: absolute;
  right: 10px;
  top: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Index Page Styles */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

#background h1 {
  color: white;
  font-size: 8vw;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 2vw;
}

/* Page 2 Styles */
#main-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5vw;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  z-index: 1001;
  pointer-events: none;
}

/* Particle Box Styles (Page 2) */
#particle-box {
  position: fixed;
  bottom: 5vw;
  right: 5vw;
  width: 10vw;
  height: 10vw;
  box-sizing: border-box;
  cursor: pointer;
}

#border-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #ff8800;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

#text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

#text-container h1 {
  color: white;
  font-size: 1.2vw;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  pointer-events: none;
}

/* Canvas Styles */
body canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  cursor: crosshair;
  z-index: 2;
}

#swarm {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  cursor: crosshair;
  z-index: 2;
}

/* Page 2 canvas - allow clicks through to parent box */
.box-canvas {
  pointer-events: none;
}
