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;
}

.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;
}
