/*body {
  margin: 0;
  height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f4f4;
  color: #222;
}*/

body {
  margin: 0;
  height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('img/beach_world.jpg') no-repeat center center fixed;
  background-size: cover;
}

#counter {
  font-size: 3rem;
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input {
  font-size: 1rem;
  padding: 0.6rem;
  width: 220px;
  margin-bottom: 2rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

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

/* Farben */
.start {
  background: #2ecc71;
  color: white;
}

.pause {
  background: #e0e0e0;
  color: #333;
}

.stop {
  background: #e74c3c;
  color: white;
}

.container {
  text-align: center;
  background: white;
  padding: 4rem 4rem; /* more top padding */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative; /* needed for absolute message positioning */
}

.wrapper {
  position: relative; /* reference for the message */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px; /* optional: space from page top */
}

#message {
  position: absolute;        /* relative to wrapper */
  bottom: 100%;              /* just above container */
  margin-bottom: 60px;       /* ↑ increase this for more space */
  background: #ffffffdd;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #222;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  text-align: center;
  transform: translateY(-10px); /* start slightly above */
  z-index: 10;
}

#message.show {
  opacity: 1;
  transform: translateY(0); /* slide down into view */
}

.seal {
  position: absolute;
  width: 48px;   /* match your pixel images */
  height: 48px;
  pointer-events: none; /* clicks pass through */
  user-select: none;
}

#background {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.6s ease;
}

.wrapper {
  position: relative;
  z-index: 2;
}

select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-aligned */
  margin-top: 2rem;      /* space from counter */
}

.background-control {
  margin-top: 1.2rem; /* space above background selector */
  text-align: right;
}

.background-control label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #555;
}

.background-control select {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}