#patchat {
  /* overflow-y: auto; */
  overflow: hidden;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 1fr auto;
  box-sizing: border-box; }

#patchat input,
#patchat label {
  font-size: inherit;
  padding: 0 0.5em;
  margin: 0;
  overflow: hidden; }

#patchat input {
  line-height: 2em;
  width: 100%; }

#patchat label {
  text-align: center; }

#patchat button {
  line-height: 1em; }

#patchat form {
  padding: 1em; }

#loading {
  height: 100%;
  width: 100%;
  padding: 1em;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 1em; }

#loading p {
  text-align: center; }

#spinner {
  border: 8px solid #f3f3f3;
  /* Light grey */
  border-top: 8px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  -webkit-animation: spin 2s linear infinite;
  margin: auto; }

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); }
  100% {
    -webkit-transform: rotate(360deg); } }

@keyframes spin {
  0% {
    transform: rotate(0deg); }
  100% {
    transform: rotate(360deg); } }

#nameprompt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap; }

#nameprompt label,
#nameprompt input {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden; }

#nameprompt label {
  text-align: center; }

#nameprompt input {
  height: 3em; }

#patchat #message-input {
  display: grid;
  grid-template-columns: 80% 1fr;
  grid-gap: 0.5em;
  width: 100%; }

#message-input label {
  line-height: 2em;
  grid-column: 1 / span 2;
  font-size: 0.7em; }

#message-input label.hide {
  position: absolute;
  top: -9999px;
  left: -9999px; }

#message-input label a.cancelreplybtn {
  color: blue;
  text-decoration: underline; }

#message-input .checkboxHolder {
  grid-column: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em; }

#message-input .checkboxHolder label,
input {
  margin: 0;
  display: inline-block;
  padding: 0; }

#message-input .checkboxHolder input {
  width: 20px; }

#messages {
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 0;
  padding: 1em;
  margin: 0 !important;
  margin-bottom: 0.5em; }

li.message {
  list-style-type: none;
  padding: 0.25em 0;
  margin: 0;
  color: black;
  width: 100%;
  max-width: 100%;
  border-bottom: 0.5px solid lightgrey;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto; }

li.message:first-child {
  padding-top: 0; }

.message.reply {
  padding-left: 2em;
  background-image: url("indent.svg");
  background-position: 0.5em 0.25em;
  background-size: 1em;
  background-repeat: no-repeat; }

.message .buttons button {
  display: inline-block;
  padding: 0.25em 0;
  margin: 0;
  text-align: center;
  background: transparent;
  color: inherit;
  border: 0px;
  text-decoration: underline !important;
  cursor: pointer; }

.message .time {
  text-align: right; }

.message .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.message .name,
.message .time,
.message .buttons button {
  font-size: 0.75em; }

.message .content {
  display: block; }
