html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#streetView {
  height: 100%;
  width: 100%;
  position: relative;
}

#map {  
  position: absolute;
  bottom: 0;
  right: 0;
  height: 25%;
  width: 25%;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
  z-index: 100000000;
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out, opacity 0.2s ease-in-out;
  transform-origin: right bottom;
  opacity: 0.7;
}

#map.mapHover {
  height: 70%;
  width: 70%;
  opacity: 1;
}

#map.fullScreen {
  height: 100%;
  width: 100%;
  opacity: 1;
}

#buttonContainer {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: none;
  display: flex;
  flex-direction: column;
  
  /* .container Overrides */
  padding: 2px;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.button {
  font-size: 2vw !important;
  cursor: pointer;
  pointer-events: auto !important;
}

#returnToStartButton {
}

#submitGuessButton {
  background-color: #14ce2a3c;
  opacity: 0;
}

.container {
  margin: 4px;
  padding: 8px;
  background-color: #ffffff3c;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 100000000;
  user-select: none;
  font-size: 1.2vw;
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out, opacity 0.2s ease-in-out, font-size 0.2s ease-in-out;
  pointer-events: none;
}

#pointsContainer {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.2vw;
}

#gameIDLabel {
  font-style: italic;
  color: #00000099;
  cursor: pointer;
  pointer-events: auto;
}

#scoreboardContainer {
  position: absolute;
  left: 0;
  top: 50%;
  font-size: 1.2vw;
  opacity: 0;
}

#scoreboard {
  width: 100%;
}

#timerContainer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#timerLabel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#skipButton {
  background-color: #d440133c;
}

/* Create Game page styling */
#createPage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  gap: 20px;
}

#createForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background-color: #ffffff3c;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#createForm .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#createForm button {
  align-self: flex-end;
  padding: 8px 16px;
  font-size: 1rem;
}

#creatingPage {
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px;
  background: linear-gradient(145deg, #eef7ff, #f8fbff 45%, #f4f0ff);
}

.creation-card {
  width: min(680px, 100%);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid rgba(35, 55, 90, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(35, 55, 90, 0.13);
}

.creation-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.creation-heading h1 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.creation-eyebrow {
  margin: 0;
  color: #50627a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.creation-spinner {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-width: 4px;
  border-top-color: #3159c7;
}

.creation-status {
  margin: 24px 0 12px;
  font-size: 1.12rem;
  font-weight: 600;
  color: #24344d;
}

.creation-status-ready {
  color: #187548;
}

.creation-status-error {
  color: #a12c2c;
}

.creation-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #50627a;
  font-size: 0.88rem;
}

.creation-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7f3;
}

.creation-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3159c7, #6b52d9);
  transition: width 300ms ease;
}

.creation-city-count {
  min-height: 1.2em;
  color: #50627a;
}

.creation-log-section {
  margin-top: 22px;
}

.creation-log-section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.creation-log {
  max-height: 280px;
  margin: 0;
  padding: 4px 0 4px 0;
  overflow-y: auto;
  list-style: none;
  border-top: 1px solid #e4e9f1;
}

.creation-log li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #e4e9f1;
  line-height: 1.35;
}

.creation-log time {
  color: #718198;
  font-variant-numeric: tabular-nums;
}

.creation-error-actions {
  margin-top: 22px;
}

.creation-action {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 6px;
  background: #3159c7;
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.spinner {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.regions-container {
  position: relative;
}

.regions-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.regions-search-row input {
  flex: 1;
}

.regions-search-row button {
  padding: 4px 8px;
  font-size: 0.8em;
  border: 1px solid #ccc;
  border-radius: 2px;
  background-color: white;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.regions-search-row button:hover {
  background-color: #f5f5f5;
}

.regions-checkboxes {
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  margin-top: 4px;
  width: 100%;
}

.region-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.region-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-main-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.region-population-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  padding: 4px 0;
}

.population-label {
  font-size: 0.9em;
  color: #666;
  min-width: 100px;
}

.population-input {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100px;
  font-size: 0.9em;
}

.region-item:last-child {
  border-bottom: none;
}

.region-main-row:hover {
  background-color: #f5f5f5;
}

.region-item input[type="checkbox"] {
  margin: 0;
}

.region-item.hidden {
  display: none;
}

.region-type {
  font-size: 0.8em;
  color: #666;
  margin-left: auto;
}
