:root {
  --menu-text-color:            var(--pico-h1-color);
  --menu-background-color:      var(--pico-card-background-color);
}

.partials-cursor {
  cursor:                       pointer;
}

html,
body {
  padding:                      0;
  margin:                       0;
  font:                         1em arial;
}

.strike-through {
  text-decoration-line:         line-through;
}

form {
  margin:                       0;
}

.form-control {
  margin:                       0.4em;
}

.form-control input,
.form-control select,
.form-control button {
  outline:                      none;
  border:                       none;
  background-color:             oklch(99% 0.2 50.0);
  font:                         1em arial;
}

.login-title {
  width:                        50%;
  margin:                       auto;
  font-size:                    7rem;
  margin-bottom:                3rem;
}

.login-form {
  width:                        50%;
  margin:                       auto;
}

.index-container {
  margin:                       1em;
}

.card {
  margin:                       1em;
  padding:                      1em;
  border:                       1px solid oklch(92% 0.0 0.0);
  background-color:             oklch(100% 0.0 0.0);
}

h1 {
  margin:                       1em;
}

.issue {
  display:                      flex;
  margin:                       1.2em 1em;
}

.issue.id {
  margin-right:                 0.5em;
}

.issue.edit {
  margin-left:                  2.25em;
}

.issue.edit input {
  margin-top:                   -0.5em;
  outline:                      none;
  border:                       none;
  background-color:             oklch(95% 0.03 260.0);
  font:                         1em arial;
  margin-right:                 1em;
}

.md-input {
  padding:                      0.4em;
  border:                       1px solid oklch(86% 0.0 0.0);
  background-color:             oklch(95% 0.03 260.0);
}

.md-input:focus {
  border:                       1px solid oklch(655 0.19 250.0);
}

.edit-textarea {
  font-family:                  monospace;
  height:                       calc(100vh - 650px);
  min-height:                   10rem;
}

#content-timestamp {
  margin-top:                   0.2rem;
  margin-bottom:                0.5rem;
}

.history {
  margin:                       1rem 2rem;
}

.history td {
  padding:                      0;
}

.history .month-entry {
  border-style:                 solid;
  border-width:                 2px;
  border-color:                 transparent;
  padding:                      0.4rem;
}

.history .month-entry.entry-day-1 {
  background-color:             rgba(101, 92, 214, 0.28);
}

.history .month-entry.entry-day-2 {
  background-color:             rgba(101, 92, 214, 0.36);
}

.history .month-entry.entry-day-3 {
  background-color:             rgba(101, 92, 214, 0.44);
}

.history .month-entry.entry-day-4 {
  background-color:             rgba(101, 92, 214, 0.52);
}

.history .month-entry.entry-day-5 {
  background-color:             rgba(101, 92, 214, 0.6000000000000001);
}

.history .month-entry.entry-day-6 {
  background-color:             rgba(101, 92, 214, 0.6799999999999999);
}

.history .month-entry.entry-day-7 {
  background-color:             rgba(101, 92, 214, 0.76);
}

.history .month-entry.entry-day-8 {
  background-color:             rgba(101, 92, 214, 0.8400000000000001);
}

.history .month-entry.entry-day-9 {
  background-color:             rgba(101, 92, 214, 0.9199999999999999);
}

.history .month-entry.entry-day-max {
  background-color:             #655cd6;
}

.history .month-entry.entry-selected {
  border-color:                 var(--pico-del-color);
}

.month-select {
  display:                      flex;
  flex-direction:               row;
  justify-content:              space-between;
  align-items:                  baseline;
  width:                        100%;
  max-width:                    350px;
}

.month-select button {
  margin-left:                  0.4rem;
  padding:                      1px 5px;
}

.entry-page-title {
  display:                      grid;
  grid-template-columns:        2fr 4fr 185px;
  align-items:                  flex-end;
  margin-left:                  32px;
  margin-right:                 2rem;
}

.entry-search {
  margin-left:                  0.5rem;
}

.entry {
  display:                      flex;
  flex-direction:               row;
}

.entry .entry-title {
  display:                      flex;
  flex-direction:               row;
  justify-content:              space-between;
  align-items:                  baseline;
  margin:                       1em 1em;
  margin-bottom:                0;
  height:                       3em;
}

.entry .entry-title h2 {
  display:                      inline-block;
  width:                        100%;
}

.entry .entry-title h2.completed {
  text-decoration:              line-through;
}

.entry .entry-modified {
  display:                      flex;
  justify-content:              space-between;
  margin-left:                  2em;
  margin-right:                 2em;
  margin-top:                   0.5rem;
  text-align:                   right;
  color:                        var(--pico-h6-color);
  position:                     relative;
}

.entry .entry-modified div {
  padding-bottom:               8px;
}

.content {
  width:                        100%;
  margin:                       1rem 2rem;
}

.content .month-select {
  display:                      none;
}

.content .content-header-buttons {
  width:                        25%;
}

.content .content-header {
  display:                      flex;
  flex-direction:               row;
  justify-content:              space-between;
  align-items:                  center;
  margin:                       0.5em 1em;
}

button {
  /* style ' button' is defined 2 times! */
}

button.entry-button {
  width:                        150px;
  margin-left:                  1rem;
}

button.delete-button {
  background-color:             var(--pico-del-color);
}

.entry-buttons {
  display:                      flex;
  flex-direction:               row;
  justify-content:              flex-end;
  align-items:                  center;
}

.entry-buttons button {
  width:                        150px;
  margin-left:                  1rem;
}

.entry-buttons .delete-button {
  background-color:             var(--pico-del-color);
  border:                       none;
}

.entry-button {
  width:                        300px;
  margin-left:                  1rem;
}

.entry-arrow {
  font-size:                    1.5em;
  margin:                       0.2em;
  padding:                      0.4em 0.4em 0.2em 0.4em;
  background-color:             var(--pico-mark-background-color);
  border-radius:                5px;
  width:                        32px;
  height:                       42px;
}

.entry-description {
  margin:                       1em;
  margin-top:                   0.5rem;
  margin-bottom:                5rem;
  padding:                      1em;
  background-color:             var(--pico-card-background-color);
}

span.inline-code {
  white-space:                  pre;
  font-family:                  monospace;
  padding:                      2px 5px;
  border-radius:                3px;
  color:                        var(--pico-code-color);
  background-color:             var(--pico-code-background-color);
}

ul.no-bullets {
  list-style-type:              none;
  padding-left:                 6.8px;
}

ul.no-bullets li {
  list-style-type:              none;
}

.warning-message {
  padding:                      1rem;
  color:                        white;
  background-color:             var(--pico-del-color);
  border-radius:                5px;
}

table.month-table {
  width:                        350px;
}

table.month-table th {
  color:                        white;
  background-color:             var(--pico-primary-background);
}

table.month-table th th {
  font-weight:                  bold;
}

.mermaid svg {
  color:                        red;
  background-color:             var(--pico-code-background-color);
}

.mermaid svg text {
  fill:                         var(--mermaid-text-color);
}

.mermaid svg .node rect {
  fill:                         var(--mermaid-bg-color) !important;
  stroke:                       var(--mermaid-text-color);
}

.mermaid svg .nodeLabel {
  color:                        red;
}

.mermaid svg .edgePath,
.mermaid svg .arrowheadPath {
  stroke:                       var(--mermaid-text-color);
}

body>main {
  padding:                      0;
}

.menu-container {
  min-height:                   100vh;
  display:                      flex;
  flex-direction:               column;
}

.menu-container .menu-bar {
  display:                      grid;
  grid-template-columns:        65px auto 250px;
  align-items:                  center;
  position:                     sticky;
  top:                          0;
  height:                       4.75em;
  padding:                      1rem;
  background-color:             var(--menu-background-color);
  z-index:                      100;
}

.menu-container .menu-bar img {
  margin:                       0 0.5em;
}

.menu-container .menu-bar h1 {
  margin:                       0;
}

.menu-container .menu-bar a {
  margin:                       0 1em;
  margin-right:                 4rem;
}

.menu-container .menu-page-content {
  overflow:                     auto;
  flex:                         1;
  margin:                       1em 0;
}

.menu-container .menu-footer {
  position:                     sticky;
  bottom:                       0;
  width:                        100%;
  text-align:                   right;
  padding:                      0.5rem 4rem;
  background-color:             var(--menu-background-color);
  z-index:                      100;
}

.print-view {
  margin:                       5rem 10%;
}

.print-link {
  margin-right:                 1rem;
  margin-top:                   5px;
}

@media (max-width: 1440px) {
  .history {
    display:                    none;
  }

  .entry-page-title {
    grid-template-columns:      0 4fr 185px;
  }

  .content .month-select {
    display:                    flex;
  }

}

@media print {
  .history,
.content .content-header,
.content .month-select,
.entry-page-title,
.logout-button {
    display:                    none;
  }

  .print-view {
    margin:                     5rem 4%;
  }

}

