[x-cloak] { display: none !important; }

.invisible {
  visibility: hidden;
}

* {
  box-sizing: border-box;
}

body {
  height: 100dvh;
  margin: 0;
  font-family: sans-serif;
  background: midnightblue;
  color: moccasin;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screen {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.screen-center {
  justify-content: center;
  text-align: center; 
}

.hud {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 1rem;
  color: midnightblue;
  background-color: moccasin;
}

.hearts {
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.heart-empty {
  opacity: 0.3;
}

.title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.flag-img {
  display: block;
  min-height: 0;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 10px 10px 20px 0px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.97);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

.btn-correct {
  background: #22c55e;
  color: #fff;
  margin-right: 4rem;
}

.btn-incorrect {
  background: #ef4444;
  color: #fff;
}

.map-wrapper {
  flex: 1;
  min-height: 0;
  position: relative;
}

.map-next-btn {
  margin-top: 1rem;
}

.map-container {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.map-container.grabbing {
  cursor: grabbing;
}

.map-container svg {
  width: 100%;
  height: 100%;
}

.map-container svg path {
  fill: #334155;
  stroke: #1e293b;
  stroke-width: 0.5;
  cursor: crosshair;
  transition: fill 0.2s;
}

.map-container svg path:hover {
  fill: #475569;
}

/* Map zoom controls */
.map-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.map-controls button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #334155;
  color: #e2e8f0;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.map-controls button:hover {
  background: #475569;
}

/* Game over */

.score-breakdown {
  text-align: right;
  font-size: 21px;
}

.btn-reset {
  margin-top: 2rem;
}

.btn-fullscreen {
  margin-top: 1.5rem;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #94a3b8;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}
