:root {
  --giggle-blue: #0017ff;
  --giggle-light-blue: #7f8bff;
  --giggle-superlight-blue: #cbcfff;
  --giggle-orange: #ff4b00;

  font-family: monospace;
}

html {
  background: linear-gradient(var(--giggle-light-blue), var(--giggle-superlight-blue) 25vh);
  background-color: var(--giggle-superlight-blue);
  background-repeat: no-repeat;
}

body {
  margin: 0;
}

.main-container {
  margin: auto;
  box-sizing: border-box;
  padding: 0.5rem;

  height: 100vh;
  background-color: #ffffff;
  width: clamp(50ch, 100%, 120ch);
  border-right: 1px solid #aaaaaa;
  border-left: 1px solid #aaaaaa;

  display: flex;
  flex-direction: column;
  flex-grow: 0;
  min-height: 0;
}

#messages {
  display: flex;
  flex-direction: column;
  flex: 1;

  list-style-type: none; 
  margin: 0; 
  padding: 0; 

  overflow-y: scroll;
}

#messages > li { 
  padding: 0.5rem 1rem;
  word-break: break-all;
  white-space: pre-line;
}

#messages > li:nth-child(odd) { 
  background: #eeeeee;
}

#message-form {
  display: flex;
  justify-content: space-between;
}

#message-form > input {
  flex: 1;
}

#message-input {
  resize: none;
}

.navbar {
  width: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: var(--giggle-superlight-blue);
}

.navbar li {
  display: inline;
}