body {
  margin: 0;
  padding: 0;
  background-color: white; /* solid black background, images removed */
  color: white;
  font-size: 14px;
  font-family: sans-serif;
  overflow: auto;
}
a {
  color: black;
  font-size: 14px;
}
#main {
  width: 100%;
}
#wrap {
  position: relative;
  margin: 0 auto;
  width: 1100px;
  height: 680px;
  margin-top: 10px;
}
#text {
  width: 272px;
  height: 560px;
  left: 188px;
  top: 80px;
  position: absolute;
}
#code {
  display: none;
  color: black;
  font-size: 16px;
  margin-top: 70px;
  line-height: 25px;
  font-size: larger;
  font-weight: bolder;
}
#clock-box {
  position: absolute;
  left: 60px;
  top: 550px;
  font-size: 28px;
  display: none;
}
#clock-box a {
  font-size: 28px;
  text-decoration: none;
}
#clock {
  margin-left: 48px;
}
#clock .digit {
  font-size: 64px;
}
#canvas {
  margin: 0 auto;
  width: 1100px;
  height: 680px;
}
#error {
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
  display: none;
}
.hand {
  cursor: pointer;
}
.say {
  margin-left: 5px;
}
.space {
  margin-right: 150px;
}

#message-box{
  position: absolute;
  margin-top:450px;
  font-size: 25px;
  font-family: monospace;

}
/* =========================================
   PAGE TRANSITION & FLOATING DECORATIONS
   ========================================= */

/* The Magic Curtain */
.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111111;
    z-index: 99999;
    pointer-events: none;
    transition: opacity 1.2s ease-in-out;
    opacity: 1; 
}

.page-transition-curtain.hidden {
    opacity: 0;
}

/* Floating Balloons */
.balloon {
    position: fixed;
    bottom: -200px;
    z-index: 999;
    opacity: 0.85;
    animation: floatUp 15s ease-in-out infinite;
    pointer-events: none;
}

.b1 { left: 10%; animation-duration: 14s; }
.b2 { right: 15%; animation-duration: 18s; animation-delay: 3s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-60vh) rotate(5deg); }
    100% { transform: translateY(-120vh) rotate(-5deg); }
}

/* Cute MewMew Gif */
.mewmew {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 120px;
    z-index: 999;
    pointer-events: none;
}

/* Next Surprise Button */
.next-surprise-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px; /* Moved to the right so it doesn't block the tree */
    z-index: 99990;
    animation: fadeInBtn 3s ease-in-out 15s forwards; /* Fades in after 15 seconds */
    opacity: 0;
}

@keyframes fadeInBtn {
    to { opacity: 1; pointer-events: auto; }
}

.next-surprise-btn {
    padding: 16px 36px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
    transition: all 0.3s ease;
}

.next-surprise-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.6);
}
