@font-face {
  font-family: 'ComicSansMS';
  src: url('fonts/ComicSansMS.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body, html{
  margin: 0;
}

body {
  font-family: 'ComicSansMS', cursive, sans-serif;
  background: linear-gradient(145deg, #ffffff, #d6f0ff);
  color: #333;
  padding: 1em;
  max-width: 900px;
  margin: auto;
  min-height: 100vh;
}

h1 {
  text-align: center;
  font-size: 2em;
  color: #a000a0;
  text-shadow: 1px 1px #fff;
}

form {
  background: #f0faff;
  border: 3px dashed #cc00ff;
  border-radius: 20px;
  padding: 2em;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  border-radius: 10px;
  border: 2px solid #a0d8ff;
  font-family: inherit;
}

/* ⬇️ Nové pro přehledné zarovnání checkboxů a radií vedle labelu */
input[type="checkbox"],
input[type="radio"] {
  margin-right: 0.5em;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  font-weight: normal;
  cursor: pointer;
  margin-right: 1em;
}

/* Pokud je skupina možností, odsadíme */
.options-group {
  margin-top: 0.5em;
}

.hidden {
  display: none;
}

button {
  margin-top: 2em;
  background: #a000a0;
  color: white;
  padding: 1em;
  width: 100%;
  border: none;
  border-radius: 15px;
  font-size: 1.2em;
  cursor: pointer;
}

button:hover {
  background: #cc00cc;
}

@media screen and (max-width: 600px) {
  body {
    padding: 0.5em;
  }

  form {
    padding: 1em;
  }

  button {
    font-size: 1em;
    padding: 0.8em;
  }
}

a {
  color: #a000a0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

a:hover {
  color: #cc00cc;
  text-shadow: 1px 1px 2px rgba(160, 0, 160, 0.3);
  text-decoration: underline;
}

.decor-notes {
  text-align: center;
  margin: 1em auto 0.5em;
  animation: fadeIn 1.2s ease-out forwards;
  opacity: 0;
  position: relative;
  max-width: 100%;
}

.decor-notes img {
  width: 80px;
  filter: drop-shadow(0 0 4px #ff00ff);
  animation: pulse 2s infinite ease-in-out, glowSpin 6s infinite linear;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

/* Laserové proužky kolem notičky */
.decor-notes::before,
.decor-notes::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #ff00ff, #00ffff, #ff00ff);
  border-radius: 2px;
  animation: laserMove 2.5s infinite ease-in-out;
  opacity: 0.6;
}

.decor-notes::before {
  top: -10px;
}
.decor-notes::after {
  bottom: -10px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px #ff00ff);
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #00ffff);
  }
}

@keyframes glowSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes laserMove {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(-50%) scaleX(0.6);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.3);
  }
}


body.confirm {
  background: radial-gradient(circle at center, #ffe6ff, #d0f0ff, #ffffff);
  animation: backgroundFlash 15s infinite linear;
}

h1 {
  animation: glowText 2s infinite alternate;
}

#qrImage {
  animation: floatQR 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #ff00ff);
}

button.button {
  background: linear-gradient(45deg, #cc00ff, #00ffff);
  border-radius: 20px;
  box-shadow: 0 0 15px #ff00ff;
  animation: pulseBtn 1.8s infinite;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
}

button.button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ffff;
}

/* Animace */
@keyframes glowText {
  from {
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #cc00cc;
  }
  to {
    text-shadow: 0 0 15px #00ffff, 0 0 20px #ff00ff;
  }
}

@keyframes pulseBtn {
  0%, 100% {
    box-shadow: 0 0 10px #ff00ff;
  }
  50% {
    box-shadow: 0 0 25px #00ffff;
  }
}

@keyframes floatQR {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes backgroundFlash {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes stageFlash {
  0% { background-color: transparent; }
  50% { background-color: rgba(255, 0, 255, 0.05); }
  100% { background-color: transparent; }
}


.ucastnik {
  background: #f0faff;
  border: 2px dashed #a000a0;
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 1em;
  transition: background 0.3s ease;
}

.ucastnik.open {
  background: #ffeaff;
}

.ucastnik h3 {
  margin: 0;
  font-size: 1.2em;
  cursor: pointer;
  color: #a000a0;
}

.ucastnik .detaily {
  margin-top: 1em;
}

.label-row {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

@media screen and (max-width: 600px) {
  .label-row {
    flex-direction: column;
  }
}

.ucastnik[data-organizator="1"] {
    border-left-color: #ffa500 !important;
    box-shadow: 0 0 4px #ffa500;
}

