@font-face {
  font-family: "Dashboard Industrial";
  src: url("/fonts/BarlowCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;

  background: #171b1a;
  color: #f3f2ec;

  font-family: "Dashboard Industrial", Arial, sans-serif;
}

#grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));

  width: 100%;
  height: 100%;

  padding: 12px;
  grid-gap: 12px;
  gap: 12px;
}

.task {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 0;
  padding: 6px 12px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;

  color: #f3f2ec;
  font-family: inherit;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.5px;
  text-align: center;

  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: background-color 120ms ease;
}

/* Needs doing: muted oxide red */
.task.todo {
  background: #704743;
}

/* Done: grey-green */
.task.done {
  background: #405b49;
}

.task:active {
  opacity: 0.82;
}

/* Keep the lettering inside shorter landscape screens. */
@media (max-height: 600px) {
  .task {
    font-size: 36px;
  }
}

@media (max-height: 420px) {
  #grid {
    padding: 8px;
    grid-gap: 8px;
    gap: 8px;
  }

  .task {
    font-size: 28px;
  }
}