* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html * {
  font-family: system-ui, sans-serif !important;
  font-size: 18px;
  line-height: 1.42;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.section {
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 20px;
}

.top-bar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background-color: white;
  box-shadow: 0 1px 0 0px rgba(0, 0, 0, 0.07);
  padding: 0 10px;
  height: 52px;
  z-index: 1;
  flex-shrink: 0;
}

@media (min-width: 800px) {
  .top-bar {
    width: 800px;
    margin: 5% auto 0;
    border-radius: 13px;
    padding: 0 18px;
  }
}

.top-bar > * {
  display: flex;
  align-items: center;
}

.top-bar > *:nth-child(1) {
  justify-content: flex-start;
}

.top-bar > *:nth-child(3) {
  justify-content: flex-end;
}

.top-bar .title {
  text-align: center;
  font-weight: 500;
}

.bottom-bar {
  --bottom-bar-height: 52px;
  position: fixed;
  display: flex;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  left: 0px;
  right: 0px;
  bottom: 0px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: white;
  box-shadow: 0 -1px 0 0px rgba(0, 0, 0, 0.07);
}
.bottom-bar > div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 0 16px;
  height: var(--bottom-bar-height);
}

.button {
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 7px;
  border: 0;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  text-align: center;
}

.button.secondary {
  background-color: white;
  border: 1px solid #ddd;
  color: black;
  font-weight: 500;
}

.pill-button {
  padding: 9px 18px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  padding: 0;
  margin: 0;
}

.icon-button:active {
  opacity: 0.5;
}

.icon-button img {
  width: 22px;
}

.ql-editor {
  padding-top: 10px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.ql-editor.ql-blank::before {
  color: #aaa !important;
  font-style: normal !important;
  left: 18px !important;
  right: 18px !important;
}

.empty-message {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: lightgray;
  padding: 0 20px;
  height: 100%;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 20vh;
}
@media (min-width: 800px) {
  .container {
    width: 800px;
    margin: 0 auto;
  }
}
.container.centered {
  justify-content: center;
}

a.entry-link {
  display: block;
  padding: 10px 15px;
  margin: 0 3px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}

a.entry-link:empty::before {
  content: "Untitled";
}
