
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #f4f4f9;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600; 
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #111;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem; 
  padding-left: 2rem;
}

li {
  margin-bottom: 0.25rem;
}

ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.header {
  background-color: #fff;
  color: #333;
  padding: 0.5rem;
  text-align: center;
}

.content-area {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  padding: 2rem;
  overflow-y: auto;
}
.content-area.top {
  justify-content: flex-start;
}

.sidebar-logo {
  width: 80%;
  text-align: center;
  margin: 4vh auto;
}

.content-logo {
  width: 100%;
  max-width: 400px;
  margin: 2vh auto;
}

.logo {
  width: 100%;
  height: auto;
}

.content {
  width: 100%;
  color: #555;
  line-height: 1.5;
}

.footer {
  width: 100%;
  background-color: #fff;
  color: #888;
  padding: 1vh;
  text-align: center;
  font-size: clamp(14px, 1.4vh, 30px);
}

/* --- KIOSK GRID --- */
.kiosk-grid-wrapper {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.kiosk-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* --- KIOSK CARDS (The Buttons) --- */
.kiosk-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 250px;
    height: auto;
    min-height: 220px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    
    /* Prevent default touchscreen quirks */
    -webkit-tap-highlight-color: transparent; /* Removes the gray flash on tablets */
    user-select: none; /* Prevents text or images from highlighting on rapid taps */
    -webkit-user-select: none;
}

/* Lift and add deeper shadow on hover/tap */
.kiosk-card:hover, 
.kiosk-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    outline: none;
}

/* A physical press for touch screens (and mouse clicks) */
.kiosk-card:active {
    transform: translateY(2px) scale(0.98); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.05s ease, box-shadow 0.05s ease;
}

/* The Image Wrapper */
.kiosk-card-icon {
    width: 100%;
    height: 140px;
    background: #f4f4f9;
    border-bottom: 1px solid #eee;
}

.kiosk-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The Text Wrapper */
.kiosk-card-content {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.kiosk-card-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.kiosk-card-content p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

/* --- ADMIN LOGIN LINK --- */
.admin-login-wrapper {
    margin-top: 15px;
}

.admin-login-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: transparent;
    transition: all 0.2s ease;
}

.admin-login-btn:hover,
.admin-login-btn:focus {
    color: #555;
    background: #e8e8e8;
    border-color: #d0d0d0;
    outline: none;
}



/* --- MAIN LAYOUT --- */

.kiosk-full-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}


/* --- HOME BUTTON --- */
.kiosk-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.5vh 2vw;
  background-color: #555;
  color: #fff;
  text-decoration: none;
  font-size: clamp(18px, 2vh, 36px);
  font-weight: 600;
  border-radius: 0.9vh;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.kiosk-home-btn:hover,
.kiosk-home-btn:focus,
.kiosk-home-btn:active {
  background-color: #333;
  transform: translateY(-2px);
  color: #fff;
  outline: none;
}

.kiosk-home-btn .icon {
  font-size: 14px;
}

/* --- HOME BUTTON MODIFIERS --- */


/* Full-Width Layout (Floating) */
.kiosk-home-btn.floating {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.kiosk-home-btn.floating:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Bottombar Layout */
.kiosk-home-btn.bottombar {
  margin: 0;
  padding: 12px 24px;
}

/* --- BOTTOM NAV BAR --- */
.kiosk-bottom-bar {
    display: grid;
    grid-template-columns: 1fr minmax(0, auto) 1fr;
    align-items: center;
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom, #fff 0%, #ddd 100%);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #bbb;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}
.kiosk-bottom-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px; /* Width of the shadow */
    background: linear-gradient(to left, rgba(0,0,0,0.20), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    /* Crucial: ensures users can still tap buttons through the shadow */
    pointer-events: none; 
}

.kiosk-bottom-bar .nav-zone-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: stretch;
  margin-right: 2vh;
  position: relative;
  z-index: 20;
}
.kiosk-bottom-bar .nav-zone-left::after {
    content: '';
    position: absolute;
    right: -30px; 
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(0,0,0,0.20), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 3. The JS toggle state (Replaces the old box-shadow rule) */
.kiosk-bottom-bar.is-scrolled-past-left .nav-zone-left::after {
    opacity: 1;
}

.kiosk-bottom-bar.has-overflow-right::after {
    opacity: 1;
}

.kiosk-bottom-bar .nav-zone-center {
    display: flex;
    justify-content: safe center;
    overflow-x: auto;
    padding: 0 1px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
/* Hide scrollbar for Chrome/Safari */
.kiosk-bottom-bar .nav-zone-center::-webkit-scrollbar {
    display: none;
}


/* --- THE SHADED BUTTONS --- */
.kiosk-bottom-bar .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5vh 3vh;
    color: #000000;
    font-size: 2vh;
    text-decoration: none;
    border-right: 1px solid #ccc;
    border-left: 1px solid #fff;
    
    /* Prevent text selection on rapid double-taps */
    user-select: none;
    -webkit-user-select: none;
}


.kiosk-bottom-bar .nav-btn:first-child {
  border-left: 1px solid #fff;
  box-shadow: -1px 0 0 #ccc;
}

.kiosk-bottom-bar .nav-btn:last-child {
  box-shadow: 1px 0 0 #fff;
}

.kiosk-bottom-bar .nav-btn:only-child {
    box-shadow: -1px 0 0 #ccc, 1px 0 0 #fff;
}
.kiosk-bottom-bar .nav-btn:hover {
  background: linear-gradient(to bottom, #fff 0%, #e5e5ee 100%);
}
.kiosk-bottom-bar .nav-btn:active {
    background: #eee;
    border-right: 1px solid #fff;
    border-left: 1px solid #ccc;
}

.kiosk-bottom-bar .utility-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 4vh;
    height: 6vh;
    width: 7vh;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.kiosk-bottom-bar .nav-zone-center .child-btn {
    flex-shrink: 0; 
    white-space: nowrap;
}

/* --- PHOTO GALLERY --- */

.kiosk-gallery-container {
  position: relative;
  width: 100%;
  padding: 0 4rem;
  overflow: hidden;
  box-sizing: border-box;
}

.kiosk-gallery {
  height: 100%;
  width: 100%;
}

.small-swiper { height: 40vh; }
.medium-swiper { height: 60vh; }
.large-swiper { height: 80vh; }
.full-swiper { height: 100vh; }

.swiper-button-prev {
  width: 80px;
  height: 80px;
  left: 0;
  transform: translateY(-50%);
}
.swiper-button-next {
   width: 80px;
   height: 80px;
   right: 0;
   transform: translateY(-50%);
}

.swiper-slide {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto; 
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-bottom: 2.5rem;
}

.img-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-caption {
  text-align: center;
  color: #333;
  font-size: 1.25rem;
  font-family: sans-serif;
  padding: 1rem 2rem 0.5rem 2rem; 
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kiosk-gallery .swiper-pagination {
  bottom: 4.5rem !important; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  left: 0;
  z-index: 10;
}
.kiosk-gallery .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 1 !important;
  margin: 0 8px !important;
  transition: all 0.3s ease;
}
.kiosk-gallery .swiper-pagination-bullet-active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}

