html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  display: flex;
  flex-direction: column;
  background: #ffeaa7;
  overflow: hidden;
}
#chatBox {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #fff3e0;
  height: 100%;
}
#chatForm {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fab1a0;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}
#messageInput {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}
#chatForm .file-send-row {
  display: flex;
  flex-direction: row;
  margin-top: 5px;
}
#fileInput {
  flex: 1;
}
#chatForm button {
  margin-left: 5px;
}
.message {
  margin: 10px 0;
  background: #ffeaa7;
  border-radius: 10px;
  padding: 10px;
}
.message .time {
  font-size: 0.8em;
  color: #888;
}
.reactions {
  margin-top: 5px;
}
.reactions span {
  margin-right: 5px;
  cursor: pointer;
  font-size: 1.2em;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom right, #ffcc70, #ff9a76);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fffdf5;
  padding: 20px;
  text-align: center;
  width: 90%;
  max-width: 340px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h2 {
  font-size: 26px;
  color: #e67e22;
  margin-bottom: 15px;
}
.modal-content input {
  margin: 10px 0;
  padding: 12px;
  width: 85%;
  border: 2px solid #ffa94d;
  border-radius: 8px;
  font-size: 16px;
}
.modal-content button {
  padding: 12px 25px;
  background: #f39c12;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.modal-content button:hover {
  background: #e67e22;
}
.hidden {
  display: none;
}