:root {
  --grid-color: #969696;
  --main-color: #9dbca6;
  --text-color: rgb(255, 255, 255);

  --content-width: min(calc(100vw - 2em), 560px);
}

.hide {
  display: none;
}

.disabled {
  opacity: .5;
  cursor: not-allowed;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5em;
  font-family: 'Overpass Mono', 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-color);
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 15px, var(--grid-color) 15px, var(--grid-color) 16px), repeating-linear-gradient(0deg, transparent, transparent 15px, var(--grid-color) 15px, var(--grid-color) 16px);
  z-index: -1;
  opacity: .5;
}

main, aside {
  display: flex;
  flex-direction: column;
}

main {
  width: var(--content-width);
  overflow: hidden;
}

aside {
  width: 256px;
  gap: 1em;
}

.content {
  padding: 3em;
  font-size: 11px;
  overflow-y: auto;
  background: rgba(4, 38, 16, 0.75);
  scrollbar-color: var(--main-color) white;
  scrollbar-width: thin;
}

.content::-webkit-scrollbar {
  width: 8px;
  background-color: white;
}

.content::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

.content img {
  margin: 4em auto;
  display: block;
  user-select: none;
}

::selection {
  background: var(--main-color);
  color: white;
}

a {
  text-decoration-color: var(--main-color);
  text-decoration-thickness: 3px;
}

button {
  font-family: inherit;
}

p {
  line-height: 1.7;
}

p:not(.datetime):not(.post-text) + p {
  margin-top: 2em;
}

.subtitle {
  font-weight: bold;
}

p.list-title {
  margin-top: 12px;
}

.post {
  font-size: 14px;
}

.datetime {
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 16px;
}

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

ul {
  margin: 6px 6px 12px 0;
}

li {
  line-height: 20px;
  padding-left: 8px;
  margin-left: 8px;
}

li + li {
  margin-top: .5em;
}

li::marker {
  content: '❑';
  font-size: 16px;
  color: var(--main-color);
}

.hex li::before { content: '⎔'; }
.leaf li::before { content: '☙'; }
.heart li::before { content: '♡'; }
.x li::before { content: '⨯'; }
.sad li::before { content: '☹'; }
.happy li::before { content: '★'; }
li.done::before { content: '✓'!important; }

.aside-item,
main {
  border: 1px solid var(--main-color);
  border-radius: 2px;
  box-shadow: -6px 6px 0 var(--main-color);
}

.aside-item {
  width: 100%;
  background: #97ac70;
}

button.aside-item {
  height: 34px;
}

.aside-item.text {
  padding: 1.2em;
  font-size: 14px;
}

.aside-item ul {
  margin-top: 8px;
}

.aside-item li {
  padding-left: 6px;
}

aside button {
  transition: transform .3s ease;
}

aside button:not(.disabled):hover {
  transform: translate(-1px, 2px);
}

#colorpicker {
  border: 1px solid var(--main-color);
  overflow: hidden;
  padding: 2px;
  cursor: pointer;
}

#colorpicker input {
  visibility: hidden;
}

#colorpicker label {
  width: 100%;
  height: 100%;
  background: var(--main-color);
  display: block;
  cursor: url(./imgs/paintbucket.png), auto;
}

#link-home {
  padding: 1em 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

#link-home img {
  margin-right: 4px;
}

aside button {
  font-size: 12px;
  cursor: pointer;
}

#eyes {
  height: 140px;
}

@media (max-width: 580px) {
  section {
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 950px) {
  body {
    flex-direction: column-reverse;
    justify-content: flex-end;
    overflow: hidden;
    min-height: unset;
    height: 100vh;
    padding: 2em 0;
    gap: 3em;
  }

  aside {
    position: relative;
    top: unset;
    right: unset;
    width: var(--content-width);
  }

  .aside-item.text {
    order: 3;
  }
}

@media (min-width: 950px) {
  main, aside {
    height: 70vh;
  }
}