* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
/* Removes the tap highlight for all elements */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Alternatively, target specific elements */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  border: none;
  outline: none;
}

body {
  margin: 0;
  background: #121212;
  color: white;
}

/* SCREENS */
.screen {
  display: none;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.screen input, .screen button {
  padding: 10px;
  margin-top: 10px;
  width: 50%;
  border-radius: 45px;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* CHAT */
.chat {
  display: none;
  height: 100vh;
  flex-direction: column;
}

header {
  background: #6c5ce7;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #1e1e1e;
}

/* MESSAGE BUBBLES */
.message {
  max-width: 70%;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 12px;
  font-size: 14px;
}

.me {
  background: #6c5ce7;
  margin-left: auto;
  text-align: right;
}

.other {
  background: #333;
  margin-right: auto;
}

.user {
  font-size: 11px;
  opacity: 0.7;
}

/* INPUT */
.inputBox {
  display: flex;
  padding: 10px;
  background: #111;
  border: none;
  outline: none;
}

.inputBox input {
  flex: 1;
  padding: 10px;
}

.inputBox button {
  padding: 10px;
  margin-left: 5px;
}

img {
  width: 100%;
}

.screen {
  display: none;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#offlineScreen {
  display: flex;      /* SHOW BY DEFAULT */
  background: #000;
  color: #fff;
}