:root {
  --main-accent: black;
  --error: #cc1010;
  --blue: #1170cf;
}

* {
  box-sizing: border-box;
}

/* alpine stuff */
[x-cloak] { display: none !important; }

html, body {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Ubuntu,Arial,sans-serif;
  padding: 2em;
  color: #444;

  background: linear-gradient(to bottom right, #F37335, #FDC830);
  background: linear-gradient(to right, #ff9966, #ff5e62);
  /* background: linear-gradient(to right, #30e8bf, #ff8235);
  background: linear-gradient(to bottom right, #00b4db, #0083b0); */
}

.fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000009c;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialog {
  padding: 2em;
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.dialog option {
  margin: 0.2em 0;
  padding: 0.2em;
}

.dialog select {
  width: 500px;
}

option:hover {
  background-color: #ddd;
}

h1, h3 {
  color: white;
  text-align: center;
  font-weight: normal;
}

h1 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.1em;
}

section h1 {
  color: inherit;
}

h2 {
  font-weight: normal;
  font-size: 18px;
}

section {
  padding: 2em;
  background-color: white;
  border: 1px solid #ddd;
  margin: 1em;
  box-shadow: 0 2px 8px rgb(0 0 0 / 33%);
}

section .row {
  display: flex;
  gap: 2em;
  margin-bottom: 1em;
  justify-content: center;
  padding-bottom: 1em;
  /* border-bottom: 2px solid #eee; */
}

section .row:last-of-type {
  /* border: 0; */
  margin-bottom: 0;
  padding-bottom: 0;
}

.action-row {
  text-align: center;
}

.spacer {
  flex-grow: 1;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 1em;

  /* ensure boxes are the same width */
  width: 0;
  flex-grow: 1;
}

.box label {
  min-width: 40%;
  display: inline-block;
}

.box input, .box select {
  width: 50%;
}

.box input[type='checkbox'] {
  width: unset;
}

hr {
  border: 0;
  height: 2px;
  background-color: #eee;
  margin: 1em 0;
}

a {
  color: inherit;
}

a:hover {
}

textarea {
  font-family: inherit;
  background-color: #eee;
  border: 0px;
  padding: 10px;
  resize: none;
  width: 100%;
}

button {
  cursor: pointer;
  border-radius: 30px;
  padding: 10px 25px;
  border: 0;
  border: 2px solid #d0d0d0;
}

button.primary {
  background-color: #1abc9c;
  color: white;
  border: 0;
}

button:hover:not(:disabled) {
  filter: brightness(0.9);
}

*:disabled, input:disabled+label, select:disabled+label {
  opacity: 0.5;
  cursor: auto;
}

input, select {
  background: #eee;
  border: 0;
  padding: 0.5em;
}

select option {
  cursor: pointer;
}

.room {
  cursor: pointer;
  padding: 0.3em;
}

.room:hover {
  background-color: #eee;
}

.dialog.download {
  width: 60vw;
}

.log-list {
  height: 40vh;
  padding: 1em;
  overflow: auto;
  font-size: 0.8em;
  border: 2px solid #eee;
}

.log-list span {
  display: inline-block;
}

.log-list .warning {
  color: rgb(177, 120, 15);
}

.log-list .error {
  color: rgb(149, 0, 0);
}

.message {
  border-radius: 1em;
  padding: 1em;
  background: #f1f1f1;
  margin-top: 0.5em;
}

.message:first-of-type {
  margin-left: 0;
}

.message {
  margin-left: 2em;
}

.message .header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.message .text, .message .files {
  margin-left: 32px;
}

.message .messageQuote {
  border-left: 4px solid #aaa;
  padding-left: 9px;
  margin-left: 0;
}

.files {
  display: flex;
}

.files img {
  height: 80px;
  margin: 10px;
}

.avatar {
  width: 25px;
  height: 25px;
  border-radius: 25px;
}

.selected-value {
  display: flex;
  align-items: center;
  font-weight: bold;
  gap: 1em;
}

/* only applied if image is broken. css hack */
.avatar:before {
  content: ' ';
  display: block;
  position: absolute;
  height: 25px;
  width: 25px;
  border-radius: 25px;
  background-color: #c6a7c6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

pre {
  overflow-x: auto;
}

footer {
  text-align: center;
  font-size: 0.8em;
  color: white;
}