* {
  box-sizing: border-box;
  border-collapse: collapse;
  outline: none;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: sans-serif;
  background: black;
  color: white;
}

h2 {
  text-align: center;
  margin: 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #4d4d4d;
}

.incorrect {
  color: #808080;
}

.close {
  color: #dede10;
}

.correct {
  color: #10d010;
}

#intro-bg,
#score-bg {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
  min-width: 100%;
  min-height: 100%;
  z-index: 1000;
}

#intro,
#score {
  background: black;
  cursor: initial;
  max-width: 30rem;
  margin: auto;
  padding: 0.5rem;
  border: 1px solid #4d4d4d;
}

#score {
  text-align: center;
}

#stats {
  display: flex;
  flex-direction: row;
}

#stats>* {
  flex: 1;
}

#content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

#game {
  /* Forces it to expand past the SVG's natural size */
  width: 100%;
  /* Caps the expansion right where you want it */
  max-width: 50rem;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#marin-map {
  /* Forces the map container to grow and fill the 50rem boundary */
  flex: 1;
  /* Essential flexbox safety net to keep the SVG from breaking layout boundaries */
  min-width: 0;
}

#marin-map svg {
  width: 100%;
  height: auto;
}

#buttons {
  height: 0;
  min-height: 100%;
  border: 1px solid #4d4d4d;
  overflow-y: auto;
  width: min-content;
  margin-left: 0.25rem;
}

div.button {
  margin: 0.5rem;
  padding: 0.25rem;
  text-align: center;
  border-radius: 0.25rem;
  background: #f2f2f2;
  color: black;
  cursor: pointer;
}

#footer {
  min-width: 100%;
  background: #111;
  padding: 0.5rem;
  color: #cdcdcd;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
}

a,
a:link,
a:visited {
  color: #f2f2f2;
}

a:hover {
  color: #cdcdcd;
}

a:active {
  color: #cdefab;
}