@font-face {
  font-family: 'MinecraftRegular';
  src: url('/static/fonts/minecraft-regular-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.unclickable-link {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

/* Milchiger Kasten */
.box {
  background: rgba(200, 200, 200, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
  padding: 20px;

  flex: 1;
  min-width: 400px;

  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikal zentrieren */
  align-items: center;     /* horizontal zentrieren */
}

/* Container Hauptbereich */
.main-content {
  display: flex;
  gap: 20px;
  padding: 40px;
  justify-content: center;
  align-items: stretch; /* Kästen gleich hoch */
}

.box iframe {
  max-width: 100%;
  max-height: 100%;
  border: none;
  flex-shrink: 0;
}

/* Spielerstatistik-Box */
#stats {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'MinecraftRegular', Arial, sans-serif;
  color: #ffd700;
  font-size: 25px;
  text-align: center;
  margin-top: 0;
}

#stats h2 {
  margin-bottom: 15px;
  color: #00ffff;
}

#popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 200, 200, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 12px;
}

/* Popup-Box */
#popup {
  background: rgba(255 255 255 / 0.95);
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.15);
  width: 280px;
  max-width: 90%;
  text-align: center;
}

#popup h2 {
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

#popup input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

#popup input[type="text"]:focus {
  border-color: #39a1f6;
  outline: none;
}

#popup button {
  margin-top: 20px;
  padding: 10px 24px;
  background-color: #39a1f6;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

#popup button:hover {
  background-color: #1e6fcc;
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    padding: 20px;
  }

  .box {
    min-width: auto !important;
    margin-bottom: 20px;
  }
}
