@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');



section {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#tsparticles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}



@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.45; }
}

.container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  gap: 1.5rem;
}

.left-section {
  flex: 1;
  color: white;
}

.left-section h1 {
  font-size: 5rem;
  font-weight: 800;
  text-shadow: 0 0 20px #ffffffaa;
}

.left-section p {
  font-size: 2rem;
  color: #cccccc;
  margin-top: 0 rem;
}

.start-btn {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: 2px solid #00ffcc;
  background-color: transparent;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px #00ffcc;
}

.start-btn:hover {
  background-color: #00ffcc;
  color: #0d0d0d;
}

.alt-btn {
  margin-left: 1rem;
  background-color: transparent;
  border: 2px solid #00d2ff;
  color: #00d2ff;
  box-shadow: 0 0 12px #00d2ff;
}

.alt-btn:hover {
  background-color: #00d2ff;
  color: #0d0d0d;
}


.right-section {
  flex: 1;
  position: relative;
  height: 100%;
}

.floating {
  position: absolute;
  animation: floatY 6s ease-in-out infinite;
  opacity: 1;
}

.brain {
  width: 450px;
  top: 20%;
  left: 10%;
}

.dna1 {
  width: 120px;
  top: 2%;
  left: 5%;
  animation-delay: 1s;
}

.dna2 {
  width: 100px;
  top: 60%;
  left: 70%;
  animation-delay: 2s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    padding: 2rem;
  }

  .right-section {
    display: none; /* hide images on small screens */
  }

  .left-section h1 {
    font-size: 2.5rem;
  }

  .left-section p {
    font-size: 1rem;
  }

  .start-btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}



body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #0d0d0d;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Press Start 2P', monospace;
}


section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 5rem; 
}


#tsparticles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.glow {
  position: absolute;
  width: 2500px;
  height: 2500px;
  background: radial-gradient(circle, #580876, #194a7f, #127186);
  opacity: 0.25;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: pulse 5s infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.45; }
}

.games-page {
  overflow-y: auto;
  overflow-x: auto;
  min-height: 100vh;
  padding-bottom: 4rem;
}


.games-page {
  position: relative;
  z-index: 2;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.games-page h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #00ffcc;
  border-radius: 16px;
  padding: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.game-card h3 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.game-card .start-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: #00ffcc;
  border: none;
  font-size: 1rem;
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}

.game-card .start-btn:hover {
  background: white;
  color: #2575fc;
}

.student-zone {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 5rem 4rem;
}

.student-zone h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: 'Orbitron', sans-serif;
}

.tool-card,
.scoreboard {
  background: rgba(0, 255, 204, 0.1);
  border: 2px solid #00ffcc;
  border-radius: 12px;
  padding: 2rem;
  font-size: 1.2rem;
  color: white;
  text-align: center;
  text-decoration: none;
  min-width: 250px;
  box-shadow: 0 0 15px #00ffcc;
  transition: 0.3s;
  margin-bottom: 2rem;
  position: relative;
  width: 100%; /* make it responsive */
}

/* Container for all cards */
.student-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}



.tool-card:hover,.scoreboard:hover {
  background: #00ffcc;
  color: #0d0d0d;
}

.journal-section {
  z-index: 2;
  position: relative;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  font-family: 'Press Start 2P', monospace;
}

.journal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

textarea#journal-entry {
  width: 90%;
  max-width: 800px;
  height: 250px;
  padding: 1rem;
  font-size: 1rem;
  font-family: 'Press Start 2P', monospace;
  border-radius: 12px;
  border: 2px solid #00ffcc;
  background: rgba(0, 255, 204, 0.05);
  color: white;
  resize: none;
  outline: none;
}

.journal-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-family: 'Press Start 2P', monospace;
  background-color: #00ffcc;
  border: none;
  color: #0d0d0d;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 15px #00ffcc;
  transition: 0.3s;
}

.journal-btn:hover {
  background: white;
  color: #2575fc;
}

.saved-status {
  margin-top: 1rem;
  color: #00ffcc;
  font-size: 0.9rem;
}

.entries-title {
  margin-top: 3rem;
  font-size: 1rem;
  color: #00ffcc;
}

.entry-box {
  border: 2px solid #00ffcc;
  background: rgba(0, 255, 204, 0.05);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 700px;
  text-align: left;
  font-size: 0.85rem;
  color: white;
  box-shadow: 0 0 10px #00ffcc66;
}

.entry-box strong {
  color: #00ffcc;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.delete-btn {
  margin-top: 0.5rem;
  background-color: transparent;
  border: 2px solid #ff4d4d;
  color: #ff4d4d;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  cursor: pointer;
  transition: 0.2s;
}

.delete-btn:hover {
  background-color: #ff4d4d;
  color: black;
}

.journal-page {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

.scoreboard-section {
  z-index: 2;
  position: relative;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  font-family: 'Press Start 2P', monospace;
}

.scoreboard-section h2 {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.scoreboard-entry {
  background: rgba(0, 255, 204, 0.1);
  border: 2px solid #00ffcc;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  box-shadow: 0 0 15px #00ffcc;
}

/* Enable scrolling ONLY on scoreboard page */
.scoreboard-page {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

.assignments-page {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

.assignments-section {
  z-index: 2;
  position: relative;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  font-family: 'Press Start 2P', monospace;
}

.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.assignment-card {
  background: rgba(0, 255, 204, 0.1);
  border: 2px solid #00ffcc;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 15px #00ffcc;
  text-align: left;
}

.assignment-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.assignment-card button {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-family: 'Press Start 2P', monospace;
  background: #00ffcc;
  border: none;
  border-radius: 8px;
  color: #0d0d0d;
  cursor: pointer;
  transition: 0.3s;
}

.assignment-card button:disabled {
  background: #999;
  color: white;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .game-card {
    padding: 1.2rem;
  }

  .game-card h3 {
    font-size: 1.1rem;
  }

  .game-img {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .tool-card,
  .scoreboard {
    width: 90%;
    margin-bottom: 2rem;
  }
}



