:root {
    --primary: #00ff88;
    --primary-dark: #00c78c;
    --danger: #ff5555;
    --bg-dark: #111;
    --bg-light: #fff;
    --accent-yellow: #f8e825;
    --overlay: rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --text-light: #fff;
    --text-muted: #bbb;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    /* font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif !important; */
}


body {
    font-family: "Segoe UI", sans-serif !important;
    background-color: #11120D !important;
    background-size: cover;
    color: var(--text-light);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* padding: 16px 0px; */
    margin: 0;
    overflow-x: hidden;
    padding-bottom: 50px;
}

.main-content {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within main-content */
    padding-bottom: 50px;
    padding-left: 80px;
    padding-top: 70px;
}

/* Header Flex Layout */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 20px;
}

.header-flex .logo {
  height: 80px;
  width: auto;
  max-width: 100%;
}


/* .event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: start;
    padding: 10px;
} */



.event-card-name {
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    background: #f9f9f9;
    color: #333;
    border-top: 1px solid #eee;
}


.header-flex .instansi-title {
  font-family: 'Great Vibes', cursive;
  font-size: 56px;
  color: #a7a7a6;
  margin: 0;
}


img.logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

h2 {
    color: rgb(169, 162, 162);
    text-align: center;
    font-size: 24px;
    margin: 10px 0 12px;
}

/* Camera Container */
.container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  /* background: var(--overlay); */
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  justify-items: center;
  align-items: center;
}

#videoInput {
  transform: scaleX(-1);
  z-index: 1;

}

video,
canvas {
  width: auto; /* Use intrinsic width */
  height: 80vh; /* Use intrinsic height */
  max-width: 100%; /* Ensure it doesn't exceed container */
  max-height: 80vh; /* Ensure it doesn't exceed container */
  object-fit: contain; /* Preserve aspect ratio without cropping */
  object-position: center center;
  /* top: 0; */
  /* left: 0; */
  /* transform: translate(-50%, -50%); */
  border-radius: var(--border-radius);

}

video {

    position: relative;
    border: 4px solid #343431;
    z-index: 1;
}

canvas {
    position: absolute;
    top: 0;
    /* background: #007bff; */
    z-index: 2;
    pointer-events: none;
}


  #eventFilter {
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    min-width: 200px;
    transition: all 0.3s ease;
  }

  #eventFilter:focus {
    outline: none;
    border-color: #00c78c;
    background-color: #fff;
  }



/* Button */
#startScanButton {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), #009f6b);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    display: none !important;
}

button.loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Global Loader */
.overlay-loader {
  position: fixed;
  z-index: 999;
  background: rgba(255, 255, 255, 0.8);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay-loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #444;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.overlay-loader span {
  margin-top: 12px;
  font-weight: bold;
  color: #333;
}

/* Snackbar */
.snackbar {
  visibility: hidden;
  min-width: 240px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

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


#startScanButton:hover {
    background: linear-gradient(135deg, #00e699, #00b27a);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#startScanButton:active {
    transform: scale(0.97);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding-left: 80px;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid var(--accent-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto;
}

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

/* Status Message */
#statusMessage {
    margin-top: 10px;
    font-size: 16px;
    font-weight: normal;
    color: var(--text-light);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#notFoundMessage {
    font-size: 16px;
    font-weight: bold;
    color: var(--danger);
    text-align: center;
    margin-top: 10px;
}

/* Wajah Dikenali Container */


/* Wrapper */
/* .face-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: auto;
    max-width: 220px;
    transition: transform 0.3s ease;
} */







/* Watermark */
.watermark-bg {
    position: absolute;
    inset: 0;
    background-image: url("/watermark/OIP%20(1).jpeg");
    background-repeat: repeat;
    background-size: auto 15px;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}


/* Similarity Info */
.similarity-score {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, 0.65);
    color: var(--text-light);
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 0 0 10px 10px;
    font-weight: 500;
}

.similarity-score span {
    font-size: 12px;
    color: var(--text-muted);
}





@keyframes pulseConfirm {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}





#infoModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding-left: 80px;
  }

  #infoModal.hidden {
    display: none;
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#showTermsLink:hover {
    color: #007bff;
    cursor: pointer;
}


.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: left;
}


  #infoModal .modal-content {
    background: white;
    color: black;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-align: left;
  }

  #infoModal .modal-content button {
    margin-top: 16px;
    background: #00c78c;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
  }

  #infoModal .modal-content button:hover {
    background: #009f6b;
  }


/* Footer Tetap di Bawah dan Responsif */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
  background: transparent;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-logo {
  max-width: 100px;
  height: auto;
  vertical-align: middle;
}

.face-wrapper {
    animation: fadeInUp 0.4s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.example {
  position: relative;
  text-align: center;
  justify-items: center;
}

.example img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid;
}

.example.wrong img {
  border-color: red;
  
}

.example.correct img {
  width: 100px;
  height: 120px;
  border-color: green;
}

.example small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-box {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 16px;
  border-radius: 10px;
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.terms-box button {
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
}

.terms-box button:disabled {
  background: gray;
  cursor: not-allowed;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.4s forwards ease;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.spinner {
  border: 6px solid rgba(255,255,255,0.3);
  border-top: 6px solid var(--accent-yellow);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
.spinner.show {
  animation: spin 1s infinite;
}

#infoModal .modal-content {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeScaleIn 0.3s forwards ease-out;

  max-height: 90vh;
  overflow-y: auto;
  background: white;
  color: black;
  padding: 24px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: left;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}


@keyframes fadeScaleIn {
  to { opacity: 1; transform: scale(1); }
}

/* 🌐 Penyesuaian layout hanya untuk perangkat Android */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) and (orientation: portrait) {
  html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: none; /* Cegah auto-zoom */
    overscroll-behavior: none;
  }

  @media (max-width: 768px) {
    /* .container {
      aspect-ratio: unset;
      width: 100vw;
      height: 70vh;
      max-width: 100%;
      border-radius: 0;
    }

    video,
    canvas {
      border-radius: 0 !important;
      object-fit: contain;
      width: 100% !important;
      height: 100% !important;
    } */

    #startScanButton {
      width: 100%;
      font-size: 16px;
      padding: 14px;
      margin-top: 16px;
    }

    #statusMessage {
      font-size: 14px;
      padding: 0 12px;
    }
  }

  /* .container {
    width: 100vw;
    height: 75vh;
    max-width: 100%;
    aspect-ratio: unset;
    border-radius: 0;
    margin: 0 auto;

  }

  #videoInput, canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center center;
    border-radius: 0 !important;
  } */

  #startScanButton {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    margin-top: 16px;
  }

  #statusMessage {
    font-size: 14px;
    padding: 0 12px;
  }

  /* .face-wrapper {
    flex: 1 0 40%;
    max-width: 46%;
  } */

  /* .face-card {
    height: auto;
    max-width: 100%;
  } */

  .face-options button {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* Tombol Lanjut ke Keranjang */
.btn-proceed-cart {
    position: fixed;
    bottom: 20px; /* Jarak dari bawah layar */
    left: 50%;
    transform: translateX(-50%); /* Pusatkan secara horizontal */
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-weight: bold;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 90%; /* Lebar hampir penuh di layar kecil */
    max-width: 300px; /* Batas lebar maksimum untuk layar besar */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Pastikan di atas elemen lain */
    cursor: pointer;
}

.btn-proceed-cart:hover {
    background-color: var(--primary);
    transform: translateX(-50%) translateY(-2px); /* Pertahankan pusat saat hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-proceed-cart:active {
    transform: translateX(-50%) scale(0.98);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}



h2.title-section {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #eaeaea;
}

.keranjang-footer {
  text-align: center;
  margin-top: 40px;

}

.keranjang-footer a {
  /* padding: 12px 0; */
  font-size: 16px;
  /* background-color: var(--primary-dark); */
  color: white;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease;
}

.keranjang-footer a:hover {
  /* background-color: var(--primary); */
}

footer {
  padding: 16px;
  font-size: 14px;
  color: #bbb;
  text-align: center;
}


.matched-face.confirmed .face-card {
    /* border: 2px solid var(--primary);  */
}

.checkMark{
    border: 4px solid var(--primary); 
}


/* EVENT CARD PAGE SCANNER */
  #eventFilterContainer {
    display: none;
    /* margin-top: 1.5em; */
    text-align: center;
    width: 100%;
    height: auto;
    padding: 0 10px;
    justify-items: start;
  }

  #eventFilterContainer label {
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    color: #333;
  }


  .event-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      width: 100%;
      height: auto;
  }

  /* Event card styling */
  .event-card {
      background-color: #4b5563;
      border: 4px solid #e5e7eb;
      width: 100%;
      height: auto;
      position: relative;
      border-radius: 0.125rem;
      cursor: pointer;
  }

  /* Event image */
  .event-card img {
      width: 100%;
      height: 8rem;
      object-fit: cover;
  }

  .event-card.selected {
      border: 4px solid #219f6d;
      background-color: rgba(18, 88, 60, 0.1);
  }

  /* .event-card {
      border: 1px solid #ccc;
      border-radius: 12px;
      overflow: hidden;
      text-align: center;
      width: 250px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      background-color: #222121;
      display: flex;
      flex-direction: column;
  }

  .event-card:hover {
      transform: scale(1.01);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .event-card img {
      width: 100%;
      height: auto;
      object-fit: cover;
      display: block;
  } */

  .event-v2{
      background-color: rgba(0, 0, 0, 0.5);
      position: absolute;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: center; /* Fixed from justify-items */
      width: 100%;
      height: 100%;
      pointer-events: none;
  }

  .event-v2 h2 {
      color: white;
      font-weight: bold;
      font-size: 18px;
  }
/* END EVENT CARD PAGE SCANNER */

.page-container {
  /* max-width: 1300px; */
  width: 100%;
  margin: 0;
  /* padding: 20px 16px 80px; */
  padding: 70px 0px;
}

/* .event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px;
    width: 100%;
    max-width: 100%;
} */


/* FOTO CARD */
#recognizedFaceContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.face-wrapper {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.face-card {
    width: 140px;
    aspect-ratio: 3 / 4;
    background: rgba(0, 0, 0, 0.45);
    /* border: 2px solid white;
    border-radius: 6px; */
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

/* Gambar */
.image-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.image-wrapper img.original {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tombol Opsi */
.face-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.face-options button {
    padding: 6px 12px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;

}

.face-options .yes-btn,
.face-options .no-btn {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.face-options .yes-btn {
    background-color: var(--primary-dark);
}

.face-options .no-btn {
    background-color: var(--danger);
}

.face-options .yes-btn:hover,
.face-options .no-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.face-options button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Konfirmasi Animasi */
.matched-face.confirmed {
    animation: pulseConfirm 0.3s ease;
}

.text-hover {
    position: absolute;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 10px;
    padding-bottom: 20px;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.3s, opacity 0.3s;
}

.text-hover:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black on hover */
}

.text-hover h2,
.text-hover button {
    color: white;
    font-weight: bold;
    font-size: 12px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-transform: translateY(40px);
    -moz-transform: translateY(40px);
    -ms-transform: translateY(40px);
    -o-transform: translateY(40px);
}

.text-hover:hover h2,
.text-hover:hover button {
    opacity: 1; /* Visible on parent hover */
    transform: translateY(0);
}

.text-hover .no-btn {
    background-color: #b60303;
}

.text-hover .no-btn:hover {
    background-color: #c63636;
}

.text-hover .yes-btn {
    background-color: #02903f;
}

.text-hover .yes-btn:hover {
    background-color: #28b164;
}

.text-hover button:hover {
    background-color: #414141;
}
/* END FOTO CARD */


/* Responsive */
@media only screen and (max-width: 600px) and (orientation: portrait) {


    h2 {
        font-size: 20px;
    }

    img.logo {
        max-width: 80px;
    }

    #recognizedFaceContainer {
        gap: 14px;
    }

    /* .face-card {
        max-width: 50px;
        height: auto;
    } */

    .image-wrapper {
        height: 140px;
    }

    .face-options button {
        font-size: 12px;
        padding: 5px 10px;
    }

    .similarity-score {
        font-size: 12px;
        padding: 4px 8px;
    }

    .face-card:hover {
        /* transform: translateY(-6px); */
    }


    .face-card-skeleton {
      width: 120px;
      aspect-ratio: 3 / 4;
      background: rgba(0, 0, 0, 0.45);
      border: 2px solid white;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      transition: transform 0.3s ease;
      -webkit-border-radius: 6px;
      -moz-border-radius: 6px;
      -ms-border-radius: 6px;
      -o-border-radius: 6px;
    }

    .btn-proceed-cart {
        padding: 10px 20px;
        font-size: 14px;
        width: 95%; /* Lebih lebar di layar kecil */
        max-width: 280px;
    }


}


@media (min-width: 601px) {

  .face-card-skeleton {
      width: 167px;
      aspect-ratio: 3 / 4;
      background: rgba(0, 0, 0, 0.45);
      border: 2px solid white;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      transition: transform 0.3s ease;
      -webkit-border-radius: 6px;
      -moz-border-radius: 6px;
      -ms-border-radius: 6px;
      -o-border-radius: 6px;
  }
}

@media (max-width: 1023px) {
  .container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: unset;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-items: center;
    align-items: center;
  }

  #videoInput {
    transform: scaleX(-1);
    z-index: 1;
  }

  video,
  canvas {
    width: auto; /* Use intrinsic width */
    height: auto; /* Use intrinsic height */
    max-width: 100%; /* Ensure it doesn't exceed container */
    max-height: 100vh; /* Ensure it doesn't exceed container */
    object-fit: contain; /* Preserve aspect ratio without cropping */
    object-position: center center;
    /* top: 0; */
    /* left: 0; */
    /* transform: translate(-50%, -50%); */
    /* border-radius: var(--border-radius); */

  }

  video {

      position: relative;
      border: 4px solid #343431;
      z-index: 1;
  }

  canvas {
      position: absolute;
      top: 0;
      /* background: #007bff; */
      z-index: 2;
      pointer-events: none;
  }


  .main-content {
      padding-left: 0px;
  }

  #infoModal {
    padding-left: 0px;
  }

  #loadingIndicator {
    padding-left: 0px;
  }
}


/* Media Queries untuk Responsivitas */
@media (min-width: 1024px) {
    .page-container {
      width: 100%;
      margin: 0;
      padding: 70px 0px 0px 80px;
    }
    .face-wrapper {
        width: 167px; /* Lebar untuk layar besar */
    }
    .face-card {
        width: 167px; /* Lebar card untuk layar besar */
    }
    .event-list{
      justify-content: start;
    }
}

@media (min-width: 1920px) {
    .event-list {
        max-width: 1800px; /* Batasi lebar maksimum container untuk layar sangat besar */
        /* margin: 0 auto;  */
    }
    .face-wrapper {
        width: 167px; /* Tetap 167px untuk layar sangat besar */
    }
    .face-card {
        width: 167px; /* Tetap 167px untuk layar sangat besar */
    }
}

/* Override untuk layar kecil (smartphone potrait, termasuk Android) */
@media only screen and (max-width: 600px) and (orientation: portrait) {
    .face-wrapper {
        width: 140px; /* Lebar tetap untuk layar kecil */
    }
    .face-card {
        width: 140px; /* Lebar card tetap untuk layar kecil */
    }
}

/* Styling untuk tombol proceedButton */
#proceedButton {
    background-color: #20c997; /* Hijau saat aktif */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#proceedButton:disabled {
    background-color: silver;
    cursor: not-allowed;
    opacity: 0.1;
}
