@import url("https://hackersm9.github.io/Fonts/fonts.css");

/* ------------------------------------
   RESET & BASE STYLES
------------------------------------ */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: #1e1e2f; /* Dark modern background */
  color: #ccc; /* All text in soft grey */
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  user-select: none;
}

/* ------------------------------------
   TYPOGRAPHY
------------------------------------ */
.l-title,
.title {
  font-family: 'Poppins', sans-serif;
  color: #ccc; /* Grey title */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.l-title {
  font-size: 2.3rem;
  margin: 0;
}

.l-tagline {
  font-family: 'Cursive', cursive;
  color: #aaa;
  font-size: 1.7rem;
  margin-top: auto;
  margin-bottom: 20vh;
  padding-top: 28vh;
}

.info {
  color: #999;
  align-self: flex-end;
  padding-bottom: 8px;
  margin-top: -18px;
  margin-bottom: -10px;
}

/* ------------------------------------
   HEADER
------------------------------------ */
header {
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  background-color: #1e1e2f;
}

.icon-svg {
  width: 60px;
  height: 60px;
  fill: #666; /* Icon in grey */
  display: inline-block;
  vertical-align: middle;
}

.title {
  font-size: 2.5em;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

/* ------------------------------------
   FOOTER
------------------------------------ */
footer {
  text-align: center;
  margin-top: 30px;
  padding: 10px 0 5px;
  background-color: #1e1e2f;
}

footer p,
footer a {
  color: #888;
  font-size: 14px;
  margin: 0;
  padding: 1.5px;
  text-decoration: none;
}

/* ------------------------------------
   LOADING SCREEN
------------------------------------ */
.l-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 100vh;
  width: 100vw;
  background-color: #1e1e2f;
  color: #ccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.l-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l-icon {
  width: 135px;
  margin-bottom: -25px;
  padding-top: 11vh;
}

/* ------------------------------------
   HR-LINE
------------------------------------ */
hr {
  width: 70%;
  height: 2px;
  background: #555;
  margin: 15px 0 -1px;
  border: none;
  border-radius: 10px;
  animation: subtleGlow 3s infinite;
}

/* ------------------------------------
   INPUTS & BUTTONS
------------------------------------ */
input,
#messageInput {
  background: #2a2a3d;
  border: none;
  color: #ccc;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  width: 100%;
}

input:focus,
#messageInput:focus {
  border: 1px solid #555;
  outline: none;
}

button {
  background: #2a2a3d;
  border: none;
  color: #ccc;
  border-radius: 50px;
  padding: 13px;
  margin: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3c3c4e;
  animation: subtleGlow 3s infinite;
}

#send-button,
#exit-button {
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#send-button {
  background-color: #444;
  margin: 5px;
}

#send-button i {
  color: #ccc;
}

#exit-button {
  background-color: #44475a;
  margin: 5px;
}

#exit-button:hover {
  background-color: #e74c3c;
}

/* ------------------------------------
   CHATBOX
------------------------------------ */
.chatbox {
  border: 1px solid #3a3a50;
  width: 90%;
  height: 50vh;
  overflow-y: auto;
  margin: 20px 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  background-color: #1c1c2e;
  border-radius: 10px;
}

.self-message {
  align-self: flex-end;
  background-color: #2e2e44;
  color: #ccc;
  padding: 8px;
  border-radius: 10px;
  margin: 5px;
  max-width: 70%;
}

.partner-message {
  align-self: flex-start;
  background-color: #3c3c4e;
  color: #ccc;
  padding: 8px;
  border-radius: 10px;
  margin: 5px;
  max-width: 70%;
}

/* ------------------------------------
   INPUT CONTAINER
------------------------------------ */
.input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 10px 0;
}

.butline {
  display: flex;
}

/* ------------------------------------
   STATUS & POPUPS
------------------------------------ */
#partnerStatus {
  background-color: #444;
  color: #ccc;
  padding: 10px;
  margin-top: -8px;
  border-radius: 20px;
  font-weight: bold;
  animation: fadeIn 1s;
}

.popup-message {
  position: absolute;
  background-color: #333;
  color: #ccc;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(200, 200, 200, 0.1);
  font-size: 14px;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

@media (max-width: 600px) {
  .popup-message {
    max-width: 90vw;
    padding: 10px 14px;
    font-size: 13px;
    word-wrap: break-word;
  }
}

/* ------------------------------------
   ANIMATIONS & UTILITIES
------------------------------------ */
.hidden {
  display: none;
}

label {
  align-self: flex-start;
  color: #aaa;
}

.lin {
  font-size: 20px;
  display: inline;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0 0 3px #555, 0 0 6px #555, 0 0 9px #555;
  }
  50% {
    box-shadow: 0 0 5px #555, 0 0 10px #555, 0 0 15px #555;
  }
}
