/* 🎨 Grundlayout */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-image: url("resources/rasberrypi.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* 🔝 Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 12px 0;
  z-index: 100;
  text-align: center;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 30px;
}

.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: #ff0051b0;
}

/* 🔚 Footer */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  z-index: 50;
}

/* 📦 Allgemeine Box */
.centered-box {
  background: rgba(9, 8, 8, 0.708);
  color: rgb(252, 250, 250);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 300px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* 📦 Passwort-Feld */
.centered-box-passwort {
  background: rgba(9, 8, 8, 0.842);
  color: rgb(252, 250, 250);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 900px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.centered-box-passwort button {
  background-color: #ff004cae;
  padding: 10px 20px;
  margin-top: 15px;
  text-align: center;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: auto;
  display: inline-block;
}

/* 📦 PI-Wahl Box */
.centered-box-piwahl {
  background: rgba(9, 8, 8, 0.708);
  color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 600px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* 📝 Titel Pi-Wahl */
.pi-title {
  color: white;
  margin-bottom: 20px;
  font-size: 1.4rem;
  text-shadow: 1px 1px 2px black;
}

/* 📜 Pi Auswahl Liste */
.pi-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* 🍓 Pi-Karte */
.pi-card {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
}

.pi-card img {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 💖 Hover Effekt für Pi */
.pi-card:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* 🧾 Inputs & Buttons */
input {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border: 1px solid #f5efef;
  border-radius: 8px;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border: none;
  background-color: #ff004cae;
  color: rgba(30, 26, 26, 0.639);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #f5f6f8b3;
}

/* ❌ Fehleranzeige */
.error {
  color: red;
  margin-top: 10px;
}

/* 🫥 Versteckt */
.hidden {
  display: none;
}
