 @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;
      background: linear-gradient(90deg, #00FCFF, #00B0FF););
      background-size: cover;
      background-repeat: no-repeat;
      font-family: 'OneUISans', sans-serif;
      color: white;
    }

    .scroll-container {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      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(3) .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;
      opactiy: 0;
    }
   .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: 24px;
      margin: 10px 0 5px;
    }

    .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: 1000;
    }

    .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);
    }

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

    .fullscreen-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(5px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .fullscreen-overlay img {
      max-width: 90vw;
      max-height: 90vh;
      border-radius: 20px;
      transition: transform 0.3s ease;
    }

    @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(90deg, #00FCFF, #00B0FF);
  background-size: cover;
  background-repeat: no-repeat;
  color: white; /* Ensure all text is white in dark mode */
}

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

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 */
}

/* Button text styling in dark mode */
body.dark-mode button {
  color: black; /* Make button text black */
}
    .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: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  padding: 5px 10px;
  height: 30px;
  max-width: 500px;
  width: 370px;
  font-size: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.2); /* transparent white */
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  line-height: 30px;
}

/* Dark mode override */
body.dark-mode .copyright-box {
  color: white;
  background: rgba(0, 0, 0, 0.2); /* transparent black */
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}
    .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: 10000;
  text-align: center;
  padding: 20px;
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .landscape-warning {
    display: flex;
  }
  .scroll-container {
    display: none;
  }
}
    /* Dark mode Socials button text */
body.dark-mode .dropbtn,
body.dark-mode .arrow {
  color: black !important;
}

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

/* Dark mode Photos button */
body.dark-mode .photos-button {
  background-color: #7d7e80 !important;
  color: #d3d3d3 !important;
}

.ios-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.0); /* lighter overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.ios-popup {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  color: black;
  padding: 18px 22px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-align: center;
  width: 60%;
  max-width: 300px;
  word-break: break-word;
  white-space: normal;
}

.ios-popup.show {
  transform: scale(1);
  opacity: 1;
}

.ios-popup button {
  margin-top: 5px;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 600;
  color: #007aff; /* iOS blue */
  cursor: pointer;
  transition: color 0.2s ease;
}

.ios-popup button.destructive {
  color: #ff3b30; /* iOS red for destructive actions */
}

.ios-popup button:hover {
  color: #0051cc;
}
     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: 28px;
  height: 28px;
}

/* 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: grey;
  fill: none;
}
    #iceCubeLogo {
  cursor: pointer;
  width: 100px;
  margin: 30px;
}

#iceGame {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 12000;
  overflow: hidden;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#iceGame.active {
  display: block;
  opacity: 1;
}

#backgroundImage {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#iceCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 13000;
}

#iceCubeCursor {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 14000;
  display: none;
  transform: translate(-50%, -50%);
}

#buttons {
  position: fixed;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  z-index: 15000;
}

#resetGame, #closeGame {
  font-size: 18px;
  background: rgba(255, 255, 255, 0.0); /* translucent white */
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
  border-radius: 30px;           /* rounded corners */
  backdrop-filter: blur(8px);    /* blur background behind button */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* subtle shadow */
  transition: transform 1s ease, background 0.3s ease, color 0.3s ease;
  transform: scale(1);
}

#resetGame:hover, #closeGame:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
