@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700;900&display=swap');

body {
  margin:0;
  background:#000000;
  font-family:'Kalam', cursive;
  color:#7a7a7a;
}

html, body {
  touch-action: pan-y;
}

h1 {
  font-family:'Kalam', cursive;
  font-size:40px;
  font-weight:900;
  color:#7a7a7a;
}

header {
  text-align:center;
  padding:15px;
}

footer {
font-family:'Kalam', cursive;
  font-size:20px;
  font-weight:700;
  color:#7a7a7a;
  text-align:center;
  padding:15px;
}

nav {
  
  display:flex;
  justify-content:center;
  gap:10px;
}

.nav-item {
  padding:10px 18px;
  border-radius:50px;
  background:#7a7a7a;
  font-size:15px;
  font-weight:700;
  font-family:'Kalam', cursive;
  color: #000000;
  transition:.3s;
}

.nav-item:hover {
  background:#333;
}

.table {
  width:90%;
  margin:10px auto;
  border-collapse:collapse;
}

.table td {
  font-size:12px;
  text-align:center;
  padding:6px;
}

img.thumb {
  width:60px;
  border-radius:6px;
  text-align: center;
  
}

.mobile-nav {
  display:none;
}

@media (max-width: 768px) {
  nav { display:none; }

  .mobile-nav {
    display:flex;
    justify-content:space-between;
    padding:15px;
    font-size:30px;
    color:#7a7a7a;
    user-select:none;
  }

  .arrow {
    cursor:pointer;
	color:#7a7a7a;
  }
}

.thumb {
  width: 220px;
  max-width: 90%;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item {
  margin-bottom: 25px;
  text-align: center;
}

.gallery-title {
  font-family: 'Kalam', cursive;
  color: #7a7a7a;
  font-size: 15px;
  font-weight:300;
  text-align: center;
  align-items:center;
  justify-content:center;
  margin-top: 12px;
}

.gallery-row {
  display: flex;
  justify-content: center;
}

.gallery-img.hidden {
  display: none;
}


/* FULLSCREEN GALLERY VIEWER */
/* Fullscreen viewer overlay */
#viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}
#viewer.open {
  display: flex;
}

#viewer-img {
  max-width: 90vw;      /* PC & mobile width */
  max-height: 85vh;     /* PC & mobile height */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

#viewer-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Kalam', cursive;
  font-size: 14px;
  color: #E82D09;
  background: rgba(0,0,0,0.45);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10002;
  pointer-events: none;
}


.viewer .close {
  position:absolute;
  top:15px;
  right:20px;
  font-size:30px;
  color:#E82D09;
  cursor:pointer;
}

/*.viewer .nav {
  position:absolute;
  top:50%;
  width:100%;
  display:flex;
  justify-content:space-between;
  font-size:40px;
  color:#E82D09;
  user-select:none;
}

.viewer .nav span {
  padding:20px;
  cursor:pointer;
} */

#viewer-title {
  margin-top: 10px;
  font-family: 'Kalam', cursive;
  color: #E82D09;
  font-size: 14px;
  text-align: center;
}

/* Arrows */
#viewer .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

#viewer .arrow.left {
  left: 15px;
}

#viewer .arrow.right {
  right: 15px;
}

#viewer .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {

  #viewer-img {
    max-width: 95vw;
    max-height: 80vh;
	pointer-events: none;
  }
 
  #viewer .arrow,
#viewer .close {
  pointer-events: auto;
  z-index: 10001;
}
  }

  #viewer-title {
    font-size: 12px;
  }
}


/* ADMIN MOBILE UI */
.admin-wrap {
  max-width:900px;
  margin:auto;
  padding:10px;
}

.admin-card {
  background:#3334;
  padding:15px;
  margin:15px 0;
  border-radius:12px;
  text-align:center;
}

.admin-card img {
  max-width:100px;
  border-radius:8px;
}

.admin-card button,
.admin-card select,
.admin-card input,
.admin-card textarea {
  width:100%;
  padding:10px;
  margin:6px 0;
  font-size:16px;
  border-radius:8px;
  border:none;
}

.admin-card button {
  background:#E82D09;
  color:#fff;
  font-family:'Kalam', cursive;
  cursor:pointer;
}

.admin-card button.secondary {
  background:#555;
}

@media (min-width: 769px) {
  .admin-card {
    display:flex;
    gap:20px;
    align-items:center;
    text-align:left;
  }

  .admin-card .content {
    flex:1;
  }

  .admin-card button {
    width:auto;
  }
}

#progressBox {
  width: 100%;
  height: 20px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #E82D09;
  transition: width 0.2s ease;
}

#progressText {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-family: 'Kalam', cursive;
  color: #E82D09;
  font-size: 12px;
}
