﻿body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game {
  background: white;
  width: 90%;
  max-width: 700px;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align: center;
}

h1 {
  margin: 0;
  color: #1f2937;
}
p {
  margin: 0;
}

.score {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.dataset-selector,
.mode-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: #e5e7eb;
}

.dataset-selector {
  margin: 18px 0 8px;
}

.mode-selector {
  margin: 8px 0 18px;
}

.dataset,
.mode {
  min-height: 40px;
  border-radius: 12px;
  background: transparent;
  color: #374151;
  font-size: 16px;
  font-weight: bold;
}

.dataset:hover,
.mode:hover {
  background: #d1d5db;
  color: #111827;
  transform: none;
}

.dataset.active,
.mode.active {
  background: #2563eb;
  color: white;
}

.choices {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 18px;
  background: #2563eb;
  color: white;
  transition: transform 0.15s, background 0.15s;
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

button:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.item-name {
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.item-detail {
  font-size: 20px;
  opacity: 0.9;
}

.result {
  min-height: 100px;
  font-size: 17px;
  line-height: 1.5;
}

#map {
  height: 320px;
  margin:0;
  border-radius: 16px;
  overflow: hidden;
  display: none;
}

.correct {
  color: #15803d;
  font-weight: bold;
}

.wrong {
  color: #b91c1c;
  font-weight: bold;
}

.next {
  display: none;
  margin-top: 20px;
  background: #111827;
}

.next:hover {
  background: #000;
}

@media (max-width: 600px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }
}
