/* 
   GLOBAL STYLES
 */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
  }
  
  /* 
   BACKGROUNDS 
*/
  
  body.default-page {
    background: url('../img/seal-background.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }
  
  body.game-page {
    background: url('../img/underwater.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    position: relative;
  }
  
  /* 
LANDING PAGE
 */
  
 .landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  text-align: center;
}



.logo {
  width: 80vw;         /* increase from 60vw */
  max-width: 700px;    /* increase from 500px */
  height: auto;
  animation: floatLogo 3s ease-in-out infinite;
}
  
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

  .play-button {
    width: 350px;
    max-width: 90%;
    margin-top: -20px;
    transition: 0.3s;
  }
  
  .play-button:hover {
    transform: scale(1.1);
  }
  
  /* 
 DRESSUP PAGE
 */
  
  .dressup-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    padding: 20px;
  }
  
  .customization-box {
    background: rgba(72, 0, 130, 0.85);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
  }
  
  .seal-avatar {
    width: 50%;
    max-width: 400px;
  }
  
  .outfit-selection {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  .outfit-option.locked {
    width: 100px;
    border-radius: 8px;
    filter: grayscale(90%) brightness(100%);
    opacity: 0.6;
    cursor: not-allowed;
    transition: transform 0.2s ease-in-out;
  }
  
  .outfit-option.locked:hover {
    transform: scale(1.1);
  }

  .vip-lock {
    font-size: 1rem;
    color: #ffcc00;
    margin-top: 10px;
  }
  
  .continue-btn {
    background: crimson;
    padding: 12px 20px;
    color: white;
    font-size: 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
  }
  
  .continue-btn:hover {
    background: darkred;
  }
  
  /* SIGNUP PAGE
 */
  
  .signup-container {
    background: rgba(72, 0, 130, 0.85);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    color: white;
    margin-right: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  }
  
  h1 {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
  }
  
  input, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-top: 5px;
    font-size: 1rem;
  }
  
  .input-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #dddddd;
    margin: 3px 0 10px;
  }
  
  .birthday-select {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  
  .agreement-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 20px;
  }
  
  .agreement-box strong {
    font-size: 1rem;
  }
  
  .terms-text {
    font-size: 0.9rem;
    margin-top: 20px;
  }
  
  .signup-btn {
    background: darkred;
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .signup-btn:hover {
    background: rgb(150, 0, 0);
    transform: scale(1.05);
  }
  
  /*  HOME PAGE
*/
  
  .seal-logo {
    position: fixed;
    top: 10px;
    left: 20px;
    width: 160px;
    z-index: 10;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  }
  
  .seal-logo:hover {
    filter: drop-shadow(0 0 12px #ffb6f9);
    transform: scale(1.05);
  }
  
  .navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 35px;
    z-index: 10;
    align-items: center;
  }
  
  .nav-btn img {
    width: 65px;
    height: 65px;
    transition: 0.2s ease-in-out;
  }
  
  .nav-btn img:hover {
    transform: scale(1.1);
  }
  
  .exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .exit-btn img {
    width: 45px;
    height: auto;
    transition: transform 0.2s ease-in-out;
  }
  
  .exit-btn img:hover {
    transform: scale(1.1);
  }

  /* 🦭 Roaming Seal */
.home-page .seal-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.home-page .seal-avatar {
  position: absolute;
  width: 150px;
  animation: roamSealSmooth 15s linear infinite;
}

@keyframes roamSealSmooth {
  0%   { top: 60%; left: 10%; }
  25%  { top: 50%; left: 40%; }
  50%  { top: 30%; left: 70%; }
  75%  { top: 45%; left: 35%; }
  100% { top: 60%; left: 10%; }
}
  /* CHAT PAGE STYLES*/

body.chatroom-page {
    background: url('../img/seal-background.png') no-repeat center center/cover;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    font-family: Arial, sans-serif;
  }
  
  .chatroom-container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .chatroom-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75vw;
    max-width: 1000px;
    z-index: 1;
  }
  
  /* Message bubbles */
  .chat-message {
    position: absolute;
    width: 280px;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s forwards;
  }
  
  .msg1 { top: 150px; left: 735px; animation-delay: 0.5s; }
  .msg2 { top: 240px; left: 735px; animation-delay: 1.5s; }
  .msg3 { top: 340px; left: 735px; animation-delay: 2.5s; }
  .msg4 { top: 440px; left: 735px; animation-delay: 3.5s; }
  
  @keyframes fadeIn {
    to { opacity: 1; }
  }
  
  .chat-options {
    position: absolute;
    bottom: 152px;
    left: 63.4%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
  }
  
  .chat-options button {
    background: white;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 0.8rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: 0.2s ease-in-out;
  }
  
  .chat-options button:hover {
    transform: scale(1.05);
    background: #e8f5ff;
  }
  
  /* POPUPS*/
  
  .hidden {
    display: none;
  }
  
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: none; /* stays hidden until shown via JS */
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  .popup.show {
    display: flex;
  }
  
  .popup img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  }
  
  /* GAME PAGE*/
  
  .game-title {
    display: block;
    width: 300px;
    max-width: 80%;
    margin: 100px auto 20px; /* ⬅️ increased top margin */
    animation: floatTitle 4s ease-in-out infinite;
    z-index: 2;
    position: relative;
  }
  
  
  @keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .bubble-container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
  }
  
  .bubble-wrapper {
    position: absolute;
  }
  
  .bubble {
    width: 90px;
    animation: floatBubble 6s ease-in-out infinite;
    cursor: pointer;
  }
  
  @keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
  }
  
  #game-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
  }
  
  #game-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
  }
  
  #game-popup.show {
    display: flex;
  }
  
  body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #eaf6ff;
    overflow: hidden;
    position: relative;
    font-family: Arial, sans-serif;
  }
  
  .exit-logo {
    width: 600px;
    max-width: 100%;
    display: block;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 4s ease-in-out infinite;
    z-index: 5;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .exit-logo:hover {
    filter: drop-shadow(0 0 20px #ff85d0); /* pink glow */
    transform: translate(-50%, -50%) scale(1.05);
  }
  
  @keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
  }

  .floating-photo {
    position: absolute;
    top: 40%;
    left: -20%;
    width: 200px;
    opacity: 0.4;
    animation: driftPhoto 20s linear infinite;
  }
  
  @keyframes driftPhoto {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(140vw);
    }
  }
  
  .exit-blurb {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.75);
    padding: 20px 30px;
    border-radius: 20px;
    font-size: 1rem;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(255, 27, 153, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid #ffdff5;
    color: #FF1B99;
    z-index: 3;
  }