body {
  --font-size: 20px;
  --header-height: 50px;
  --theme-color: hsl(209, 50%, 30%);
  --font-color: rgba(255, 255, 255, 1);
  --theme-font-color: rgba(255, 255, 255, 1);
  --shadow-color: rgba(255, 255, 255, 0.2);
  --shadow-background: rgba(255, 255, 255, 0.05);
  --background: rgba(32, 40, 50, 1);
  --unimportant-color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
}

body,
tr,
td,
input,
select,
textarea {
  background-color: var(--background);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--font-size);
  color: var(--font-color);
  border: 0;
}

html, body, .route-endpoint {
  height: 100%;
}

.green {
  color: rgba(0, 255, 0, 1);
}

.fake-checkbox {
  margin: auto;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.lists {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}

.lists-title {
  background-color: var(--theme-color);
  color: var(--theme-font-color);
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 4%;
  justify-content: space-between;
}

.items-title {
  background-color: var(--theme-color);
  color: var(--theme-font-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.items-search {
  margin-right: 12px;
}

.items-search input {
  padding: 2px 8px;
  width: 200px;
}

.lists-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.list-elem {
  margin: 5%;
  display: flex;
  border-radius: 1vw;
  box-shadow: 0 0 3vh var(--shadow-color);
}

.list-elem.done {
  opacity: 0.4;
  background-color: var(--shadow-color);
}

.list-elem-description {
  padding: 1% 3%;
  flex-grow: 1;
}

.list-elem-title {
  font-weight: bold;
  pointer-events: none;
}

.list-elem-stats {
  font-size: 0.9em;
  color: var(--unimportant-color);
  pointer-events: none;
}

.list-elem-edit,
.list-elem-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2% 5% 2% 3%;
}

.list-elem-edit span,
.list-elem-copy span {
  pointer-events: none;
}

.lists-create-new {
  padding: 15px;
}

.lists-create-new span {
  pointer-events: none;
}

.lists-create-new.cta {
  margin: auto;
  display: flex;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  box-shadow: 0 0 3vh var(--shadow-color);
}

.items {
  background-color: var(--shadow-background);
}

.items-back {
  padding: 10px 20px;
}

.items-back * {
  pointer-events: none;
}

.items-loader {
  margin: auto;
}

.columns {
  display: flex;
}

.shopping {
  height: calc(100vh - 50px);
  overflow-y: auto;
  flex: 1;
}

.item-wrapper {
  color: var(--shadow-background);
  border-top: 1px solid transparent;
  border-bottom: 1px solid currentColor;
  min-height: 40px;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.item-wrapper.over {
  border-top: 5px solid var(--shadow-color);
}

.item-wrapper.under {
  border-bottom: 5px solid var(--shadow-color);
}

.item-wrapper.added {
  opacity: 0.2;
}

.item {
  color: var(--font-color);
  display: flex;
  flex: 1;
  width: 100%;
}

.item-check {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.item-check input {
  display: none;
}

.item-check label {
  min-width: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.item-description {
  flex-grow: 1;
  flex-wrap: wrap;
  display: flex;
  padding: 3px 0;
}

.prediction .item-description {
  padding-left: 12px;
  min-height: 40px;
}

.item-name {
  margin: auto 0;
  pointer-events: none;
  margin-right: 10px;
}

.item-note {
  color: var(--unimportant-color);
  font-size: 0.8em;
  pointer-events: none;
  margin: auto 0;
}

.item-actions {
  margin: auto;
  display: flex;
  justify-content: space-around;
}

.item-edit,
.item-drag-handle,
.item-add,
.item-remove {
  width: 44px;
  padding: 15px 0;
  text-align: center;
}

.item-edit span,
.item-drag-handle span,
.item-add span,
.items-open-prediction span,
.item-remove span {
  pointer-events: none;
}

.items-open-prediction {
  font-size: 8px;
  padding: 15px;
}

.items-title-text {
  flex-grow: 1;
}

.item-drag-handle {
  touch-action: none;
}

.item-separator {
  width: calc(100% - 25px);
  margin: auto;
}

.prediction-wrapper {
  display: none;
  position: absolute;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  z-index: 25;
}

.prediction {
  flex: 1;
  max-height: calc(90vh - 50px);
  width: 290px;
  overflow-y: auto;
  position: absolute;
  background-color: var(--background);
  right: 0;
  box-shadow: -5px 5px 10px var(--background);
  border: 1px solid var(--shadow-background);
  z-index: 50;
}

.shopping-active {
  background-color: var(--background);
  box-shadow: 0 10px 10px var(--shadow-background);
  display: flex;
  flex-direction: column;
}

.shopping-done {
  background-color: transparent;
  opacity: 0.5;
  min-height: 100px;
}

.session-id {
  text-align: center;
  padding-bottom: 60px;
}

#sess-id {
  letter-spacing: 1px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  padding: 20px;
  display: inline-block;
}

.session-editor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-edit {
  padding: 10px;
}

[hidden] {
  display: none;
}
