/* style.css */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&family=Press+Start+2P&family=Major+Mono+Display&display=swap');

body {
    background: radial-gradient(circle at center, #000 0%, #1a1a1a 70%, #000 100%);
    color: #ffffff;
    font-family: 'Kode Mono', monospace;
    display: flex;
    /* Menghapus 'flex-direction: column' agar centering bekerja normal */
    justify-content: center; /* Centering horizontal */
    align-items: center;     /* Centering vertikal */
    min-height: 100vh;       /* Menggunakan min-height agar responsif */
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 187, 0, 0.2) 1px, transparent 1px);
    background-size: 5px 5px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none; /* <- penting: biarkan klik lewat */
}

.container {
    z-index: 1;
    padding: 20px;
}

h1, h2, h3, .header-main-text, 
.countdown-number, .ticket-header, 
.movie-title, .guest-name, .info-value {
    font-family: 'Kode Mono', monospace !important;
    font-weight: 700;
    letter-spacing: 2px;
}


h1 span {
    color: #ffc400;
    text-shadow: 0 0 15px #ffc400, 0 0 20px #ffc400;
}

.header-main-text {
    font-size: 2rem; /* sebelumnya 3rem */
    margin-top: 5px;
    text-shadow: 0 0 15px #ffc400, 0 0 25px #ffc400;
    font-family: 'Kode Mono', monospace;
    font-weight: 700;
    letter-spacing: 4px;
}


.subtitle {
    font-size: 1.2rem;              /* lebih besar */
    font-family: 'Kode Mono', monospace;  /* sama dengan judul */
    font-weight: 600;
    letter-spacing: 1px;            /* biar lebih panjang */
    color: #ffffff;                 /* merah */
    margin-top: 50px;
    margin-bottom: 0px;
}


.countdown-title {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1rem;
    text-shadow: 0 0 5px #ffc400;
    font-family: 'Press Start 2P', cursive;
}

.countdown {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.countdown-item {
    margin: 0 15px;
    padding: 15px 20px;
    border: 2px solid #ffc400;
    border-radius: 8px;
    box-shadow: 0 0 20px #ffc400;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.countdown-number {
    font-size: 2.5rem;
    font-family: 'Kode Mono', monospace;
    font-weight: 700;
    color: #ffc400;
    margin: 0;
}

.countdown-label {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
}


.claim-button {
    padding: 15px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #ffc400;
    background-color: transparent;
    border: 2px solid #ffc400;
    box-shadow: 0 0 15px #ffc400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-shadow: 0 0 5px #ffc400;
    display: inline-block;
    margin-top: 50px; /* 🔥 tambahin ini */
}

.claim-button:hover {
    background-color: #ffffff;
    color: #000;
    box-shadow: 0 0 25px #ffc400;
}

/* TICKET STYLING */
.ticket-container {
    max-width: 90%;     /* biar fleksibel di hp */
    width: 350px;       /* default desktop */
    padding: 20px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 25px rgba(51, 255, 238, 0.8), inset 0 0 15px rgba(51, 231, 255, 0.5);
    background: rgba(0, 0, 0, 0.85);
    text-align: center;
    border-radius: 12px;
    margin: 0 auto;
}

.ticket-header {
    font-size: 1.4rem;  /* memperkecil ukuran font */
    font-weight: 700;
    letter-spacing: 3px;
    color: #33e0ff;
    text-shadow: 0 0 10px #33ffff, 0 0 20px #33e0ff;
    margin: 0;
}

.ticket-subheader {
    font-size: 0.7rem;  /* memperkecil ukuran font */
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 5px;
    margin-bottom: 10px; /* Margin dikurangi */
}

.movie-section {
    border-top: 1px dashed rgba(51, 241, 255, 0.5);
    padding-top: 10px; /* Padding dikurangi */
    margin-top: 15px;  /* Margin dikurangi */
}

.guest-info, .admit-one {
    padding-top: 5px;
    margin-top: 10px;
}

/* Divider line */
.ticket-container hr {
    border: none;
    border-top: 1px solid #00ffff;
    opacity: 0.6;
    margin: 15px 0;
}

/* Movie Title */
.movie-title {
    font-size: 1rem; /* Ukuran teks diperkecil */
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 8px rgba(51, 197, 255, 0.7);
}

.movie-genre {
    font-size: 0.8rem;
    color: #508286;
    letter-spacing: 1.5px;
    margin: 5px 0 0;
    text-transform: uppercase;
}

/* Ticket Info */
/* Default (Umum) sudah biru) */
.u-ticket {
  border: 2px solid #00ffff;
  box-shadow: 0 0 25px rgba(51, 255, 238, 0.8), inset 0 0 15px rgba(51, 231, 255, 0.5);
}

.vip-ticket {
  border: 2px solid gold;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), inset 0 0 15px rgba(255, 215, 0, 0.6);
}

.vip-ticket .ticket-header {
  color: gold;
  text-shadow: 0 0 15px gold, 0 0 30px gold;
}

.vip-label {
  font-size: 3rem;
  font-weight: bold;
  color: gold;
  text-shadow: 0 0 5px gold, 0 0 40px gold, 0 0 05px gold;
  margin: 30px 0;
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    justify-content: center;
    align-items: start;
    gap: 10px 15px;
    text-align: center;
}

.info-value {
    font-size: 0.8rem;  /* Ukuran teks lebih kecil */
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 5px rgba(51, 231, 255, 0.7);
    margin: 0;
}

/* Guest Info */
.guest-info {
    padding-bottom: 10px; /* Padding dikurangi */
    margin-bottom: 10px;  /* Margin dikurangi */
}

.guest-label {
    font-size: 0.7rem;  /* Ukuran font lebih kecil */
    color: #8cfff9;
    letter-spacing: 1px;
    margin: 0;
}

.guest-name {
    font-size: 1rem;  /* Ukuran font lebih kecil */
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(51, 255, 255, 0.8);
}

.info-label {
    font-size: 0.7rem;  /* Ukuran font lebih kecil */
    font-weight: 600;
    color: #33e7ff;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.seat-info, .date-info, .studio-info {
    font-size: 0.8rem;  /* Ukuran font lebih kecil */
    color: #fff;
    margin-top: 10px;
}

.seat-info span, .date-info span, .studio-info span {
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
}

/* Barcode styling */
.barcode-container {
  text-align: center;
  margin-top: 1px;
}

.barcode-container img {
  display: inline-block;
  background: none !important;
}

.barcode-label {
    font-size: 0.1rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
}

.qr-code-container {
  position: relative;
  text-align: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  filter: blur(4px); /* Mengurangi intensitas blur */
  transition: filter 0.3s ease-in-out;
}

.qr-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1em; /* Ukuran font lebih kecil */
  color: rgb(41, 223, 255);
  font-weight: bold;
  z-index: 10;
  display: block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), -1px -1px 2px rgba(0, 0, 0, 0.7); /* Efek stroke pada teks */
}

#barcode-code {
  font-size: 0.5em; /* Ukuran font lebih kecil */
  color: white; /* Warna font putih agar kontras */
  letter-spacing: 1px;
  margin: 0;
  text-align: center; /* Posisikan teks di tengah */
  display: block;
}

.valid {
  background-color: #4CAF50;
}

.used {
  background-color: #f44336;
}

@media (max-width: 600px) {
  .qr-code {
    width: 150px;
    height: 150px;
  }
}

/* Admit One */
.admit-one {
    font-size: 0.5rem;
    color: #fff;
    letter-spacing: 1.5px;
}

.admit-one p {
    margin: 4px 0;
}

#greeting-title {
    font-family: 'Kode Mono', monospace;
    font-size: 3rem; /* lebih besar */
    font-weight: 700;
    letter-spacing: 6px; /* bikin lebih panjang */
    color: #ffffff;
    text-shadow: 0 0 10px #ffc400, 0 0 20px #ffc400, 0 0 40px #ffc400;
    margin-bottom: 20px;
}
#greeting-title span {
    color: #ffc400;
    font-weight: 700;
    text-shadow: 0 0 15px #ffc400, 0 0 30px #ffc400, 0 0 50px #ffc400;
}
/* Responsif untuk layar kecil (HP) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    #greeting-title {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
        line-height: 1.3 !important;
        max-width: 90% !important;   /* biar teks muat di layar */
        margin: 0 auto 15px auto;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
    }

    #greeting-title span {
        display: inline-block;       /* biar bisa turun baris */
        font-size: inherit !important;
        letter-spacing: inherit !important;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-top: 10px;
        padding: 0 8px;
    }

    .header-main-text {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        line-height: 1.2 !important;
        padding: 0 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 8px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 6px;
    }

    .countdown-number {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .claim-button {
        font-size: 0.7rem;
        padding: 10px 15px;
        margin-top: 20px;
        display: block;
        width: 100%;
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* FORMULIR */
.form-container {
  position: relative; /* supaya z-index berlaku */
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px #ffc400;
  width: 300px;
  text-align: center;
  pointer-events: auto;
}

/* pastikan pseudo-element overlay tidak menangkap pointer */
body::before {
  pointer-events: none;
}

/* Pastikan tombol punya pointer events */
#submitBtn, .form-container button {
  pointer-events: auto;
}

.form-container h2 {
  font-size: 20px;       /* turunin dari default besar */
  margin-bottom: 20px;   /* kasih jarak ke bawah */
  line-height: 1.4;      /* biar lebih rapi saat 2 baris */
  color: #fff;
  text-align: center;
}

.form-container input {
  background: rgba(0,0,0,0.6);
  color: #fff;
}

.form-container input:focus {
  outline: none;
  border-color: #ffea00;
  box-shadow: 0 0 5px #ffea00;
}

label {
  font-size: 1.2rem;
  margin-top: 10px;
  display: block;
  color: #fff;
}

input {
  background-color: transparent;
  border: 2px solid #ffc400;
  color: #ffc400;
  font-size: 1rem;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  margin-top: 5px;
  outline: none;
}

input:focus {
  border-color: #fff;
  box-shadow: 0 0 5px #fff;
}

button {
  background-color: transparent;
  border: 2px solid #ffc400;
  color: #ffc400;
  padding: 12px 20px;
  font-size: 1rem;
  margin-top: 20px;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #ffc400;
  color: #000;
  box-shadow: 0 0 10px #ffc400;
}

/* Terapkan ke semua elemen supaya ukuran lebih rapi */
* {
  box-sizing: border-box;
}

/* Atau kalau mau spesifik hanya untuk input dan tombol */
.form-container input,
.form-container button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ffc400;
  font-size: 16px;
  box-sizing: border-box; /* <- ini penting */
}



