@font-face {
  font-family: "Andada Pro";
  src: url("/fonts/AndadaPro-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Emoji";
  src: url("/fonts/NotoEmoji-VariableFont_wght.ttf");
  text-decoration: none;
}

:root {
  --bg-color: white;
  --primary-accent: #b6889e;
  --soft-accent: #b6889e;
  --text-dark: #2a222e;
  --card-bg: #f4eff7;
  --sidebar-bg: #f4eff7;
  --navbar-bg: #e3d6e7;
  --header-height: 310px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Andada Pro", serif;
  margin: 0;
  padding: 0;
  background-image: url("/images/bg.jpg");
  background-size: cover;
  color: var(--text-dark);
  height: 100vh;
  overflow: hidden;
}

::selection {
  background-color: #82748b;
  color: #fff;
}

#container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 15px;
  gap: 15px;
}

#headerArea {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#header {
  width: 100%;
  height: 150px;
  background-color: var(--navbar-bg);
  background-image: url("/images/header.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 1px solid var(--primary-accent);
}

@keyframes fadeInShake {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -52%) rotate(-3deg);
  }
  50% {
    transform: translate(-50%, -48%) rotate(3deg);
  }
  75% {
    transform: translate(-50%, -51%) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

#navbar {
  background-color: var(--navbar-bg);
  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 3px double var(--soft-accent);
  position: relative;
  z-index: 10;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
  align-items: center;
}

#navbar li a {
  color: #b6889e;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 2px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 1;
}

#navbar li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 110px;
  background-image: url("/images/decor/bow3.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

#navbar li a:hover,
#navbar li a.active {
  color: #ffffff;
  text-shadow:
    0 0 3px #fff,
    0 0 8px #fff,
    0 0 15px var(--soft-accent),
    0 0 25px var(--primary-accent);
  text-decoration: none !important;
}

#navbar li a:hover::before,
#navbar li a.active::before {
  animation: fadeInShake 0.4s ease forwards;
}

#flex {
  display: flex;
  gap: 15px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

aside,
main {
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(34, 28, 36, 0.08);
  border: 1px solid var(--soft-accent);
  outline-offset: -4px;
}

#left-container {
  position: relative;
  height: 100%;
}

#leftSidebar {
  background-color: var(--sidebar-bg);
  width: 280px;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  padding-top: 70px;
  padding-bottom: 50px;
}

main {
  background-color: var(--card-bg);
  flex: 1;
  overflow-y: auto;
  height: 100%;
}

#right-container {
  position: relative;
  height: 100%;
}

#rightSidebar {
  background-color: var(--sidebar-bg);
  width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  height: 100%;
  padding-top: 60px;
  padding-bottom: 50px;
}

.floating-lace {
  position: absolute;
  width: 106%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(5px 5px 10px rgba(130, 116, 139, 0.5));
}

#mobile-nav-container {
  display: none;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-accent);
  margin-top: 0;
  letter-spacing: 0.5px;
}

h4,
h3 {
  padding-left: 10px;
}

h1 {
  color: var(--primary-accent);
  margin-top: 0;
  letter-spacing: 0.5px;
  font-size: 1.8rem;
  padding-bottom: 12px;
  border-bottom: none;
  position: relative;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-image: radial-gradient(
    circle,
    var(--soft-accent) 3px,
    transparent 4px
  );
  background-size: 12px 6px;
}

#container a {
  color: var(--soft-accent);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}

#container a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

.gallery-title {
  color: var(--primary-accent);
  text-align: center;
  font-size: 2.2rem;
  margin-top: 10px;
  margin-bottom: 5px;
}

.gallery-subtitle {
  text-align: center;
  color: var(--soft-accent);
  font-style: italic;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

hr {
  border: none;
  height: 6px;
  background-size: 10px 6px;
  margin: 15px 0;
}

@media only screen and (max-width: 850px) {
  html,
  body {
    height: 100svh;
    overscroll-behavior: none;
  }

  body {
    overflow: hidden;
  }

  #container {
    padding: 10px;
    height: 100svh;
    max-width: 100%;
    gap: 10px;
  }

  #header {
    height: 90px;
    border-radius: 4px;
  }

  #navbar ul {
    padding: 2px 0;
  }

  #navbar li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  #flex {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 6px;
    touch-action: pan-y pinch-zoom;
  }

  #flex > * {
    width: 100%;
    height: 100%;
  }

  #flex.mobile-slider-ready > * {
    position: absolute;
    inset: 0;
    transition:
      transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
      opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }

  #flex.mobile-slider-ready > *.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  aside,
  main {
    width: 100% !important;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: 4px;
    margin: 0;
    border: 1px solid var(--primary-accent);
    overflow-y: auto !important;
    height: 100%;
    padding: 20px;
    padding-bottom: 28px;
    overscroll-behavior: contain;
  }

  #leftSidebar {
    background-color: var(--sidebar-bg);
    width: 100% !important;
    flex-shrink: 0;
    overflow-y: auto;
    height: 100%;
    position: relative;
  }

  #rightSidebar,
  #mainContent {
    width: 100% !important;
    max-width: 100%;
    height: 100%;
  }

  #mobile-nav-container {
    display: none !important;
  }

  .mobile-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-family: "Andada Pro", serif;
    padding: 10px 18px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-btn.active {
    background-color: var(--soft-accent);
    color: var(--primary-accent);
    box-shadow: 0 4px 10px rgba(184, 141, 162, 0.3);
  }

  #leftSidebar,
  #rightSidebar {
    position: relative;
  }

  #left-container #leftSidebar,
  #right-container #rightSidebar {
    padding-top: 95px;
  }

  #leftSidebar > .top-lace-L,
  #rightSidebar > .top-lace-R,
  #leftSidebar > .bottom-lace-L,
  #rightSidebar > .bottom-lace-R {
    position: sticky;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
  }

  #leftSidebar > .top-lace-L,
  #rightSidebar > .top-lace-R {
    top: 0 !important;
  }

  #leftSidebar > .bottom-lace-L,
  #rightSidebar > .bottom-lace-R {
    bottom: 0;
  }

  #left-container .top-lace-L,
  #leftSidebar .top-lace-L,
  #right-container .top-lace-R,
  #rightSidebar .top-lace-R {
    top: 6px !important;
  }

  #mainContent,
  main {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .corner-1,
  .corner-2,
  .corner-3 {
    pointer-events: none;
    z-index: 50 !important;
  }

  #navbar,
  #navbar * {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  #navbar li a::before {
    user-select: none;
    -webkit-user-select: none;
  }
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.btn-mono-icon {
  font-family: "Noto Emoji", sans-serif !important;
  color: #4a3e4e !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-variant-emoji: text;
}

.p-small {
  font-size: 15px;
  margin-top: -10px;
}

.home-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 5px 75px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.home-row {
  display: flex;
  gap: 25px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.row-reverse {
  flex-direction: row-reverse;
}

.col-large {
  flex: 1.6;
  min-width: 0;
}

.col-small {
  flex: 1;
  min-width: 0;
}

.row-image {
  width: 100%;
  height: 235px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #b88da2;
  box-shadow: 0 6px 16px rgba(34, 28, 36, 0.1);
  transition: transform 0.3s ease;
  background-color: #e3d6e7;
  filter: grayscale(50%);
}

.row-image:hover {
  transform: scale(1.02);
}

.home-row h2 {
  font-size: 1.5rem;
  color: #b6889e;
  margin-top: 0;
  margin-bottom: 10px;
}

.home-row p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: #4a3e4e;
}

.top-lace-L {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.bottom-lace-L {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.top-lace-R {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.bottom-lace-R {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.corner-1 {
  position: absolute;
  z-index: 999;
  filter: drop-shadow(5px 5px 5px rgba(130, 116, 139, 1));
}

.corner-2 {
  position: absolute;
  z-index: 999;
  filter: drop-shadow(5px 5px 5px rgba(130, 116, 139, 1));
}

.corner-3 {
  position: absolute;
  z-index: 999;
  filter: drop-shadow(3px 3px 5px rgba(130, 116, 139, 0.5));
}
