@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

body {
  font-family: 'Orbitron', Arial, sans-serif;
  background-color: #121212;
  color: #eee;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #fdd835;
  text-shadow: 1px 1px 5px #000;
  border-bottom: 2px solid #fdd835;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#progress-bar-container {
  background-color: #333;
  border-radius: 10px;
  height: 20px;
  margin: 20px auto;
  width: 80%;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #66bb6a, #43a047);
  transition: width 0.3s;
}

#board-wrapper {
  display: grid;
  grid-template-columns: 80px 1fr;
  max-width: 1000px;
  margin: 30px auto;
}

#row-labels {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  text-align: right;
  padding-right: 10px;
  font-weight: bold;
  color: #90caf9;
  font-family: Arial, sans-serif;
}

#board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.field {
  background: linear-gradient(to bottom right, #4fc3f7, #1976d2);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  perspective: 1000px;
  color: #fff;
  font-weight: bold;
}

.field:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.answered {
  background: linear-gradient(to bottom right, #66bb6a, #388e3c) !important;
  cursor: default;
  position: relative;
}

.answered::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2em;
  color: #fff;
}

#modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#modal-content {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#scoreboard {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

input, textarea, button {
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
  font-family: Arial, sans-serif;
}

button {
  background-color: #03a9f4;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #0288d1;
}

ul#ranking {
  list-style: none;
  padding: 0;
}

ul#ranking li {
  background-color: #1e1e1e;
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  color: #90caf9;
  font-family: Arial, sans-serif;
}

#logout-button {
  position: absolute;
  top: 20px;
  right: 30px;
  background: linear-gradient(to right, #f44336, #d32f2f);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

#logout-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#flx-footer {
  text-align: center;
  margin-top: 40px;
  padding: 15px 0;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #333;
  background-color: #1a1a1a;
}
.field.wrong {
  background: linear-gradient(to bottom right, #9e9e9e, #616161); /* neutrales Grau */
  cursor: default;
  position: relative;
  opacity: 0.9;
}
.field.wrong::after {
  content: "✗";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2em;
  color: #fff;
}
/* Flash-Effekt */
.flash {
  animation: flashAnim 1s ease-in-out;
}

@keyframes flashAnim {
  0%   { box-shadow: 0 0 20px 5px #fff; transform: scale(1.1); }
  50%  { box-shadow: 0 0 30px 10px #fff; transform: scale(1.05); }
  100% { box-shadow: none; transform: scale(1.0); }
}


