/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* 🌟 Background + base */
body {
  background-image: url("stars2.gif");
  background-repeat: repeat;
  background-position: top left;
  margin: 0;
  font-family: "Comic Sans MS", cursive;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Keeps everything in the middle */
.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🧩 Centers the gif + textbox row perfectly */
.content-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;          /* makes it use full space */
  max-width: 600px;     /* keeps it centered and neat */
  margin: 0 auto 40px;  /* center horizontally */
  gap: 20px;
}

/* 🌈 Rainbow border wrapper */
.text-box-wrapper {
  padding: 10px;
  background: linear-gradient(45deg, #ff00cc, #ff99ff, #ff66ff, #ffff33, #ff00cc);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* 📜 Scrollable text box */
.text-box {
  width: 280px;
  height: 180px;
  background-color: white;
  padding: 20px;
  overflow-y: scroll;
  color: black;
  text-align: center;
}

/* 💖 Glowing scrollbar */
.text-box::-webkit-scrollbar {
  width: 14px;
}
.text-box::-webkit-scrollbar-track {
  background: #ffe6f0;
}
.text-box::-webkit-scrollbar-thumb {
  background-color: #ff99ff;
  border: 2px solid #ffb6ff;
  box-shadow: 0 0 8px #ff99ff;
  transition: box-shadow 0.2s ease;
}
.text-box::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 16px #ff99ff;
}

/* 💫 Spinning GIF (on the left) */
.side-gif {
  width: 450px;   /* 4x bigger than before */
  height: auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(255, 200, 255, 0.7)); /* soft glow */
}

/* 💊 Shaky image below */
.shaky-image {
  display: block;
  margin: 0 auto;
  width: 250px;
  height: auto;
  animation: shake 0.5s infinite alternate;
}

/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(3px); }
}
.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff748b;
  color: white;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 9999;
}

.chat-bubble:hover {
  transform: scale(1.1);
  background-color: #a7d477;
}

.chat-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9998;
}

.chat-popup iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chat-popup.show {
  display: block;
}