* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0b0b0b;
  color: white;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;

  padding: 20px;
}

.chat-container {
  width: 100%;
  max-width: 800px;

  background: #151515;

  border: 1px solid #222;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.chat-header {
  background: #111;
  padding: 25px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.chat-header h1 {
  color: #ffcc00;
  margin-bottom: 10px;
}

.chat-header p {
  color: #999;
}

.username-box {
  padding: 20px;
  border-bottom: 1px solid #222;
}

.username-box input {
  width: 100%;
  padding: 15px;
  background: #0b0b0b;
  border: 1px solid #333;
  border-radius: 10px;
  color: white;
}

.chat-box {
  height: 500px;
  overflow-y: auto;
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  background: #1d1d1d;
  padding: 15px;
  border-radius: 15px;
  border-left: 4px solid #ffcc00;
}

.message strong {
  color: #ffcc00;
  display: block;
  margin-bottom: 8px;
}

.message p {
  color: #ddd;
  word-wrap: break-word;
}

.chat-input {
  display: flex;
  gap: 10px;

  padding: 20px;

  border-top: 1px solid #222;
}

.chat-input input {
  flex: 1;

  padding: 15px;

  background: #0b0b0b;
  border: 1px solid #333;

  border-radius: 10px;

  color: white;
}

.chat-input button {
  padding: 15px 25px;

  background: linear-gradient(135deg, #ffcc00, #ff8800);

  border: none;

  border-radius: 10px;

  font-weight: bold;

  cursor: pointer;
}

.chat-input button:hover {
  opacity: 0.9;
}

/* MOBIEL */
@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  .chat-box {
    height: 400px;
  }

  .chat-input {
    flex-direction: column;
  }

  .chat-input button {
    width: 100%;
  }

}