body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f0f9ff;
  color: #2c3e50;
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 50%, #e3f2fd, #bbdefb, #90caf9);
  position: relative;
}

/* Cell membrane pattern overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(144, 238, 144, 0.1) 5%, transparent 6%),
    radial-gradient(circle at 30% 70%, rgba(144, 238, 144, 0.1) 4%, transparent 5%),
    radial-gradient(circle at 70% 40%, rgba(144, 238, 144, 0.1) 6%, transparent 7%),
    radial-gradient(circle at 90% 80%, rgba(144, 238, 144, 0.1) 5%, transparent 6%);
  background-size: 300px 300px;
  z-index: -1;
  opacity: 0.7;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #1565c0;
  text-shadow: 0 2px 10px rgba(21, 101, 192, 0.3);
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  animation: pulse 2s infinite;
}

/* Cell nucleus effect for title */
h1::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: radial-gradient(circle at center, rgba(144, 238, 144, 0.2) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  color: #37474f;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.play-button {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Mitochondria-like energy effect */
.play-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  z-index: -1;
}

.play-button:hover {
  background-color: #43a047;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.play-button:hover::before {
  transform: rotate(45deg) translate(10%, 10%);
}

.play-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 600px;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(144, 238, 144, 0.3);
  position: relative;
  overflow: hidden;
}

/* Cell membrane pattern for instructions */
.instructions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 5%, transparent 6%),
    radial-gradient(circle at 30% 70%, rgba(76, 175, 80, 0.05) 4%, transparent 5%),
    radial-gradient(circle at 70% 40%, rgba(76, 175, 80, 0.05) 6%, transparent 7%),
    radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.05) 5%, transparent 6%);
  background-size: 100px 100px;
  z-index: -1;
}

.instructions h2 {
  color: #1565c0;
  margin-top: 0;
  font-size: 1.8rem;
  border-bottom: 2px solid rgba(144, 238, 144, 0.5);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.instructions ul {
  padding-left: 1.5rem;
}

.instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.instructions strong {
  color: #1565c0;
}

/* Loading animation (like cell division) */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  z-index: 10;
}

.loading::before,
.loading::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(76, 175, 80, 0.6);
  animation: cell-division 2s infinite ease-in-out;
}

.loading::after {
  animation-delay: -1s;
}

@keyframes cell-division {
  0%, 100% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Game title */
.game-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #1565c0;
  text-shadow: 0 2px 10px rgba(21, 101, 192, 0.3);
  z-index: 5;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Game UI elements */
.game-ui {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1565c0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Game over screen */
.game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  color: white;
}

.game-over h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f44336;
  text-shadow: 0 2px 10px rgba(244, 67, 54, 0.5);
}

.game-over p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: white;
}

.game-over button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-over button:hover {
  background-color: #43a047;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
} 