body {
  margin: 0;
  font-family: 'Courier New', serif;
  background-color: #121212;
  color: #f0f0f0;
}

header {
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid #444;
}

.schema-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.central-glyph {
  position: absolute;
  z-index: 2;
  font-size: 2rem;
  background: radial-gradient(circle, crimson, gold);
  padding: 1rem 2rem;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .orbit {
    margin-top: 30rem; /* Increase from 15rem */
    transition: margin-top 1s ease-in-out;
  }
}

.orbit {
  display: flex;
  flex-wrap: wrap;  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  grid-auto-flow: column; /* Forces horizontal layout */
  grid-auto-columns: min-content; /* Keeps glyphs tight */
  gap: 2rem;
  justify-content: center;
  margin-top: 20rem;
}

.glyph {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #222;
  color: #cecece;
  padding: 1rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  display: flex;
}

.glyph:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, crimson, gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hidden {
  display: none;
}

.modal {
  z-index: 9999; /* or higher than .central-glyph */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #1e1e1e;
  padding: 2rem;
  border: 2px solid gold;
  border-radius: 10px;
  width: 60%;
  color: #fff;
}

.close-btn {
  float: right;
  font-size: 2rem;
  cursor: pointer;
}