/* Color scheme: only #f8faed and #786b5a */
:root {
  --background: #786b5a;
  --text: #222;
  --section-bg: #f8faed;
  --header-bg: #f8faed;
  --footer-bg: #f8faed;
}

/* Use system fonts and native color scheme */
:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--background, #786b5a);
  color: var(--text, #222);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #786b5a;
}

@media (max-width: 600px) {
  html, body, main {
    overflow: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
  }
  .swipe-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
  }
  .gallery-track {
    height: 100vh !important;
    width: 100vw !important;
    min-height: 100vh !important;
    min-width: 100vw !important;
    touch-action: none !important;
    z-index: 20;
  }
  .gallery-tile {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .gallery-img {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    display: block;
    background: transparent;
    user-select: none;
    pointer-events: none;
    position: static;
    left: 0;
    top: 0;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background, #786b5a);
}

main {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--header-bg, #f8f8f8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.logo {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

.menu-section {
  background: var(--section-bg, #fafafa);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 1rem;
}

.menu-section h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.menu-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.menu-section li:last-child {
  border-bottom: none;
}

.menu-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.menu-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: var(--footer-bg, #f8f8f8);
}

.swipe-gallery {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  overflow: hidden;
  touch-action: none;
}

.gallery-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.gallery-img {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
  background: transparent;
  user-select: none;
  pointer-events: none;
  position: static;
  left: 0;
  top: 0;
}

.gallery-tile {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s;
}

/* Gallery tiles backgrounds */
.gallery-tile[data-bg="#786b5a"] {
  background: #786b5a !important;
}
.gallery-tile[data-bg="#f8faed"] {
  background: #f8faed !important;
}

.gallery-indicators {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  z-index: 2;
}

.gallery-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  /*border: 3px solid #222;*/
  opacity: 0.8;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
  transform: scale(1);
}

.gallery-indicator.active {
  background: #fff;
  border-color: #a3a3a3;
  opacity: 1;
  transform: scale(1.2) rotate(-8deg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  animation: hint-bounce 1.5s cubic-bezier(.4,0,.2,1) 2;
}

.scroll-hint span {
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 1;
}

.scroll-hint-arrow {
  width: 32px;
  height: 32px;
  display: block;
  margin-top: 4px;
  fill: #fff;
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

@keyframes hint-bounce {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  30% { transform: translateX(-50%) translateY(20px); opacity: 1; }
  60% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { opacity: 0.7; }
  100% { opacity: 0; }
}

@media (max-width: 600px) {
  .scroll-hint {
    bottom: env(safe-area-inset-bottom, 32px);
  }
}

@media (min-width: 600px) {
  main {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .menu-section {
    min-width: 300px;
    max-width: 400px;
    flex: 1 1 300px;
  }
  .menu-images {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .menu-img {
    max-width: 340px;
  }
}

/* Socials card styling */
#gallery-social {
  background: #786b5a !important;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-card {
  background: #f8faed;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(120,107,90,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  max-width: 75vw;
  width: 100%;
  height: auto;
}
.social-title {
  color: #786b5a;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}
.social-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(120,107,90,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  background: transparent;
  width: 56px;
  height: 56px;
  padding: .5rem;
}
.social-icon:hover, .social-icon:focus {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 4px 16px rgba(120,107,90,0.25);
  outline: none;
}
@media (max-width: 600px) {
  .social-card {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    min-width: 0;
  }
  .social-title {
    font-size: 1.1rem;
  }
  .social-icon {
    width: 44px;
    height: 44px;
  }
}

/* Ice Cream Loader Overlay */
#iceCreamLoader {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f8faed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
#iceCreamLoader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.ice-cream-cone-anim {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 80px;
  height: 120px;
}
#coneSvg {
  position: absolute;
  bottom: 0;
  left: 0;
}
#scoopSvg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: scoopDrop 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes scoopDrop {
  0% { top: -60px; }
  80% { top: 40px; }
  100% { top: 32px; }
}
#scoopSvg {
  top: -60px;
  width: 56px;
  height: 56px;
}
