body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

aside {
  max-width: 400px;
}

main {
  max-width: 1200px;
  flex: 1;
}

.mainLayout {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

a {
  color: #335533;
  text-decoration-line: none;
  font-weight: bold;
}

header {
  display: flex;
  justify-content: center;
  border-color: #119933;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 4rem;
  width: 800px;
}

article {
  display: block;
  min-width: 240px;
  min-height: 240px;
}

nav > ul {
  padding-right: 1rem;
  padding-left: 1rem;
}

nav > ul > li {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

ul.sort {
  display: inline-block;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

ul.sort > li {
  display: inline-block;
}

ul {
  list-style-type: none;
}

[contenteditable][placeholder]:empty:before {
  content: attr(placeholder);
  color: #aaa;
  pointer-events: none;
}

.brand {
  color: #119933;
  font-weight: normal;
  font-size: 2rem;
}

input[type=password],
input[type=text] {
  width: 80%;
  border: none;
  border-bottom: 1px solid #119933;
  font-size: 1.5rem;
  padding: 0.5rem;
  margin: 0.5rem auto;
}

button {
  background-color: #119933;
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  margin: 0.25rem;
  font-weight: bold;
  padding: 16px;
}

form {
  padding: 0;
  margin: 0;
}

.timer,
.button {
  background-color: #119933;
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  margin: 0.25rem;
  font-weight: bold;
  padding: 16px;
  user-select: none;
}

.recipe {
  min-height: 300px;
  background-color: #ffefef;
  padding: 1rem;
}

table {
  width: 100%;
  text-align: left;
  table-layout: fixed;
}

th.mainTD {
  width: 35%;
}

tr {
  height: 2rem;
}

.fullWidth {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-content: center;
  min-height: 2rem;
}

.fullWidth > span {
  display: grid;
  align-items: center;
  flex: 5;
}

.fullWidth > span.ingName {
  padding-right: 2rem;
  font-size: 1.2rem;
}

.fullWidth > span.ingWeight {
  flex: 5;
  font-size: 1.2rem;
}

.fullWidth > input {
  flex: 3;
  margin: 0.2rem;
}

ul.chosenRecipes > li > span > a {
  font-size: 1.5rem;
  font-weight: bold;
  color:#991133;
}

ul.allRecipes > li > span > a {
  font-size: 1.1rem;
}

td > button {
  padding: 4px;
  margin: 0;
  background-color: #991133;
}

td > button.add {
  padding: 4px;
  margin: 0;
  background-color: #119933;
}

.sum {
  font-weight: bold;
}

.timer {
  font-size: 4rem;
}

.cardShort {
  padding: 1rem;
}

.timerRunning {
  background-color: #ddcc88;
}

.timer[running] {
  background-color: #bb8811;
}

.delete {
  background-color: #991133;
}

input[type=text]:focus {
  border: 3px solid #555;
}

.flexy {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* horizontal centering */
    padding-inline-start: 0px;
    flex: 1;
}

.flexy > li {
    width: 30%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    max-width: 400px;
    min-width: 200px;
}

.hasCollaborator > a {
  color: #0144a8;
}

@media (max-width: 1400px) {
  .flexy > li {
      width: 45%;
  }
}

@media (max-width: 1000px) {
  .flexy > li {
      width: 90%;
  }

  .mainLayout {
    flex-direction: column;
  }
}

.flexy > li > div {
    overflow: hidden;
    max-height: 400px;
}

.flexy > li > a > p {
    padding-left: 1rem;
}

ul.bullet {
    list-style-type: square;
}

img {
  max-width: 100%;
  height: auto;
  padding: 2rem 0;
  margin: auto;
}

.selected {
  background-color: #113333;
}

#editor {
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
  background-color: #f8f8f8;
}

h1 {
  margin: 0 0 1rem 0;
}

.vim-mode-normal {
    caret-color: red;
}

.cardFooter {
    text-align: right;
    margin: 4px 0;
}

.postButton {
    width: 128px;
    margin: 4px;
}

.userButton {
  min-width: 128px;
  min-height: 48px;
  padding: 8px;
  margin: 4px;
  background-color: #117799;
}

.offscreen {
  position: absolute;
  left: -11119999px;  /* move far away from viewport */
}

.userButton[selected] {
  background-color: #113355;
}

#userSelector {
  display: flex;
}

#allowedUsersList {
  font-size: 3rem;
}

#postHeading {
    display: block;
    text-align: center;
}

#postHeadingInButtons {
    display: none;
}

#postContainer {
    display: block;
    width: 100%;
}

#postView {
    display: flex;
    padding: 24px;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    max-width: 800px;
    margin: auto;
}

#postTitle {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#postHeadingInButtons {
    display: block;
}

#postButtons {
    align-self: flex-end;
}

.cardText {
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
  background-color: #f8f8f8;
}

.dirty {
  background-color: #bb8811;
}

