@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;
}

/* Back Button */
.back-button {
  text-align: left;
  margin: 1rem 0;
}

.back-link {
  display: inline-block;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* ===== FRONTPAGE STYLES ===== */

body.frontpage {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 0;
  max-width: none;
  margin: 0;
  overflow-x: hidden;
}

body.frontpage *,
body.frontpage *::before,
body.frontpage *::after {
  box-sizing: border-box;
}

/* ===== MAIN HEADER ===== */
.main-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
}

.header-left:hover {
  text-decoration: none;
}

.header-bear {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
  animation: bearFloat 3s ease-in-out infinite;
}

@keyframes bearFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

.header-text {
  color: white;
  display: block;
}

.header-title {
  display: block;
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.header-subtitle {
  display: block;
  font-size: 1.1rem;
  margin: 0.4rem 0 0 0;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-cta-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(255,107,107,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.header-cta-button:hover::before {
  left: 100%;
}

.header-cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255,107,107,0.6);
  background: linear-gradient(45deg, #ff5252, #ff7043);
}

.header-cta-button .cta-text {
  margin-right: 0.8rem;
}

.header-cta-button .cta-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.header-cta-button:hover .cta-arrow {
  transform: translateX(3px);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.main-title {
  font-size: 3.5rem;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

@keyframes titleGlow {
  from {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3);
  }
  to {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.6);
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  margin: 0;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== EPIC PHOTO GALLERY - NO CROPPING, FULL EPIC DISPLAY ===== */
.photo-gallery {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.photo-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  animation: epicBackground 20s ease-in-out infinite;
}

@keyframes epicBackground {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gallery-container h2 {
  text-align: center;
  font-size: 4rem;
  color: #fff;
  margin-bottom: 4rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

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

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.photo-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.04);
  aspect-ratio: 1 / 1;
}

.gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.photo-item:hover .gallery-photo {
  transform: scale(1.06);
}

.photo-item:hover::after {
  opacity: 1;
}

/* CTA Section */
.cta-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: sparkle 10s linear infinite;
}

@keyframes sparkle {
  0% { transform: rotate(0deg) translateX(-50px); }
  100% { transform: rotate(360deg) translateX(-50px); }
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-container p {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  color: white;
  text-decoration: none;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  background: linear-gradient(45deg, #ff5252, #ff7043);
}

.cta-text {
  margin-right: 1rem;
}

.cta-arrow {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

/* Info Section */
.info-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #e8f2ff 0%, #f0f8ff 100%);
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
}

.info-container h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: #667eea;
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.info-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin: 0 0 1rem 0;
}

.info-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== SIMPLE RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .header-title {
    font-size: 2rem;
  }
  
  .header-bear {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 768px) {
  .main-header {
    padding: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .header-left {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-title {
    font-size: 1.8rem;
  }
  
  .header-bear {
    width: 50px;
    height: 50px;
  }
  
  .header-cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .photo-gallery {
    padding: 4rem 1rem;
  }
  
  .gallery-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .cta-container h2 {
    font-size: 2rem;
  }
  
  .cta-button {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .photo-gallery,
  .cta-section,
  .info-section {
    padding: 2rem 1rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .gallery-container h2 {
    font-size: 2rem;
  }
  
  .photo-grid {
    gap: 0.5rem;
  }

  .cta-container h2,
  .info-container h2 {
    font-size: 1.8rem;
  }
}

/* Large screens */
@media screen and (min-width: 1600px) {
  .gallery-container {
    max-width: 1600px;
  }
}

/* ===== HERO DOPLŇKY ===== */
.hero-badge {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 1.25rem 0;
  padding: 0.5rem 1.1rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 1.1rem 2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.ghost-button:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-button--light {
  background: #fff;
  color: #ee5a24;
}

.cta-button--light:hover {
  background: #fff;
  color: #d8431a;
}

/* ===== PATIČKA ===== */
.main-footer {
  background: #0f0f23;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

.footer-links {
  margin: 0 0 0.75rem 0;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #4ecdc4;
}

.footer-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

