/* 全体のリセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

/* ゲームコンテナ */
.game-container {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

/* Canvas要素 */
#gameCanvas {
  display: block;
  width: 800px;
  height: 400px;
  background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
  border: 3px solid #333;
  border-radius: 5px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* UI要素 */
.ui {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  background: #ecf0f1;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.instructions {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

.instructions p {
  margin: 2px 0;
}

/* ゲームオーバー画面 */
.game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.game-over h2 {
  color: #e74c3c;
  margin-bottom: 15px;
  font-size: 24px;
}

.game-over p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #2c3e50;
}

#restartButton {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

#restartButton:hover {
  background: linear-gradient(45deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

#restartButton:active {
  transform: translateY(0);
}

/* 非表示クラス */
.hidden {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 850px) {
  .game-container {
    padding: 10px;
  }
  
  #gameCanvas {
    width: 100%;
    max-width: 800px;
    height: auto;
  }
  
  .ui {
    flex-direction: column;
    gap: 10px;
  }
} 