﻿body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* --- Game Overlay: Blockiert alles dahinter! --- */
#gameOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameOverlayContent {
	position: relative;
	width: 95vw;
	height: 95vh;
	max-width: 1200px;
	max-height: 95vh;
	background: rgba(34, 34, 34, 0);
	border-radius: 18px;
	box-shadow: 0 0 80px #0000;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}

#bubbleArea {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.falling-img {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
}

#scoreDisplay {
	z-index: 3;
	color: #686868;
	margin: 20px auto 10px auto;
	background: rgba(0,0,0,0.4);
	border-radius: 10px;
	padding: 7px 21px;
	font-weight: bold;
}

/* --- Highscore-Button und Popup immer sichtbar, nie im Overlay! --- */
#openHighscoreBtn {
	position: fixed;
	bottom: 24px;
	right: 28px;
	font-size: 1.5em;
	background: #2220;
	border: 2px solid #F000;
	color: #FF0505;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	cursor: pointer;
	z-index: 10001;
	box-shadow: 0 2px 12px #0000;
	transition: background 0.2s, color 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
#openHighscoreBtn:hover {
  background: #ff0000;
  color: #222;
}

#highscorePopup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 300px;
	min-width: 220px;
	max-width: 90vw;
	background: rgba(34, 34, 34, 0);
	color: white;
	padding: 18px 18px 18px 18px;
	border-radius: 12px;
	z-index: 10002;
	box-shadow: 0 0 24px #000;
	transform: translate(-50%, -50%);
}
#highscorePopup.active { display: block; }

#highscorePopup .popup-content {
  position: relative;
}
#closeHighscoreBtn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 2px 6px;
}
#closeHighscoreBtn:hover { color: red; }
ol#highscoreList {
  padding-left: 18px;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  font-size: 1.05em;
}
ol#highscoreList li {
  margin-bottom: 4px;
  font-weight: bold;
  color: #eee;
}
#loadingMsg,
#errorMsg {
  font-size: 0.95em;
  margin-top: 10px;
}

/* Namens-Overlay und Countdown-Overlay */
#nameOverlay, #spielDelayOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
#nameOverlay label,
#nameOverlay div {
  color: #FFD700;
}
#nameOverlay label {
  font-size: 2em;
  margin-bottom: 20px;
}
#nameOverlay input {
  font-size: 2em;
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  margin-bottom: 30px;
}
#nameOverlay div {
  font-size: 2em;
}

#spielDelayOverlay {
  font-size: 3em;
  color: #FFD700;
  z-index: 10001;
}