body {
  font-family: system-ui, sans-serif;
  background: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  margin: 0;
  padding-top: 2rem;
}

header, footer {
  text-align: center;
  margin-bottom: 1rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers horizontally */
  justify-content: flex-start; /* keeps content top-aligned */
  width: 100%;
}

hr {
  border: none;            /* remove default border */
  height: 2px;             /* thickness of the line */
  background-color: #ECEDEE; /* color of the line */
  width: 500px;              /* optional, controls length */
  margin: 2rem auto;       /* vertical spacing and centered */
}

button {
  background: #8A00CC;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

button:hover {
  background: #6b009e;
}

#channelInput {
  width: 100px;
  padding: 14px 18px;
  font-size: 15px;

  border: none;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: 0.2s ease;
}

/* Focus effect */
#channelInput:focus {
  background: white;
  box-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
  transform: scale(1.03);
}


.title {
  text-align: center;
  font-family: 'Arial', sans-serif;
  font-size: 5rem; /* desktop size */
  color: #ECEDEE;
  letter-spacing: 2px;
  margin: 2rem 0;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.textt {
  font-family: 'Arial', sans-serif;
  margin: 2rem 0;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}


/* CLEAN HERO TITLE (modern, readable) */
.hero-clean {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  text-align: center;
  color: white;

  /* subtle outline effect without looking messy */
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(0, 0, 0, 0.85);

  /* transparency background panel */
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);

  animation: fadeIn 1s ease;
}

/* SUBTITLE (smaller, smoother) */
.hero-clean-sub {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  color: #ffddff; /* light purple accent */

  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.7);

  padding: 8px 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);

  margin-top: 5px;
  animation: fadeIn 1.4s ease;
}

/* simple fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* SPECIAL BUTTON WITH FLOAT + GLOW ANIMATION */
button.special-glow {
  background: linear-gradient(45deg, #8A00CC, #FF00FF);
  padding: 14px 14px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  margin-top: 60px; /* adjust value to move button lower */
  color: white;
  cursor: pointer;
  position: relative;

  animation: glowPulse 2.4s infinite alternate ease-in-out,
             floatUpDown 3s infinite ease-in-out;

  box-shadow: 0 0 15px rgba(138, 0, 204, 0.65), 
              0 0 30px rgba(255, 0, 255, 0.45);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect — stronger glow + slight scale */
button.special-glow:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(138, 0, 204, 1),
              0 0 60px rgba(255, 0, 255, 0.9);
}

/* Glow animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 12px rgba(138, 0, 204, 0.55),
                0 0 25px rgba(255, 0, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 28px rgba(138, 0, 204, 0.95),
                0 0 55px rgba(255, 0, 255, 0.75);
  }
}

/* Floating animation */
@keyframes floatUpDown {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}


/* Hover effect */
button.special-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(138, 0, 204, 0.9), 0 0 40px rgba(255, 0, 255, 0.6);
}

/* Glow animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 15px rgba(138, 0, 204, 0.6), 0 0 30px rgba(255, 0, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 25px rgba(138, 0, 204, 0.9), 0 0 50px rgba(255, 0, 255, 0.7);
  }
}


/* separate spans for XML and MARKET */
.title .xml,
.title .market {
  display: inline-block;
}

/* MOBILE ADJUSTMENT */
@media (max-width: 600px) {
  .title {
    font-size: 3rem; /* smaller font for mobile */
  }

  .title .xml {
    display: block;   /* XML goes on its own line */
  }

  .title .market {
    display: block;   /* MARKET goes on the next line */
  }
}

#msgBoard {
  background: rgba(34, 46, 64, 0.7);
  padding: 1rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  margin-top: 2rem;
}

#msgBoard h2 {
  margin-top: 0;
  color: #ffffffd9;
}

#msgForm {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

#msgInput {
  flex: 0.9;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
}

#msgList {
  list-style: none;
  padding: 0;
  text-align: left;
}

#msgList li {
  background: #334155;
  margin: 0.25rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  word-break: break-word;
}

#channelInput,
#msgInput {
  width: 90px;
  padding: 14px 18px;
  font-size: 1rem;

  border: none;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.35); /* LESS transparent → more readable */
  color: white;

  outline: none;
  transition: 0.2s ease;
}

/* Focus effect */
#channelInput:focus,
#msgInput:focus {
  background: rgba(255, 255, 255, 0.45); /* slightly brighter on focus */
  box-shadow: 0 0 10px rgba(138, 0, 204, 0.25);
  transform: scale(1.03);
}

/* Make placeholder text visible */
#channelInput::placeholder,
#msgInput::placeholder {
  color: rgba(255, 255, 255, 0.8);  /* almost white */
}
