/* Reset basic margins/padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full-screen canvas for the animated background */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Basic body styling */
body {
  font-family: Arial, sans-serif;
  background-color: #FFF9E6;
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Centered container for main content */
.content {
  max-width: 900px;
  width: 100%;
  padding: 20px;
  margin: 40px auto;
}

/* Headings and text */
h1 {
  font-size: 1.8em;
  margin-bottom: 0.2em;
}
.tagline {
  font-size: 1.1em;
  font-style: italic;
  color: #555;
  margin-bottom: 1em;
}
.intro-text {
  font-size: 1em;
  color: #444;
  margin-bottom: 1.2em;
}
.message {
  font-size: 1em;
  margin: 1em 0;
  line-height: 1.6;
}

/* Button styles */
.button {
  display: inline-block;
  padding: 0.8em 1.5em;
  background-color: #444;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 0.5em;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.button:hover {
  background-color: #333;
}

/* Simulation log container */
.simulation-container {
  margin: 2em 0;
}
.simulation-log {
  margin-top: 1em;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background: #fafafa;
  text-align: left;
  padding: 1em;
  font-family: Consolas, monospace;
  font-size: 0.9em;
  line-height: 1.4em;
}

/* Mermaid diagram container */
.mermaid {
  margin: 2em auto 1em auto;
  text-align: left; /* Let the diagram handle its own layout */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 1em;
}

/* Diagram status text */
.diagram-status {
  font-size: 0.95em;
  color: #555;
  margin-top: 0.5em;
  font-style: italic;
}

/* Footer note */
.footer-note {
  font-size: 0.9em;
  color: #555;
  margin-top: 2em;
}
.footer-note a {
  color: #555;
  text-decoration: none;
}
.footer-note a:hover {
  text-decoration: underline;
}
