/* css/dialogue.css — DEEP BLUE GLOW THEME (#000099) + CLOSE BUTTON OUTSIDE */

/* DIALOGUE BOX — CLEAN READABLE FONT (LIKE FINAL FANTASY / PERSONA) */
#dialogueBox,
.dialogue-content,
.dialogue-content * {
  font-family: 'Trebuchet MS', 'Arial', sans-serif !important;
  font-weight: normal !important;
  letter-spacing: 1px;
  line-height: 1.6;
}

/* Keep the highlight bold and glowing */
.dialogue-content .highlight {
  font-family: 'Ethnocentric', 'Orbitron', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 2px;
}

/* LOGO INSIDE DIALOGUE BOX */
.dialogue-logo {
  width: auto;
  height: 100px;
  margin: 0 auto 20px;
  display: block;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

#dialogueBox {
  position: fixed;
  bottom: -600px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  background: linear-gradient(135deg, rgba(10,10,40,0.16), rgba(5,5,25,0.18));
  border: 2px solid #fff;
  border-radius: 32px;
  padding: 60px 50px 90px 50px;
  box-shadow: 
    0 0 100px rgba(0,0,153,0.7),
    inset 0 0 60px rgba(0,0,153,0.2);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 40px;
  font-weight: 900;
  text-align: center;
  line-height: 1.5;
  z-index: 99999;
  backdrop-filter: blur(20px);
  transition: bottom 2.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 2s;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
}

#dialogueBox.dialogue-visible {
  bottom: 70px;
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE & TABLET — DIALOGUE BOX STOPS AT 150px FROM BOTTOM */
@media (max-width: 1024px) {
  #dialogueBox.dialogue-visible {
    bottom: 300px !important;   /* ← FORCES 150px ON TABLET & MOBILE */
  }
}

/* EXTRA SAFETY FOR SMALL PHONES */
@media (max-width: 480px) {
  #dialogueBox.dialogue-visible {
    bottom: 90px !important;
  }
}

.dialogue-content {
  margin-bottom: 40px;
}

.dialogue-content .highlight {
  color: #fff;
  font-size: 1.2em;
  text-shadow: 0 0 60px #000099;
  display: block;
  margin: 20px 0;
  animation: bluePulse 3s infinite;
}

@keyframes bluePulse {
  0%, 100% { text-shadow: 0 0 60px #000099; }
  50% { text-shadow: 0 0 100px #000099; }
}

/* CLOSE BUTTON — OUTSIDE THE BOX (BOTTOM CENTER) */
#dialogueBox .close-btn {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,50,0.8);
  border: 2px solid #ccc;
  color: #ccc;
  font-size: 48px;
  font-weight: 100;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(0,0,153,0.9);
  backdrop-filter: blur(10px);
  z-index: 100000;
}

#dialogueBox .close-btn:hover {
  background: rgba(0,0,153,0.3);
  transform: translateX(-50%) scale(1.25) rotate(90deg);
  box-shadow: 0 0 120px #000099;
}

/* Mobile */
@media (max-width: 768px) {
  #dialogueBox {
    font-size: 30px;
    padding: 50px 30px 100px;
  }
  #dialogueBox .highlight { font-size: 1.5em; }
  #dialogueBox .close-btn {
    width: 80px;
    height: 80px;
    font-size: 42px;
    bottom: -40px;
  }
}

@media (max-width: 480px) {
  #dialogueBox {
    font-size: 26px;
    padding: 40px 20px 90px;
  }
}