body {
    margin: 0;
    height: 100vh;
    color: white;
    background-color: #333; /* Grey background */
    overflow: hidden;
    overflow-y: auto;
  }

  .constellation {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .chatbox {
    width: 600px;               /* Set your desired width */
    height: auto;              /* Set your desired height */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    border-radius: 15px;        /* Rounded edges */
    color: white;               /* Optional: text color */
    padding: 20px;              /* Optional: inner spacing */
  }

  .indexbox {
    width: 600px;               /* Set your desired width */
    height: auto;              /* Set your desired height */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    border-radius: 15px;        /* Rounded edges */
    color: white;               /* Optional: text color */
    padding: 20px;              /* Optional: inner spacing */
  }

  .node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: moveNode 6s infinite alternate ease-in-out;
  }

  /* Chat container */
  #chat-container {
    position: relative;
    z-index: 1; /* above the canvas */
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* Header */
  #chat-container h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
  }
  
  /* Messages area */
 

  #messages {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.message {
    max-width: 70%;       /* Prevent messages from stretching too far */
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    word-wrap: break-word;
}

.message strong {
    display: block;
    margin-bottom: 4px;
}

/* Your messages (right) */
.message.you {
    align-self: flex-end;
    background-color: #006f83; /* Light green */
    text-align: right;
}

/* Contact messages (left) */
.message.contact {
    align-self: flex-start;
    background-color: #313131; /* Light gray */
    text-align: left;
}

  
  /* Form */
  #chatForm {
    display: flex;
  }
  
  #messageInput {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
  }
  
  #chatForm button {
    padding: 10px 15px;
    border: none;
    background: #95b6c4;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
  }
  
  #chatForm button:hover {
    background: #0ea5e9;
  }

  @keyframes moveNode {
    0% { transform: translate(0, 0); }
    50% { transform: translate(calc(-20px + 40px * var(--i)), calc(-20px + 40px * var(--i))); }
    100% { transform: translate(0, 0); }
  }

  canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
#messages::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#messages {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

#gifPreview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
#gifPreview img:hover {
  transform: scale(1.1);
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

a {
  color: white;
  text-decoration: none;
}

.emoji-btn {
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ff66cc;
}
.emoji-btn:hover {
  transform: scale(1.2);
}

#emojiPopup {
  display: none;
  position: absolute;
  bottom: 50px;
  left: 70px;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  max-width: 250px;
  text-align: center;
  font-size: 22px;
}

.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.emoji-grid span {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.emoji-grid span:hover {
  transform: scale(1.3);
}

.accept-btn, .decline-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.accept-btn { color: #00ff80; }      /* bright green */
.accept-btn:hover { transform: scale(1.2); color: #00cc66; }

.decline-btn { color: #ff5050; }     /* red */
.decline-btn:hover { transform: scale(1.2); color: #cc0000; }

/* === Force custom styling for the login button === */
input[type="submit"].login-btn {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: linear-gradient(90deg, #80cfff, #4ca1ff) !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 40px !important;
  border-radius: 30px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  box-shadow: 0 0 15px rgba(128, 207, 255, 0.5) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

input[type="submit"].login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(128, 207, 255, 0.9);
  background: linear-gradient(90deg, #4ca1ff, #80cfff);
}

input[type="submit"].login-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(128, 207, 255, 0.7);
}
