body {
  font-family: 'Sen', sans-serif;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6, button, p {
  font-family: 'Sen', sans-serif;
  text-align: center;
}

#game-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

#map {
  flex: 2;
  height: 500px;
  border-radius: 5px;
  min-height: 200px;
}

#image-box {
  flex: 1;
}

#image-box img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
  pointer-events: none;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  margin-right: 10px;
  border: none;
  border-radius: 6px;
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #357abd;
}

#feedback {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}

#timer {
  text-align: center;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

#image-box button {
  margin: 0;
}

button:disabled,
button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

@media (max-width: 768px) {
  #game-container {
    flex-direction: column;
    align-items: center;
  }

  #map,
  #image-box {
    width: 100%;
    align-items: center;
  }

  #map {
    height: 300px;
    margin-top: 15px;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  button {
    width: 80%;
    margin-right: 0;
  }
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

.dot {
  margin: 0 6px;
}

.github-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  transition: opacity 0.3s ease;
}

.github-icon:hover {
  opacity: 0.7;
}

/* Splash screen */
.hidden { display: none; }

.splash {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-inner {
  text-align: center;
}

.splash-inner h1 {
  margin: 0;
  font-size: 2.5rem;
}

.splash .tagline {
  margin-top: 8px;
  color: #666;
  font-size: 1rem;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
}

footer {
  text-align: center;
  margin-top: auto;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}
