/* ================================================== */
/* =============== GLOBAL RESET & BASE ============== */
/* ================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent scrolling for app-like layout */
  font-family: 'Segoe UI', sans-serif;
  background-color: #fde4c3; /* Neutral tan background */
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2vh 5vw 3vh 5vw;
}
/* ================================================== */
/* ================== VIEWPORT WRAPPER ============== */
/* ================================================== */
/* Wraps everything: nav background + main container */
.viewport {
  width: 100%;
  max-width: 700px;                 /* Match container */
  height: 100%;
  max-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;                       /* Remove extra space */
  overflow: hidden;
  position: relative;
  box-sizing: border-box;

  /* Match styling */
  border: 2px solid #4b2e1e;
  border-radius: 18px;
  background-color: #4b2e1e;
}


/* ================================================== */
/* =============== MAIN APP CONTAINER =============== */
/* ================================================== */
.container {
  width: 100%;
  max-width: 700px;
  height: 100%;
  max-height: 100svh;

  background: #fff8f0;
  border: 2px solid #ffcc9e;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* When menu is active — shifts container to reveal background */
.container {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.container.shifted {
  transform: translateX(55%);
}


/* ================================================== */
/* ==================== APP CONTENT ================= */
/* ================================================== */
#app {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}


/* ================================================== */
/* ====================== LOGO ====================== */
/* ================================================== */
.logo-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-center {
  width: clamp(160px, 40%, 260px);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Divider below logo */
.divider-line {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background-color: #ffe3c2;
  margin: 0 auto 0rem auto;
}


/* ================================================== */
/* ===================== FOOTER ===================== */
/* ================================================== */
.footer-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background-color: #ffe3c2;
  margin: 2rem auto 0.2rem auto;
}

.footer-nav {
  font-size: 0.6rem;
  color: #9c7a60;
  margin-top: auto;
  padding-top: 0rem;
  text-align: center;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-nav a {
  color: #9c7a60;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-branding {
  opacity: 0.6;
  font-size: 0.7rem;
}

.footer-copyright {
  position: fixed;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #a68d75;
  text-align: center;
  opacity: 0.7;
  pointer-events: none;
  z-index: 999;
}


/* ================================================== */
/* =================== NAV TOGGLE =================== */
/* ================================================== */
#nav-toggle {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10001;
}

/* ================================================== */
/* ============== SLIDE-OUT NAV PANEL =============== */
/* ================================================== */
.nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  max-width: 260px;
  height: 100%;
  background-color: #4b2e1e; /* Same as your border */
  z-index: 0; /* Behind main .container */
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;


  box-sizing: border-box;
  border-radius: 18px 0 0 18px;
  overflow-y: auto;
  color: #fcebd3;
}

.nav-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fcebd3;
}

.nav-panel a {
  color: #fcebd3;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.nav-panel a:hover {
  text-decoration: underline;
  color: #ffe8c8;
}

.arrow {
    font-size: 1.8rem;
    margin-left: 0.25rem;
    opacity: 0.6;
}

.nav-divider {
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.15); /* subtle line */
  border: none;
  margin: 0.25rem 0;
  padding: 0;
}


/* ================== ROUX TOGGLE SWITCH ================== */

/* Wrapper for the whole row */
.roux-toggle-wrapper {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #d69e72;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #f6d2a1;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Column for label + switch */
.roux-toggle-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Column for Roux image */
.roux-toggle-right {
  width: 48px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.roux-toggle-right img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === Switch === */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #f6a801;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Roux active state */
#roux-toggle:checked ~ #mini-roux {
  opacity: 1;
}

#roux-toggle:checked ~ #mini-roux img {
  filter: none;
}