:root {
  --accentColor: #007bff;
}

/* Allgemeine Stile */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}

h1 {
  text-align: center;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Stile für das Leaderboard */
#leaderboardTable {
  width: 100%;
  margin: 0px auto;
  border-collapse: collapse;
}

thead {
  border-bottom: 2px solid gray;
}

#leaderboardTable th,
#leaderboardTable td {
  padding: 10px;
  border: 1px solid #ddd;
  border-inline: none;
  border-top: none;
}

#leaderboardTable th {
  text-align: left;
}

#leaderboardTable tbody tr:hover {
  background-color: color-mix(in srgb, var(--accentColor) 20%, transparent);
}

.card {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  margin: 20px;
  background: r;
  padding: 20px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

/* Formular-Stil */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#upload-card.dragging {
  animation: blink 1s ease;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes blink {
  from {
    border-color: transparent;
    box-shadow: 0 0 40px 4px inset transparent;
  }

  to {
    border-color: var(--accentColor);
    box-shadow: 0 0 40px 4px inset var(--accentColor);
  }
}

/* Stil für das Eingabefeld für den Teamnamen */
.input-container {
  position: relative;
  margin-top: 30px;
  margin-bottom: 10px;
}

input[type="password"] {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Stil für das Floating Label */
.label {
  position: absolute;
  font-size: small;
  inset: 0;
  padding: 10px;
  transition: transform 0.3s, font-size 0.3s, color 0.3s;
  pointer-events: none;
  color: #888;
  transform-origin: 0 0;
}

input[type="password"]:focus {
  border-color: var(--accentColor);
}

input[type="password"]:focus+.label,
input[type="password"]:not(:placeholder-shown)+.label {
  transform: translateY(-25px);
  font-size: 11px;
  color: var(--accentColor);
}

/* Stil für den Upload-Button */
button[type="submit"]:not(.disabled) {
  cursor: pointer;
  color: #fff;
  background-color: var(--accentColor);
}

button[type="submit"] {
  padding: 10px 20px;
  border: none;
  color: grey;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Hover-Effekt für den Upload-Button */
button[type="submit"]:not(.disabled):hover {
  background-color: #0056b3;
}

#infobox {
  display: none;
  align-items: center;
  background-color: greenyellow;
}

#infobox.show {
  display: flex;
}

#infobox.error {
  background-color: red;
}

#infobox::before {
  content: "🛈";
  font-size: 2em;
  line-height: 0;
  margin-inline-end: 10px;
}

#infotext {
  margin: 0;
}

#close-info-button {
  cursor: pointer;
  margin-left: auto;
  border-radius: 50%;
  border: none;
  padding: 7px;
  width: 30px;
  aspect-ratio: 1;
  background: none;
  font-size: 20px;
  line-height: 0;
}

#string-list-container {
  text-align: center;
  margin-top: 20px;
}

#string-list-container h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

#string-list {
  list-style: none;
  padding: 0;
  font-weight: initial;
}

#string-list li {
  margin-bottom: 5px;
  font-size: 14px;
}

#moreInfo:hover #hintContent {
  display: block;
}

#moreInfo #hintContent {
  display: none;
}

#hint {
  aspect-ratio: 1;
  width: 25px;
  padding: 5px;
  border-radius: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  position: absolute;
  right: 0;
  top: 0;
  margin: 20px;
}

#hintContent {
  right: 0;
  top: 0;
  z-index: 5;
  position: absolute;
}

#countdown{
  font-size: xx-large;
  text-align: center;
  min-height: 1em;
  font-family: monospace;
}