* {
  padding: 0;
  margin: 0;
}

body {
  font-family: "panel-sans-mono", sans-serif;
  font-weight: 300;
  font-style: normal;
  width: 100%;
  letter-spacing: -1px;
  height: 100vh;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  background-color: #f8f8f8;
  justify-content: space-around;
}

.container {
  width: 35vw;
  margin: 20px;
}

h1 {
  text-align: center;
}

form {
  margin-bottom: 20px;
}

#nick {
  border: none;
  border-bottom: 0.75px solid black;
  width: 200px;
  background-color: transparent;
}

input[type="text"],
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  resize: none;
  background-color: transparent;
  font-family: "panel-sans-mono", sans-serif;
  font-weight: 300;
  font-style: normal;
}

#text {
  margin-top: 0.75rem;
  border-radius: 0;
  border: 0.75px solid black;
}

button {
  padding: 10px 12px;
  background-color: transparent;
  font-family: "panel-sans-mono", sans-serif;
  font-weight: 300;
  font-style: normal;
  border-radius: 50%;
  border: 0.75px solid black;
}

button:hover {
  cursor: pointer;
  background-color: black;
  color: white;
}

hr {
  color: black;
}
.nick {
  font-weight: bold;
  margin-right: 8px;
  margin-right: 2rem;
}

.row-bottom {
  display: none !important;
}

/* list */

.msg {
  border-bottom: 0.75px solid black;
  padding: 5px 0;
}

.row {
  display: grid;
  grid-template-columns: 120px 1fr 0.4fr;
  column-gap: 15px;
  align-items: center;
}

.nick {
  font-weight: bold;
}

.nick::before {
  content: "► ";
}

.text {
  overflow-wrap: break-word;
}

.date {
  color: #777;
  font-size: 0.8em;
  text-align: right;
}

#list {
  margin: 20px;
  width: 65vw;
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .container {
    width: 100%;
    margin: 20px;
  }

  #text {
    width: 80%;
  }

  .row {
    grid-template-columns: 60px 1fr 60px;
  }

  #list {
    overflow-y: scroll;
    height: 100vh;
    width: auto;
    margin: 10px;
  }

  .nick::before {
    content: none;
  }
}
