body {
  margin: 0;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#header {
  padding: 10px;
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 18px;
}

#quiz-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  flex-grow: 1;
}

#map {
  flex: 1 1 60%;
  height: 60vh;
  min-height: 300px;
  border: 1px solid #ccc;
}

#quiz-controls {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

#answer {
  text-align: center;
  text-align-last: center;
}

select,
button {
  font-size: 15px;
  padding: 8px;
  width: 100%;
}

#score {
  font-size: 16px;
  margin-top: 10px;
}

/* 全画面オーバーレイのスタイル */
.selection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 20px;
}

.selection-overlay button {
  width: 250px;
  padding: 15px;
}
.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  #quiz-container {
    flex-direction: column;
    align-items: center;
  }
  #map {
    width: 95%;
    height: 50vh;
  }
  #quiz-controls {
    width: 95%;
  }
}
