Newer
Older
2024-C1232021_kanata / game2.css
/* 全体のスタイル */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #f0f8ff;
}

/* ヘッダー */
h1 {
  color: #333;
  margin: 20px 0;
  font-size: 2em;
  font-weight: bold;
}

/* 情報表示 */
#info {
  margin: 10px auto;
  font-size: 18px;
  color: #555;
}

/* ボタン */
#controls {
  margin: 10px auto;
}

button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

/* 地図 */
#map {
  width: 90vw;
  height: 75vh;
  margin: 20px auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* クイズモーダル */
.quiz-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 2px solid #4caf50;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  border-radius: 10px;
}

.quiz-container h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

#quizOptions {
  text-align: left;
  margin-bottom: 20px;
}

#quizOptions div {
  margin-bottom: 10px;
}

#submitAnswer {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#submitAnswer:hover {
  background-color: #0056b3;
}

#quizMessage {
  font-size: 16px;
  margin-top: 10px;
  color: green;
  font-weight: bold;
}