@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@400;500&display=swap');

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(160deg, #0b0c2a, #0d1d24);
  color: #0ff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.chat-container {
  width: 400px;
  background: #101b2c;
  border: 1px solid #0ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px #00ffff44;
  display: flex;
  flex-direction: column;
}

.chat-log {
  height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 5px;
  background-color: #081018;
  border-radius: 8px;
  padding: 10px;
  font-family: 'Inter', sans-serif; /* More readable font */
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  font-family: 'Inter', sans-serif; /* Readable chat text */
}

.user {
  align-self: flex-end;
  background-color: #1a2c1f;
  color: #0f0;
  border: 1px solid #0f0;
}

.ai {
  align-self: flex-start;
  background-color: #1e1a2c;
  color: #f0f;
  border: 1px solid #f0f;
}

#chat-form {
  display: flex;
  gap: 10px;
}

#message-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #0ff;
  border-radius: 6px;
  background-color: #0c1823;
  color: #0ff;
}

#message-input::placeholder {
  color: #0ff8;
}

button {
  padding: 10px 16px;
  background-color: #f0f;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background-color: #c600ff;
}

/* Mobile-friendly adjustments for OddBot AI */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .chat-container {
    width: 100%;
    max-width: 100%;
    height: 90vh;
    margin: 0;
    border-radius: 10px;
  }

  .chat-header {
    font-size: 1.2rem;
    padding: 10px;
    text-align: center;
  }

  .chat-log {
    height: calc(100% - 120px);
    font-size: 0.95rem;
  }

  #chat-form {
    flex-direction: column;
    gap: 8px;
  }

  #message-input {
    width: 100%;
    font-size: 1rem;
  }

  button {
    padding: 10px;
    font-size: 1rem;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .chat-header {
    font-size: 1rem;
  }

  .chat-log {
    font-size: 0.9rem;
  }
}

