/* General page style */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; 
  align-items: center; 
  height: 100vh;
  overflow: hidden;
}

/* Main container */
div {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  width: 400px;
  max-width: 90%;
}

/* Title */
h1 {
  text-align: center;
  color: #ff6f61;
  font-size: 1.7rem;
  margin-bottom: 15px;
}

/* Messages area */
.messages-list {
  border: 2px solid #ffb347;
  border-radius: 10px;
  background: #fffaf0;
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

/* Individual message */
.message {
  display: flex;
  flex-direction: column;
  background: #e0f7fa;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* Alternating colors for variety */
.message:nth-child(odd) {
  background: #ffe0e0;
}
.message:nth-child(even) {
  background: #e0f7fa;
}
/* Message username */
.message-username {
  font-weight: bold;
  color: #ff6f61;
  margin-bottom: 4px;
}

/* Message text */
.message-text {
  color: #333;
  font-weight: 500;
  word-break: break-word;
  margin-bottom: 4px;
}

.message-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  background: inherit; 
  padding: 0; 
  margin-top: 2px;
}

/* Timestamp */
.message-timestamp {
  font-size: 0.75rem;
  color: #555;
  opacity: 0.85;
  font-family: "Courier New", monospace;
}


/* Input and button area */
#usernameInput,
#messageInput {
  flex: 1;
  padding: 10px;
  border: 2px solid #ffb347;
  border-radius: 10px;
  outline: none;
  font-size: 0.9rem;
  background: #fffaf0;
}

/* Input focus */
#usernameInput:focus,
#messageInput:focus {
  border-color: #ff6f61;
  box-shadow: 0 0 6px rgba(255, 111, 97, 0.3);
}

/* Send button */
#sendButton {
  min-width: 80px;
  padding: 10px;
  background: #ff6f61;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease-in-out;
}

/* Button hover effect */
#sendButton:hover {
  background: #e85c50;
  transform: scale(1.05);
}

/* Like button */
.like-btn {
  background: none;
  border: 2px solid #ff6f61;
  color: #ff6f61;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover + click animation */
.like-btn:hover {
  background: #ff6f61;
  color: white;
  transform: scale(1.1);
}

/* Username + message + send button inline */
.input-area {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* Landing Page Container */
.landing-container {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
  width: 700px;
  max-width: 90%;
  min-height: 85vh;
  text-align: center;
  overflow-y: auto;
}

.landing-container h1 {
  color: #ff6f61; 
  font-size: 1.9rem;
  margin-bottom: 25px;
}

.landing-container p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.selection-button {
  display: block;
  width: 80%; 
  margin: 15px auto; 
  padding: 10px 0;
  background: #ff6f61;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none; 
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease-in-out, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(255, 111, 97, 0.3); 
}

.selection-button:hover {
  background: #e85c50; 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 6px 12px rgba(255, 111, 97, 0.4); 
}

.chat-option {
  width: 80%;
  background: #fffaf0;
  border: 2px solid #ffb347;
  border-radius: 12px;
  padding: 15px;
  margin: 10px auto 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 179, 71, 0.4);
}

.chat-option h3 {
  color: #ff6f61;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.chat-option p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
}
