/* Reset and Layout */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #1a0026, #0d001a);
  color: #fff;
  overflow-x: hidden;
}

/* PCL Logo Styling */
.pcl-logo {
  height: 52px;
  margin-right: 12px;
  filter: drop-shadow(0 0 8px #FFD700) drop-shadow(0 0 16px #FFD700);
  animation: pulseGlow 2s infinite alternate;
  vertical-align: middle;
}

/* Optional glowing pulse animation */
@keyframes pulseGlow {
  from {
    filter: drop-shadow(0 0 6px #FFD700) drop-shadow(0 0 12px #FFD700);
  }
  to {
    filter: drop-shadow(0 0 12px #ffea00) drop-shadow(0 0 24px #ffea00);
  }
}

/* Title bar layout */
.title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

header {
  padding: 1px;
  background-color: #1a0026;
  text-align: center;
}

h1 {
  font-size: 2em;
  color: #ff69b4;
  text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff1493, 0 0 20px #ff00ff;
}

.main-container {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 120px);
}

.pane {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid #330033;
  padding-bottom: 100px; 
}

/* Left Pane - Builder */
#builder h2 {
  color: #FFD700;
  font-size: 2em;
  text-shadow: 0 0 5px #FFD700, 0 0 10px #ffea00;
}

select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #1a1a2f;
  color: #fff;
}

#yamlDisplay {
  width: 100%;
  height: 60vh;
  font-family: monospace;
  background-color: #1e1e2f;
  color: #ddd;
  border: 1px solid #555;
  padding: 10px;
  border-radius: 5px;
  resize: vertical;
  box-shadow: 0 0 8px #ff00ff44;
}

.button-group button {
  background-color: #FFD700;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.button-group button:hover {
  background-color: #ffee58;
}

/* Right Pane - Tutorial */
#tutorial h2 {
  color: #79e0ff;
  font-size: 2em;
  text-shadow: 0 0 4px #00a2ff, 0 0 8px #147aff;
}

#tutorialMenu {
  margin-bottom: 1em;
}

#tutorialMenu ul {
  list-style: none;
  padding: 0;
}

#tutorialMenu li {
  margin: 5px 0;
  cursor: pointer;
  color: #8be9fd;
  transition: text-shadow 0.2s;
}

#tutorialMenu li:hover {
  text-shadow: 0 0 5px #8be9fd, 0 0 10px #00ffff;
}

#tutorialContent {
  background-color: #1e1e2f;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 0 10px #ff00ff33;
}

/* Show/Hide Button */
#tutorial button {
  background-color: #9900cc;
  font-size: 1.2em;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 8px #9900cc;
}


#tutorial button:hover {
  background-color: #cc33ff;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 5px;
  background-color: #000;
  font-size: 0.8em;
  color: #FFD700;
  font-weight: bold;
  box-shadow: 0 0 15px #FFD70099;
  z-index: 10;
}

/* Starfield background */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: black;
}