/* Reset & base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0d0d0d;
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  text-align: center;
  margin: 20px auto 10px;
  position: relative;
}

#header-buttons {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 8px;
}

#header-buttons button {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #00ffcc;
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

#header-buttons button:hover {
  color: #ff49a1;
}

#main-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 6px;
  user-select: none;
}

#main-title small {
  font-size: 1rem;
  color: #a0f3d1;
  font-weight: 400;
}

#welcome-text {
  font-size: 1.1rem;
  margin: 0 0 30px;
  user-select: none;
  color: #00ffcc;
}

#welcome-text small {
  font-size: 0.8rem;
  color: #90ee90;
}

/* Glow and glitch effects */
.glow-text {
  text-shadow:
    0 0 6px #00ffcc,
    0 0 20px #00ffcc,
    0 0 30px #00ffcc,
    0 0 40px #00ffcc;
  color: #a0f3d1;
}

.pink-glow-heart {
  color: #ff49a1;
  text-shadow:
    0 0 8px #ff49a1,
    0 0 20px #ff49a1,
    0 0 30px #ff49a1,
    0 0 40px #ff49a1;
  animation: pulseHeart 2.5s infinite alternate;
  font-weight: 900;
}

@keyframes pulseHeart {
  0% { text-shadow: 0 0 8px #ff49a1, 0 0 20px #ff49a1; }
  100% { text-shadow: 0 0 20px #ff49a1, 0 0 40px #ff49a1, 0 0 60px #ff49a1; }
}

@keyframes glitch {
  0%, 100% {
    text-shadow:
      2px 0 lime, -2px 0 lime,
      0 2px lime, 0 -2px lime;
  }
  25% {
    text-shadow:
      4px 0 lime, -4px 0 lime,
      0 4px lime, 0 -4px lime;
  }
  50% {
    text-shadow:
      3px 0 lime, -3px 0 lime,
      0 3px lime, 0 -3px lime;
  }
  75% {
    text-shadow:
      5px 0 lime, -5px 0 lime,
      0 5px lime, 0 -5px lime;
  }
}

.glitch-text {
  animation: glitch 1.5s infinite;
}

/* Pages */

.page {
  max-width: 720px;
  margin: 0 auto 50px;
  padding: 0 15px;
  min-height: 400px;
  user-select: none;
}

.visible {
  display: block;
}

.hidden {
  display: none;
}

/* Dashboard grid and buttons */

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  justify-items: center;
}

.btn-neon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  border-radius: 8px;
  padding: 18px 10px;
  font-size: 1.1rem;
  color: black;
  cursor: pointer;
  text-align: center;
  text-shadow:
    0 0 4px black;
  box-shadow:
    0 0 6px rgba(255,255,255,0.3);
  user-select: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.btn-neon:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 14px 3px rgba(255,255,255,0.6);
  color: white;
}

/* Neon background colors */

.green-bg {
  background: #00ff00cc;
  box-shadow: 0 0 10px #00ff00cc;
}

.pink-bg {
  background: #ff49a1cc;
  box-shadow: 0 0 10px #ff49a1cc;
}

.blue-bg {
  background: #0099ffcc;
  box-shadow: 0 0 10px #0099ffcc;
}

.orange-bg {
  background: #ff6600cc;
  box-shadow: 0 0 10px #ff6600cc;
}

.cyan-bg {
  background: #00ffffcc;
  box-shadow: 0 0 10px #00ffffcc;
}

.purple-bg {
  background: #a259ffcc;
  box-shadow: 0 0 10px #a259ffcc;
}

/* Flow container styling */

.flow-container {
  background: #111;
  border: 2px solid #00ffcc;
  border-radius: 10px;
  padding: 16px 22px;
  box-shadow:
    0 0 10px #00ffccaa;
  color: white;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 380px;
  overflow-y: auto;
}

/* Buttons inside flow */

.flow-button {
  background: #ddd;
  color: black;
  border: 1.5px solid #00ffcc;
  border-radius: 6px;
  padding: 10px 16px;
  margin: 6px 8px 8px 0;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.4s ease-in-out,
    box-shadow 0.3s ease;
  animation: btnPulse 4s ease-in-out infinite;
}

.flow-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px #00ffccaa;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 8px #00ffccaa; }
  50% { box-shadow: 0 0 20px #00ffccff; }
}

/* Input & textarea inside flow */

.flow-input, .flow-textarea {
  width: 100%;
  background: #222;
  border: 1.5px solid #00ffcc;
  border-radius: 6px;
  color: white;
  padding: 8px 12px;
  margin: 10px 0;
  font-family: monospace;
  font-size: 1rem;
  resize: vertical;
}

.flow-textarea {
  min-height: 80px;
  max-height: 160px;
}

/* Cards container */

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
}

/* Individual card */

.part-card {
  width: 240px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 0 12px #00ffcccc;
  color: white;
  font-family: 'Courier New', monospace;
  perspective: 1000px;
  cursor: pointer;
  user-select: none;
}

.part-card-inner {
  position: relative;
  width: 100%;
  height: 350px;
  text-align: left;
  transition: transform 0.7s;
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: inset 0 0 18px #00ffccaa;
  padding: 16px 22px;
}

.part-card.flipped .part-card-inner {
  transform: rotateY(180deg);
}

/* Front and back faces */

.part-card-front, .part-card-back {
  position: absolute;
  width: 100%;
  height: 100
  
  /* Front and back faces */

.part-card-front, .part-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 16px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.3;
  user-select: none;
}

.part-card-front {
  background: #111;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
}

.part-card-front h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.part-card-front p {
  margin: 4px 0;
  font-weight: 400;
}

/* Back side */

.part-card-back {
  background: #222;
  color: #a0f3d1;
  transform: rotateY(180deg);
  font-family: 'Courier New', monospace;
  overflow-y: auto;
  white-space: pre-wrap;
  padding-top: 10px;
}

.part-card-back h3 {
  margin-top: 0;
  font-weight: 700;
  color: #ff49a1;
  text-align: center;
  margin-bottom: 12px;
}

.part-card-back section {
  margin-bottom: 14px;
}

.part-card-back section strong {
  color: #00ffcc;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

/* Scrollbar for card back */
.part-card-back::-webkit-scrollbar {
  width: 6px;
}

.part-card-back::-webkit-scrollbar-thumb {
  background: #00ffcc88;
  border-radius: 3px;
}

/* Scrollbar for flow containers */
.flow-container::-webkit-scrollbar {
  width: 8px;
}

.flow-container::-webkit-scrollbar-thumb {
  background: #00ffccaa;
  border-radius: 4px;
}

/* Responsive tweaks */

@media (max-width: 480px) {
  .button-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .part-card {
    width: 90%;
    height: auto;
  }
}



























