* {
  box-sizing: border-box;
}

body {
  margin:0;
  font-family:'Segoe UI', sans-serif;
  background:#f4f4f4;
  font-size:16px;
}

header {
  background: #000;
  color: white;
  padding: 15px;
  text-align: center;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

button {
  background: #ffcc00;
  color: black;
  font-weight:bold;
  padding: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 20px;
}

.gallery {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:15px;
  width:100%;
  align-items:start;
}

.gallery img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor:pointer;
}

.gallery img:hover {
  transform:scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-title {
  text-align:center;
  font-size:42px;
  margin:80px 0 40px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  background: #111;
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.admin-bar a {
  color: #00c3ff;
  text-decoration: none;
  margin-left: 10px;
}

.admin-bar a:hover {
  text-decoration: underline;
}

.export-btn {
  background: #28a745;
  color: white !important;
  padding: 8px 12px;
  border-radius: 6px;
}

.hidden-field {
  display:none;
}

/* FORMULARZ */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.signup-form {
  width:100%;
  }

form input[type="text"],
form input[type="email"] {
  width: 100%;
  max-width: 100%;
  padding: 18px;            /* 🔥 większe */
  font-size: 20px;          /* 🔥 większe */
  border-radius: 10px;      /* 🔥 ładniejsze */
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: 0.2s;
}

form input:focus {
  border: 1px solid #1faa00;
  outline: none;
}

/* checkbox + tekst */
form label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;          /* 🔥 większe */
}

/* przycisk */
form button {
  width: 100%;              /* 🔥 pełna szerokość */
  padding: 18px;
  font-size: 20px;
  margin-top: 10px;
  border-radius: 10px;
}

/* WIĘKSZE TEKSTY */

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

.title {
  text-align: center;
  font-size: 42px;
  font-weight: bold;
}

.cinematic-hero {
	position: relative;
	min-height: 720px;
	background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.92) 15%,
      rgba(0,0,0,0.72) 50%,
      rgba(0,0,0,0.92) 100%
    ),
    url('images/cinematic-bg.jpg');

  background-size: cover;
  background-position: center;
  padding: 80px 40px;
  display:flex;
  align-items:center;	
}

.cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 70px;
  align-items: center;
}

.cinematic-info {
  color: white;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.cinematic-info h2 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 800;
}

.cinematic-info p {
  font-size: 22px;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 35px;
}

.cinematic-buttons {
  display: flex;
  gap: 20px;
}

.cinematic-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 15px 50px rgba(0,0,0,0.7);
  display:block;
}

.cinematic-poster {
  width:100%;
  max-width:420px;
}

.btn-primary {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 18px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.signup-section {
  background:#0d0d0d;
  padding:80px 20px;
}

.signup-grid {
  max-width:1400px;
  margin:auto;

  display:grid;
  grid-template-columns: 420px 1fr;
  gap:60px;
  align-items:start;
}

.signup-info {
  color:white;
}

.signup-info h2 {
  font-size:48px;
  margin-bottom:20px;
}

.signup-info p {
  color:#ccc;
  font-size:20px;
  line-height:1.7;
}

.small-title {
  color:#d4af37;
  letter-spacing:2px;
  margin-bottom:15px;
  font-size:14px;
}

.signup-form form {
  background:white;
  padding:28px;
  border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,0.4);
}

#countdown {
  font-size: inherit;
  font-weight: inherit;
  color: #ffcc00;
  margin-left: 10px;
  opacity: 0.9;
}

/* WIĘKSZE POLA NA KOMPUTERZE */
@media (min-width: 768px) {
	.signup-form form {
    max-width: 100%;
    margin: 0;
  }

  form input[type="text"],
  form input[type="email"] {
    padding: 16px;
    font-size: 18px;
  }

  form label {
    font-size: 18px;
  }

  form button {
    padding: 16px;
    font-size: 18px;
  }

}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
  }
  
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 24px;
  }
  
	  .signup-form form {
	  padding: 20px;
	}

	form input[type="text"],
	form input[type="email"] {
	  padding: 14px;
	  font-size: 16px;
	}

	form button {
	  padding: 14px;
	  font-size: 16px;
	}

	.signup-info h2 {
	  font-size: 32px;
	}

	.signup-info p {
	  font-size: 16px;
	}
  .signup-section {
  padding: 50px 15px;
}
	.scanner-box,
 	 #reader,
  	.scan-result {
    width: 100%;
    max-width: 360px;
  }
	  #reader video {
    height: 360px !important;
  }
  
}

.success {
  background: green;
  color: white;
  padding: 10px;
}

.error {
  background: red;
  color: white;
  padding: 10px;
}

/* ===== INFO O WYDARZENIU ===== */

.event-details {
  background: #111;
  padding: 35px 20px;
}

.details-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  color: white;
}

.detail-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}

.icon {
  font-size: 28px;
}

.detail-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-card p {
  margin: 0;
  font-size: 17px;
  color: white;
  font-weight: 600;
}

.places-counter {
  margin-top: 20px;
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.places-counter strong {
  color: #ffcc00;
}

.tickets-box {
  margin-top: 10px;
}

.tickets-label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.tickets-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tickets-selector button {
  width: 60px;
  height: 60px;
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
  border-radius: 12px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.tickets-selector button:hover {
  background: #3a3a3a;
}

.tickets-selector input {
  width: 80px;
  height: 60px;
  border: 1px solid #444;
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  background: white;
}

/* Chrome, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* TELEFON */

@media (max-width: 900px) {

  .cinematic-hero {
    overflow-x: hidden;
  }

  .cinematic-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;

    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .cinematic-poster {
    margin: 0 auto;
    max-width: 300px;
  }

  .cinematic-info {
    margin: 0 auto;
    text-align: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cinematic-info h2 {
    font-size: 34px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .cinematic-info p {
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .alert-info {
    width: 100%;
    max-width: 100%;
  }

  .signup-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .signup-info {
    text-align: center;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .detail-card {
    justify-content: flex-start;
  }

  .detail-card p {
    font-size: 16px;
  }
}

/* ===== SKANER QR ===== */

.scanner-box {
  width: 420px;
  margin: 30px auto;
  text-align: center;
}

#reader {
  width: 420px !important;
}

#reader video {
  width: 100% !important;
  height: 420px !important;
  object-fit: cover !important;
}

.scan-result {
  width: 420px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  background: #111;
  color: white;
  border-radius: 15px;
  white-space: pre-line;
  text-align: center;
}

#reader {
  background: transparent !important;
  border: none !important;
}

#reader > div {
  background: transparent !important;
  border: none !important;
}

#reader__dashboard {
  background: transparent !important;
}

#reader__scan_region {
  background: transparent !important;
  padding: 0 !important;
}

#reader__scan_region video {
  display: block !important;
  margin: 0 auto !important;
  border-radius: 12px;
}

#reader button,
#reader select {
  margin-top: 10px;
}

/* ===== EDYCJA UCZESTNIKA ===== */
/* ===== EDYCJA UCZESTNIKA ===== */

.edit-user {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;

  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.edit-user h2 {
  text-align: center;
  margin-bottom: 35px;
}

.edit-user form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edit-user label {
  font-weight: bold;
  font-size: 16px;
}

.edit-user input {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.edit-user button {
  margin-top: 10px;
}

.edit-user a {
  display: inline-block;
  margin-top: 25px;
}

@media (max-width: 768px) {
  .edit-user {
    margin: 20px;
    padding: 25px;
  }
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.alert-info {
  width: 100%;
  max-width: 100%;

  margin: 0 0 30px 0;
  padding: 10px 14px;

  box-sizing: border-box;

  background: darkgoldenrod;
  color: white;

  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;

  text-align: center;
  border-radius: 6px;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.alert-info del {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .alert-info {
    font-size: 18px;
    padding: 8px 10px;
  }
}



.cinematic-hero,
.cinematic-content,
.cinematic-info {
  max-width: 100%;
  overflow-x: hidden;
}

.cinematic-info h2,
.cinematic-info p,
.alert-info {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== STRONA POTWIERDZENIA REZERWACJI ===== */

.ticket-page {
  min-height: 100vh;
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 15px;
  box-sizing: border-box;
}

.ticket-card {
  max-width: 520px;
  width: 100%;
  background: white;
  padding: 35px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0,0,0,0.35);
}

.ticket-card h1 {
  font-size: 30px;
  margin: 0 0 20px;
}

.ticket-name {
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
}

.ticket-qr {
  width: 260px;
  max-width: 100%;
  margin: 20px auto;
  display: block;
}

.ticket-info {
  color: #555;
  font-size: 16px;
  margin-bottom: 25px;
}

.ticket-button {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.ticket-info-main {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .ticket-card {
    padding: 25px;
  }

  .ticket-card h1 {
    font-size: 24px;
  }

  .ticket-name {
    font-size: 20px;
  }
}

.ticket-info-main {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  margin: 20px 0;
}

.places-counter.green{
    background:#2e7d32;
    color:#fff;
}

.places-counter.orange{
    background:#ef6c00;
    color:#fff;
}

.places-counter.red{
    background:#c62828;
    color:#fff;
}

.places-counter.black{
    background:#444;
    color:#fff;
}