:root {
  color-scheme: light dark;
  --primary-color: light-dark(#333, #fafafa);
  --accent-color: light-dark();
  --primary-background: light-dark(#bacbdb, #10061d);
  --accent-background: light-dark(#d5d4c8, #210F37);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--primary-background);
  font-size: 40px;
}

h1 {
  font-size: 3rem;
  text-align: center;
  padding: 0.8rem 0;
  border-radius: 1rem;
  background-color: var(--accent-background)
}

h2 {
  font-size: 1.5rem;
}

#chat-wrapper {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 100vw;
  height: 100vh;
  max-width: 96rem;
  max-height: 96rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

#chat {
  flex: 2;
  overflow-y: scroll;
}

#chat div {
  width: 80%;
  margin: 1rem 0;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background-color: var(--accent-background);
}

.du {
  float: left;
  animation: stretchY 1s;
}

.ferjemannen {
  float: right;
  animation: stretchX 1.8s ease-in-out;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

#input-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 3rem;
  height: auto;
  width: 100%;
}

#message-label {
  display: block;
  font-size: 1.8rem;
}

#input-wrapper div {
  flex: 2;
}

#field {
  height: 4rem;
  width: 100%;
  font-size: 2rem;
}

#submit {
  margin-top: 2.6rem;
  width: 8rem;
  height: 4rem;
  font-size: 2rem;
}

@keyframes stretchX {
  from {
    /* transform: scaleX(0); */
    opacity: 0;
  }

  to {
    /* transform: scaleX(1); */
    opacity: 1;
  }
}

@keyframes stretchY {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}
