body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
  background-image: url("assets/index/indexbackground.png"); /* dein Bild */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* This line prevents the background from scrolling */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center; /* vertikal zentriert */
  padding-bottom:250px;

}

.tile-container {
  display: flex;
  flex-direction:column ;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 60px;
  margin-left: 100px;
  margin-right: 100px;
  margin-bottom: 100px;
}

/* === Wächterkarte === */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(245, 245, 245, 0.05);
  padding: 20px 16px 24px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(100, 255, 180, 0.15);
  transition: transform 0.3s ease, box-shadow 0.5s ease;
  backdrop-filter: blur(4px);
}

.tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 40px rgba(100, 255, 180, 0.3);
}

.tile img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 10px;
  z-index: 2;
}

.tile span {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  margin-bottom: 0;
}

.answer-input {
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(100, 255, 180, 0.2);
  width: 100%;
  max-width: 140px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.06);
  color: #dfffe0;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 6px rgba(100, 255, 180, 0.15); /* leicht mystisch grün */
}

.answer-input.correct {
  background-color: rgba(100, 255, 180, 0.12);
  box-shadow: 0 0 14px rgba(100, 255, 180, 0.6);
  border-color: rgba(100, 255, 180, 0.6);
  color: #eaffea;
}

.answer-input.wrong {
  background-color: rgba(255, 100, 100, 0.08);
  box-shadow: 0 0 12px rgba(255, 100, 100, 0.5);
  border-color: rgba(255, 100, 100, 0.4);
  color: #ffecec;
}


/* === Finalcode dramatisch anzeigen === */
#final-code {
  display: none;
  margin-top: 60px;
  font-size: 2.5rem;
  color: #9effd0;
  text-shadow: 0 0 15px rgba(100, 255, 180, 0.8),
               0 0 30px rgba(255, 255, 255, 0.4);
  animation: glow 1.5s ease-in-out infinite alternate;
}

/* Glüh-Effekt */
@keyframes glow {
  from {
    text-shadow: 0 0 15px rgba(100, 255, 180, 0.5),
                 0 0 30px rgba(255, 255, 255, 0.2);
  }
  to {
    text-shadow: 0 0 30px rgba(100, 255, 180, 1),
                 0 0 60px rgba(255, 255, 255, 0.5);
  }
}

.credits-button {
  display: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-family: 'Cinzel', serif;
  color: white;
  background-color: rgba(255, 215, 0, 0.1);
  border: 2px solid gold;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.credits-button:hover {
  background-color: gold;
  color: black;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

span.card-number{
  font-size: 20rem;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.answer-input{
  display:none;
}


