:root {
  --background-color: #1a1a2e;
  --player1-color: #4444ff;
  --player2-color: #44ff44;
  --health-bar-bg: #333;
  --health-bar-fill: #4CAF50;
  --text-color: #ffffff;
  --card-bg: #2c2c4e;
  --tab-active-color: #5555ff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.game-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 800px;
  margin-bottom: 30px;
}

.player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player {
  width: 200px;
  height: 400px;
}

.health-bar {
  width: 200px;
  height: 20px;
  background-color: var(--health-bar-bg);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.health-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--health-bar-fill);
  transition: width 0.3s ease;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button {
  padding: 10px;
  background-color: #555;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #777;
}

.game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none !important;
}

#goober-game {
  flex-direction: column;
  align-items: center;
}

#goober-canvas {
  background-color: var(--card-bg);
  border: 2px solid var(--player1-color);
  max-width: 100%;
}

.game-instructions {
  margin-top: 10px;
  color: #aaa;
}

#baby-game {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
}

#baby-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

#baby {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

#age-display {
  font-size: 20px;
  margin-bottom: 15px;
}

.stats {
  width: 100%;
  margin-bottom: 15px;
}

.stat {
  margin-bottom: 10px;
}

.stat label {
  display: block;
  margin-bottom: 5px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: var(--health-bar-bg);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  width: 50%;
  height: 100%;
  background-color: var(--health-bar-fill);
  transition: width 0.3s ease;
}

#actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

#actions button {
  padding: 10px;
  background-color: var(--player1-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#actions button:hover {
  background-color: #6666ff;
}

#circle-under-baby-game {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--player2-color);
  margin-top: 20px;
  align-self: center;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#circle-under-baby-game:hover {
  transform: scale(1.1);
}

#point-display {
  color: var(--background-color);
  font-weight: bold;
}

#external-project-link {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--player1-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.cta-button:hover {
  background-color: #6666ff;
}

.section-preview {
  background-color: var(--card-bg);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  color: var(--text-color);
}

.section-preview h2 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}

.circle-game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.circle-game-title {
  color: white;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.profile-link {
  color: var(--text-color);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.profile-link:hover {
  opacity: 0.8;
}

body, 
body * {
  color: white;
}