/* ---------- Base ---------- */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  min-height: 100vh;
  height: auto;
}

body {
  background: linear-gradient(180deg,#2b27a0 0%, #1e1881 100%) fixed;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #002b36;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Corner logo ---------- */
.corner-logo {
  position: fixed;
  top: 18px;
  left: 18px;
  width: clamp(140px, 18vw, 220px);
  height: auto;
  z-index: 120;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

/* ---------- Main layout ---------- */
.content {
  width: 100%;
  max-width: 1400px;
  margin: 7vh auto 6vh;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px;
}

/* ---------- Tree container ---------- */
.tree-container {
  position: relative;
  width: clamp(480px, 58vw, 980px);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(2vh);
}

.xmas-tree-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ---------- Info box ---------- */
.info-box {
  width: clamp(240px, 26vw, 440px);
  background: rgba(50, 120, 255, 0.35); /* NEW different blue shade */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #eaf2ff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  transform: translateY(1.5vh);
  line-height: 1.45;
  border: 1px solid rgba(255,255,255,0.28);
}

.info-box h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  color: #fb1c1b; /* red header */
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255,255,255,0.45);
}

.info-box p {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  color: #eaf2ff; /* default text */
}

/* green highlighted text — add !important to override parent color */
.green-text {
  color: #19d35c !important; /* bright green */
  font-weight: 700;
}



/* ---------- Bulbs (smooth scaling, natural size) ---------- */
.bulb-container {
  position: absolute;
  width: clamp(10px, 2vw, 38px); 
  height: clamp(10px, 2vw, 38px);
  transform: translate(-50%, -50%);
  z-index: 50;
}

.bulb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bulb-color);
  box-shadow: 0 0 10px var(--bulb-color);
  animation: blink var(--blink-duration, 1s) infinite alternate;
  cursor: pointer;
}

@keyframes blink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.09); }
  100% { opacity: 1; transform: scale(1); }
}

.bulb.complete {
  background: #666 !important;
  box-shadow: 0 0 5px #444;
  animation: none;
  cursor: default;
}


/* ---------- Snow ---------- */
.snow {
  position: fixed;
  top: -15px;
  background: #e6f7ff;
  border-radius: 50%;
  pointer-events: none;
  animation: fall linear;
  z-index: 9999;
  will-change: transform;
}

@keyframes fall {
  to { transform: translateY(100vh); }
}

/* ---------- Tablets & Small Laptops ---------- */
@media (max-width: 1200px) {
  .content {
    max-width: 1000px;
    padding: 0 24px;
    gap: 32px;
  }

  .tree-container {
    width: 72vw;
  }

  .info-box {
    width: clamp(240px, 36vw, 400px);
  }
}

/* ---------- iPads ---------- */
@media (max-width: 980px) {

  .content {
    gap: 28px;
    margin-top: 7vh;
    flex-direction: column;
    align-items: center;
  }

  .tree-container {
    width: 82vw;
    transform: translateY(2vh);
  }

  .info-box {
    width: clamp(240px, 70vw, 380px); /* narrower + centered */
    transform: none;
    text-align: center;
  }

  .corner-logo {
    width: clamp(120px, 20vw, 190px);
    top: 12px;
    left: 12px;
  }
}

/* ---------- Mobile: Phones ---------- */
@media (max-width: 680px) {

  .corner-logo {
    width: 42vw;
    max-width: 150px;
    top: 10px;
    left: 10px;
  }

  .content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 13vh;
    padding: 0 12px;
  }

  .tree-container {
    width: 95%;
    transform: translateY(0);
  }

  .xmas-tree-image {
    max-width: 380px;
  }

  .info-box {
    width: 90%;
    max-width: 330px;   /* MUCH narrower on small screens */
    padding: 16px 16px;
    text-align: center;
  }

  .snow {
    width: 6px;
    height: 6px;
  }
}

/* ---------- Very Small Phones ---------- */
@media (max-width: 400px) {

  .corner-logo {
    width: 48vw;
  }

  .content {
    margin-top: 15vh;
  }

  .tree-container {
    width: 100%;
  }

  .info-box {
    width: 88%;
    max-width: 300px;  /* very narrow for tiny phones */
    padding: 14px 14px;
  }
}
