:root {
      --transition: 0.25s ease-in-out;
}

@font-face {
  font-family: 'OneUISans';
  src: url('../fonts/OneUISans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;
      overflow: hidden;
      transition: background var(--transition), color var(--transition), font-family 0.3s ease-in-out;
      background: linear-gradient(to bottom, #007FFF 0%, #00FFFF 100%);
      background-size: cover;
      background-repeat: no-repeat;
      font-family: 'OneUISans', sans-serif;
      color: white;
    }

    .scroll-container {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      width: 100%;
      height: 100dvh;
    }

    .page {
      scroll-snap-align: center;
      flex-shrink: 0;
      width: 100%;
      height: 100dvh;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

.page:nth-child(5) .card {
    background: linear-gradient(to bottom, darkblue, lightblue, white, lightblue, darkblue) !important;
    }

    @keyframes cardBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1.0);
  }
}

    .card {
      position: relative;
      background: rgba(211, 211, 211, 0.3);
      border-radius: 25px;
      padding: 24px 16px;
      max-width: 280px;
      text-align: center;
      box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: transform 0.3s ease;
      margin-top: -100px;
      margin-bottom: 20px;
      opacity: 0;
      transform: scale(0.8);
      transition: transform 0.3s ease;
    }
   .card.animate-in {
  animation: cardBounceIn 0.6s ease forwards;
}
    @media (max-width: 768px) and (orientation: landscape) {
      .card {
        transform: scale(0.75);
      }
    }

   .card h1 {
  font-size: 28px;
  font-weight: 1000; /* Makes header bolder */
  margin: 0 0 2px;  /* Top = 0 (closer to logo), bottom = 12px (more space from <p>) */
}

    .card p {
      margin-top: 10px;
      font-size: 16px;
    }

    .card img {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 10px;
      cursor: pointer;
    }

    .indicator-wrapper {
      position: fixed;
      bottom: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      padding: 8px 16px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 5;
    }

    .indicators {
      display: flex;
      gap: 10px;
    }

    .dot {
      width: 10px;
      height: 10px;
      background-color: white;
      opacity: 0.4;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .dot.active {
      opacity: 1;
      transform: scale(1.1);
    }

:root { /* These are the default light theme variables */
    --md3-primary: #6750A4;
    --md3-on-primary: #FFFFFF;
    --md3-primary-container: #EADDFF;
    --md3-on-primary-container: #21005D;
    --md3-secondary: #625B71;
    --md3-on-secondary: #FFFFFF;
    --md3-secondary-container: #E8DEF8;
    --md3-on-secondary-container: #1D192B;
    --md3-tertiary: #7D5260;
    --md3-on-tertiary: #FFFFFF;
    --md3-tertiary-container: #FFD8E4;
    --md3-on-tertiary-container: #31111D;
    --md3-error: #B3261E;
    --md3-on-error: #FFFFFF;
    --md3-error-container: #F2B8B5;
    --md3-on-error-container: #410E0B;
    --md3-background: #FFFBFE;
    --md3-on-background: #1C1B1F;
    --md3-surface: #FFFBFE;
    --md3-on-surface: #1C1B1F;
    --md3-surface-variant: #E7E0EC;
    --md3-on-surface-variant: #49454F;
    --md3-outline: #79747E;
    --md3-shadow: rgba(0, 0, 0, 0.2);
    --md3-inverse-surface: #313033;
    --md3-inverse-on-surface: #F4EFF4;
    --md3-inverse-primary: #D0BCFF;
    --md3-surface-dim: #DED8E1;
    --md3-surface-bright: #FFFBFE;
    --md3-surface-container-lowest: #FFFFFF;
    --md3-surface-container-low: #F7F2FA;
    --md3-surface-container: #F3EDF7;
    --md3-surface-container-high: #ECE6F0;
    --md3-surface-container-highest: #E6E0E5;

    /* Specific to component states */
    --md3-on-surface-hover: rgba(0, 0, 0, 0.08); /* 8% black overlay */
    --md3-on-surface-focus: rgba(0, 0, 0, 0.12); /* 12% black overlay */
    --md3-on-primary-container-hover: rgba(255, 255, 255, 0.08); /* White overlay for containers */
}

/* Material 3 Color System - Dark Theme (Applied when body has 'dark' class) */
body.dark {
    --md3-primary: #D0BCFF;
    --md3-on-primary: #381E72;
    --md3-primary-container: #4F378B;
    --md3-on-primary-container: #EADDFF;
    --md3-secondary: #CCC2DC;
    --md3-on-secondary: #332D41;
    --md3-secondary-container: #4A4458;
    --md3-on-secondary-container: #E8DEF8;
    --md3-tertiary: #EFB8C8;
    --md3-on-tertiary: #492532;
    --md3-tertiary-container: #633B48;
    --md3-on-tertiary-container: #FFD8E4;
    --md3-error: #F2B8B5;
    --md3-on-error: #601410;
    --md3-error-container: #8C1D18;
    --md3-on-error-container: #F2B8B5;
    --md3-background: #1C1B1F;
    --md3-on-background: #E6E1E5;
    --md3-surface: #1C1B1F;
    --md3-on-surface: #E6E1E5;
    --md3-surface-variant: #49454F;
    --md3-on-surface-variant: #CAC4D0;
    --md3-outline: #938F99;
    --md3-shadow: rgba(0, 0, 0, 0.5);
    --md3-inverse-surface: #E6E1E5;
    --md3-inverse-on-surface: #313033;
    --md3-inverse-primary: #6750A4;
    --md3-surface-dim: #1C1B1F;
    --md3-surface-bright: #363438;
    --md3-surface-container-lowest: #0F0D13;
    --md3-surface-container-low: #1C1B1F;
    --md3-surface-container: #211F26;
    --md3-surface-container-high: #2B2930;
    --md3-surface-container-highest: #363438;

    /* Specific to component states */
    --md3-on-surface-hover: rgba(255, 255, 255, 0.08); /* 8% white overlay */
    --md3-on-surface-focus: rgba(255, 255, 255, 0.12); /* 12% white overlay */
    --md3-on-primary-container-hover: rgba(0, 0, 0, 0.08);
}

/* Apply theme variables to body */
body {
    background-color: var(--md3-background);
    color: var(--md3-on-background);
}

/* Main Content Area */
.content {
    flex-grow: 1; /* Takes remaining space */
    padding: 20px;
    transition: margin-left 0.3s ease-in-out; /* For desktop menu pushing content */
}

/* Menu Toggle Button */
.menu-container {
    position: fixed; /* Keep it fixed at the top-left */
    top: 0;
    left: 0;
    z-index: 1002; /* Above menu and overlay */
    padding: 16px; /* Padding around the button area */
}

.menu-icon {
    background: var(--md3-surface-container-high); /* A subtle surface color for the button */
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--md3-shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
    outline: none; /* Remove default focus outline */
}

.menu-icon:hover {
    background-color: var(--md3-surface-container-highest); /* Slightly darker on hover */
    box-shadow: 0 4px 8px var(--md3-shadow);
}

.menu-icon:focus-visible {
    /* Better focus state for accessibility */
    box-shadow: 0 0 0 4px var(--md3-primary);
    background-color: var(--md3-surface-container-highest);
}

.menu-icon-bar {
    width: 24px;
    height: 2px;
    background-color: var(--md3-on-surface-variant); /* Color of the bars */
    margin: 3px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Animation for menu icon when menu is open */
.menu-container.open .menu-icon-bar-top {
    transform: translateY(8px) rotate(45deg);
}

.menu-container.open .menu-icon-bar-middle {
    opacity: 0;
}

.menu-container.open .menu-icon-bar-bottom {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay (for mobile/tablet) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999; /* Below menu, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-container.open + .menu-overlay { /* Selector for overlay when menu-container is open */
    opacity: 1;
    visibility: visible;
}

/* Navigation Drawer (Side Menu) */
.md3-nav-drawer {
    position: fixed;
    top: 0;
    left: -280px; /* Hidden by default */
    width: 280px;
    height: 100%;
    background-color: var(--md3-surface);
    color: var(--md3-on-surface);
    box-shadow: 2px 0 8px var(--md3-shadow);
    transition: left 0.3s ease-in-out;
    z-index: 1000; /* Below toggle button, above overlay */
    display: flex;
    flex-direction: column;
}

.menu-container.open ~ .md3-nav-drawer { /* Adjust selector to target the nav drawer when menu-container is open */
    left: 0; /* Show the menu */
}

.md3-nav-drawer-header-empty {
    height: 64px; /* Space for the top bar/status bar */
    /* Add any branding/logo here if desired */
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--md3-on-surface);
    font-size: 1.2em;
    font-weight: bold;
}

.md3-nav-list {
    list-style: none;
    padding: 8px 0; /* Material 3 recommends 8px padding top/bottom for lists */
    margin: 0;
}

.md3-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--md3-on-surface);
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    border-radius: 28px; /* For pill shape */
    margin: 0 12px 4px 12px; /* Margins for the pill effect */
}

.md3-nav-item .material-icons {
    margin-right: 12px; /* Material 3 icon spacing */
    font-size: 24px;
    color: var(--md3-on-surface-variant); /* Icon color */
}

.md3-nav-item:hover {
    background-color: var(--md3-on-surface-hover);
}

.md3-nav-item:focus-visible {
    background-color: var(--md3-on-surface-focus);
    outline: none;
    box-shadow: 0 0 0 2px var(--md3-primary); /* Focus ring */
}

/* Active navigation item (example) */
.md3-nav-item.active {
    background-color: var(--md3-secondary-container);
    color: var(--md3-on-secondary-container);
}
.md3-nav-item.active .material-icons {
    color: var(--md3-on-secondary-container);
}


/* Expansion Item (Dropdown) */
.md3-expansion-item {
    margin: 0 12px 4px 12px;
}

.md3-expansion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1em;
    font-weight: 500;
    color: var(--md3-on-surface);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    border-radius: 28px;
    outline: none;
}

.md3-expansion-header .material-icons {
    margin-right: 12px;
    font-size: 24px;
    color: var(--md3-on-surface-variant);
}

.md3-expansion-header:hover {
    background-color: var(--md3-on-surface-hover);
}

.md3-expansion-header:focus-visible {
    background-color: var(--md3-on-surface-focus);
    box-shadow: 0 0 0 2px var(--md3-primary);
}

.md3-expansion-arrow {
    margin-left: auto; /* Push arrow to the right */
    transition: transform 0.3s ease-in-out;
    font-size: 24px; /* Material Icon size */
}

.md3-expansion-header[aria-expanded="true"] .md3-expansion-arrow {
    transform: rotate(180deg);
}

.md3-expansion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 20px; /* Indent content */
}

.md3-expansion-content.show {
    max-height: 200px; /* Adjust as needed based on content */
}

/* Social Buttons within Expansion */
.md3-social-button {
    display: flex;
    align-items: center;
    padding: 10px 16px; /* Slightly less padding than main items */
    text-decoration: none;
    color: var(--md3-on-surface);
    font-size: 0.95em;
    transition: background-color 0.2s ease-in-out;
    border-radius: 28px;
    margin: 0 12px 4px 12px; /* Match parent container's margin */
}

.md3-social-button .material-icons {
    margin-right: 12px;
    font-size: 20px; /* Slightly smaller icons for sub-items */
    color: var(--md3-on-surface-variant);
}

/* For your custom SVG icons, if you keep them */
.md3-social-button svg {
    margin-right: 12px;
    height: 20px; /* Set height for SVG icons */
    width: 20px;
    fill: var(--md3-on-surface-variant); /* Fill color based on theme */
    transition: fill 0.2s ease-in-out;
}

.md3-social-button img { /* For your Snapchat PNG */
    margin-right: 12px;
    height: 20px; /* Set height for PNG/JPG icons */
    width: 20px;
    object-fit: contain;
}


.md3-social-button:hover {
    background-color: var(--md3-on-surface-hover);
}

.md3-social-button:focus-visible {
    background-color: var(--md3-on-surface-focus);
    outline: none;
    box-shadow: 0 0 0 2px var(--md3-primary);
}


/* Responsive adjustments for larger screens (e.g., desktop) */
@media (min-width: 768px) {
    .menu-container {
        display: none; /* Hide toggle button on desktop */
    }

    .md3-nav-drawer {
        position: static; /* Always visible on desktop */
        left: 0; /* Ensure it's not off-screen */
        box-shadow: none; /* No shadow needed when fixed */
        width: 280px; /* Fixed width */
        flex-shrink: 0; /* Don't let it shrink */
    }

    .content {
        margin-left: 0; /* No push on content since drawer is static */
    }

    .menu-overlay {
        display: none; /* No overlay needed on desktop */
    }
}

    .copyright {
      position: fixed;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.8em;
      color: rgba(0, 0, 0, 0.6);
      z-index: 1000;
    }

 .landscape-warning {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 1.2rem;
  justify-content: center;
  align-items: center;
  z-index: 10003;
  text-align: center;
  padding: 20px;
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .landscape-warning {
    display: flex;
  }
  .scroll-container {
    display: none;
  }
}

@keyframes buttonExpand {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.nav-button-animate {
  animation: buttonExpand 0.5s ease;
}

    body.dark-mode {
  background: linear-gradient(
    to right,
    #000000 0%,
    #000033 14%,
    #000066 28%,
    #000099 42%,
    #0000CC 57%,
    #0033CC 71%,
    #0066CC 85%,
    #0099FF 100%
  );
  background-size: 200% 100%; /* Makes the gradient smoother on wide screens */
  background-attachment: fixed; /* Optional: keeps the gradient still on scroll */
  color: white;
}

body.dark-mode .card {
  background: rgba(50, 50, 50, 0.2);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

body.dark-mode .indicator-wrapper {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}
    
body.dark-mode .dot {
  background-color: white;
}

body.dark-mode .copyright {
color: rgba(255, 255, 255, 0.7);
} 

@keyframes rotateFadeOut {
  0%   { transform: rotate(0deg); opacity: 1; }
  100% { transform: rotate(180deg); opacity: 0; }
}

@keyframes moonFadeInTilt {
  0%   { transform: rotate(-15deg); opacity: 0; }
  100% { transform: rotate(0deg); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes sunFadeInSpin {
  0%   { opacity: 0; transform: rotate(180deg); }
  100% { opacity: 1; transform: rotate(0deg); }
}

.sun-rotate-fade {
  animation: rotateFadeOut 0.6s ease forwards;
}

.moon-fade-in-tilt {
  animation: moonFadeInTilt 0.5s ease forwards;
}

.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

.sun-fade-in-spin {
  animation: sunFadeInSpin 0.6s ease forwards;
}

/* colour inheritance */
#themeToggle {
  color: white;
}
body.dark-mode #themeToggle {
  color: white;
}
    /* Header styling */
body.dark-mode header {
  color: white; /* Ensure header text is white */
}
    
    .buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
    }

    .button {
      width: 45px;
      height: 45px;
      background: rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: transform 0.2s;
    }

    .button:hover {
      transform: scale(1.1);
    }

    .button svg, .button img {
      width: 25px;
      height: 25px;
      fill: white;
    }
    .dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

/* Socials Button */
.dropbtn {
  position: absolute;
  z-index: 900;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  top: 15px;
  left: -10px;
  padding: 0px 0px;
  border-radius: 25px;
  position: relative;
  transition: transform 0.3s ease;
  transform: translateY(-15px);
}

.arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
  color: white;
}

.arrow.rotate {
  transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
  background-color: var(--dropdown-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  top: 50px;
  left: 70px;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  position: absolute;
  z-index: 1;
  color: white;
}

.dropdown-content svg {
  fill: white;
  width: 24px;
  height: 24px;
}
    body.dark-mode .dropbtn {
  color: black;
}
body.dark-mode .arrow {
  color: black;
}
/* Light Mode */
:root {
  --dropdown-bg: rgba(255, 255, 255, 0.0);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --dropdown-bg: rgba(0, 0, 0, 0.0);
  }
}

/* Apply theme-based background */
.dropdown-content {
  background-color: var(--dropdown-bg);
}

/* Show dropdown when active */
.dropdown.active .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
   .copyright-box {
  position: fixed;
    bottom: env(safe-area-inset-bottom, 0px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  padding: 5px 10px;
  height: 20px;
  width: 100vw;
  font-size: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  text-align: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10;
  line-height: 20px;
}
/* Dark mode override */
body.dark-mode .copyright-box {
  color: white;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

    /* Dark mode Socials button text */
body.dark-mode .dropbtn,
body.dark-mode .arrow {
  color: black !important;
  font-weight: 570 !important;
}

/* Dark mode Profiles button */
body.dark-mode .profiles-button {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Dark mode Photos button */
body.dark-mode .photos-button {
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ababab !important;
}


.material-dialog {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10005;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.dialog-content {
  background-color: #e8f6ff;
  border-radius: 28px;
  padding: 24px;
  padding-top: 5px;
  box-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),
              0px 24px 38px 3px rgba(0,0,0,0.14),
              0px 9px 46px 8px rgba(0,0,0,0.12);
  max-width: 500px;
  width: 70%;
  text-align: left;
  transform: scale(0.8);
  opacity: 0;
  animation: slideIn 0.3s ease-out forwards;
}

.dialog-content h2 {
  font-family: "Roboto";
  font-optical-sizing: auto;
font-style: normal;
font-weight: 450;
  font-size: 24px;
  color: #1C1B1F;
  margin-bottom: -10px;
  line-height: 52px;
}

.dialog-content p {
  font-family: "Roboto";
font-optical-sizing: auto;
font-style: normal;
  font-size: 14px;
  font-weight: 450;
  color: #49454F;
  margin-bottom: 24px;
  line-height: 24px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 24px;
}

.material-button {
  font-family: "Roboto";
font-optical-sizing: auto;
font-style: normal;
font-weight: 520;
  font-size: 15px;
  padding: 10px 12px;
  border: none;
  background-color: transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease-out;
  text-transform: capitalize;
  min-width: 48px;
  min-height: 40px;
}

.material-button.text-button {
  color: #007BFF;
}

.material-button.text-button:active {
  background-color: rgba(103, 80, 164, 0.12);
  transform: translateY(1px);
}

.material-dialog.closing {
  animation: fadeOut 0.3s ease-in forwards;
}

.material-dialog.closing .dialog-content {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}




a.info-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px;
  background-color: rgba(255, 255, 255, 0.3); /* translucent white */
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

a.info-button svg {
  width: 20px;
  height: 20px;
}

/* Dark mode */
body.dark-mode a.info-button {
  background-color: rgba(0, 0, 0, 0.3);
  transform: scale(1.2);
}

body.dark-mode a.info-button svg circle,
body.dark-mode a.info-button svg rect,
body.dark-mode a.info-button svg circle:last-child {
  stroke: white;
  fill: none;
}
    .toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Slightly grey with opacity */
  color: white;
  padding: 8px 16px; /* Smaller padding */
  border-radius: 20px;
  font-size: 14px; /* Smaller text size */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 10000; /* High z-index to ensure it's on top */
  white-space: nowrap; /* Ensure it's a single line */
}

.toast.show {
  opacity: 1;
  visibility: visible;
}
  /* General Styles for the Notification */
  .notification {
  position: fixed;
  top: 7%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-100%);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'OneUISans', sans-serif;
  color: #333;
  z-index: 10007;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  line-height: 1.3;
  text-align: left;
}

.notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.notification.hide {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-100%);
  transition: opacity 0.5s, transform 0.5s;
}

.notification-content {
  width: 100%; /* Ensures left-aligned text takes up full width */
}

.notification-content h4 {
  margin: 0 0 -1px 0; /* Very small space between title and paragraph */
  font-size: 20px;
  font-weight: 750;
}

.notification-content p {
  margin: 0;
  font-size: 16px;
}
    @keyframes fadeBounceIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card h1,
.card h2,
.card h3,
.card p {
  animation: fadeBounceIn 0.6s ease forwards;
}
    /* Popup overlay */
#img-popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

#img-popup-overlay img {
  position: absolute;
  border-radius: 12px;
  will-change: transform, border-radius;
  cursor: grab;
  user-select: none;
  max-width: none;
  transition: all 0.25s cubic-bezier(0.33, 1, 0.68, 1);
  touch-action: none;
}
.popup-img {
  cursor: pointer;
}

.passcode-overlay {
  touch-action: manipulation;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(50px);
  background: conic-gradient(
  from 0deg at 50% 50%,
  #00FFFF,   /* Pure Electric Blue / Cyan */
  #1E90FF,   /* Dodger Blue (a vibrant, slightly darker blue) */
  #00BFFF,   /* Deep Sky Blue */
  #00FFFF    /* Back to Pure Electric Blue */
);
  z-index: 10002;
  display: flex;
  justify-content: center;
  align-items: center;
}

.passcode-title {
  font-size: 17px;
  margin: 0 0 0px;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  padding: 0 1px; /* Optional side padding for nice spacing */
  box-sizing: border-box;
}

.passcode-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7); /* Light gray on dark background */
  margin-top: 0px;
  margin-bottom: 10px;
  text-align: center;
}

.passcode-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  padding-top: 80px; /* ✅ Pushes content downward inside the box */
}

.passcode-box {
  background: rgba(255, 255, 255, 0.0);
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ Centers dots & numpad horizontally */
  justify-content: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.passcode-box.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.passcode-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.passcode-dot {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  opacity: 0.2;
  transition: opacity 0.2s, transform 0.2s;
}

.passcode-dot.filled {
  opacity: 1;
  transform: scale(1.3);
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px;  /* wider horizontal spacing */
  row-gap: 15px;     /* vertical spacing stays the same */
  justify-items: center;
  align-items: center;
}

.numpad button {
  width: 65px;
  height: 65px;
  font-size: 1.8rem; /* for number */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;

  /* NEW - stack number + letters vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px; /* space between number and letters */
  font-family: "OneUISans", sans-serif;
  user-select: none;
  padding: 0;
}

.numpad button > * {
  margin: 0;
  padding: 0;
  line-height: 1;
  user-select: none;
}

.numpad button > :first-child {
  font-size: 1.8rem; /* number size */
  font-weight: 550;
}

.numpad button .letters {
  font-size: 0.60rem;
  color: rgba(255, 255, 255, 1.0);
  font-weight: 500;
  text-align: center;
  width: 100%;
  user-select: none;
}

.numpad button.no-letters span {
  transform: translateY(-7px); /* adjust as needed for alignment */
}

.numpad button:active {
  transform: scale(0.95);
}

.numpad .empty {
  background: transparent;
  pointer-events: none;
}

.numpad button.backspace {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit; /* Makes the icon follow theme */
  height: 100%; /* Optional: ensures full height */
  width: 100%;  /* Optional: ensures full width */
}

.numpad button.backspace svg {
  width: 28px;
  height: 28px;
}

.numpad button.ok {
  opacity: 0.5;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.0) !important;
  box-shadow: none;
  border: none;
}

.numpad button.ok:hover {
  background: rgba(255, 255, 255, 0.1); /* Optional subtle hover */
}

.passcode-overlay.fade-out {
  animation: oneUIFadeOut 0.4s ease forwards;
}

@keyframes oneUIFadeOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.05) translateY(20px);
  }
}

.passcode-display {
  position: relative;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passcode-info,
.passcode-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease;
  text-align: center;
}

.passcode-info.hidden {
  opacity: 0;
  pointer-events: none;
}

.passcode-dots {
  opacity: 0;
  pointer-events: none;
}

.passcode-dots.visible {
  opacity: 1;
  pointer-events: auto;
}
