:root {
  --primary-color: #2563eb;
  --secondary-color: #dc2626;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --background-color: #e0f2fe;
  --game-bg: #f8fafc;
  --bike-color: #3b82f6;
  --obstacle-color: #ef4444;
  --score-color: #7c3aed;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-family: 'Press Start 2P', cursive;
  color: var(--primary-color);
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  background-color: #1e293b;
  border-radius: 10px;
  color: white;
}

.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.start-btn {
  background-color: var(--secondary-color);
  color: white;
  min-width: 180px;
}

.start-btn:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
}

.about-me, .how-to-play {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.about-me:hover, .how-to-play:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}

.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  border: 4px solid #1e293b;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--game-bg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bike {
  position: absolute;
  width: 50px;
  height: 80px;
  background-color: var(--bike-color);
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.obstacles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.obstacle {
  position: absolute;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  width: 40px;
  height: 50px;
  background-color: var(--obstacle-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.score-display {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--score-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.instructions, .contact {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2, h3 {
  font-family: 'Press Start 2P', cursive;
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.instruction-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.contact p {
  text-align: center;
  margin-bottom: 1rem;
}

.email span {
  color: var(--primary-color);
  font-weight: bold;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.linkedin {
  background-color: #0a66c2;
  color: white;
}

.linkedin:hover {
  background-color: #004182;
  transform: translateY(-2px);
}

.more-games {
  background-color: #10b981;
  color: white;
}

.more-games:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

footer {
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    align-items: center;
  }
  
  .game-container {
    height: 350px;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  
  .social-links .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .game-container {
    height: 300px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2, h3 {
    font-size: 1.2rem;
  }
  
  .score-display {
    font-size: 1.2rem;
  }
}
