* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hide {
  visibility: hidden;
}

body {
  height: 100vh;
  width: 100vw;
  font-family: 'Verdana';
  font-size: 11px;
  color: #2b2727;
  position: relative;
}

#closed {
  position: absolute;
  top:0;
  left: 0;
  background-color: #322e3e;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

#closed img {
  cursor: pointer;
}

#closed img:hover {
  transform: translateY(-10px);
}

main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /*background-image: url('https://irony-machine.neocities.org/about/imgs/notebook.png');*/
    background-image: url('/images/boxx.png');
  background-repeat: no-repeat;
  background-size: 780px 510px;
  background-position: 52% 53%;
  background-color: #322e3e;
}

#book {
  width: 700px;
  height: 490px;
  display: flex;
  overflow: hidden;
}

#book .page {
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header {
  display: flex;
  justify-content: center;
  height: 50px;
  margin: 16px 0 8px 0;
}

.page-header:empty {
  margin-top: 0;
}

#left .page-header {
  flex-shrink: 0;
}

.page-header img {
  width: auto!important;
}

.page.sticker .page-container {
  /*artificial padding*/
  width: calc(100% - 22px);
}

.page .page-container {
  height: 100%;
  width: 100%;
  padding: 2em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#left .page-container {
  margin: 1em 1.5em 1em 1em;
  flex-shrink: 1;
  width: 95%;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.page-text {
  padding: 2em;
rotate: -30deg;

}

.stickers-source {
  font-size: 10px;font-family: 'Cherry Swash';
  font-size: 13px;
  margin-top: auto;
  margin-bottom: .5em;
  text-align: center;
}

p {
  line-height: 1.75em;
}

.note {
  margin-top: 1em;
  font-size: 10px;
}

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

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

p + p {
  margin-top: 1em;
}

ul {
  list-style-type: none;
  margin: 6px 6px 12px 6px;
}

li {
  line-height: 20px;
}

li::before {
  content: '';
  margin-right: 4px;
  color: var(--main-color);
}

img {
  max-width: 100%;
}

.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; }

.page .control {
  width: 100%;
  padding: 6px 24px;
  font-family: 'Cherry Swash';
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.control.forth {
  justify-content: flex-end;
}

.control.forth:hover {
  transform: translateX(2px);
}

.control.back:hover {
  transform: translateX(-2px);
}

.link-home-container {
  margin: 1em auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 168px;
  left: calc(50% + 400px);
  background-image: url('./imgs/tinypaper.png');
  width: 162px;
  height: 52px;
  background-repeat: no-repeat;
  background-size: contain;
}

.link-home-container:hover {
  transform: rotate(3deg);
}

.link-home-container a {
  margin-left: 6px;
}

.page#right .page-container {
  height: 95%;
}

@media (min-width: 1200px) and (min-height: 700px) {
  main {
    background-size: 990px 670px;
  }

  #book {
    width: 890px;
    height: 640px;
  }

  .post .post-text {
    font-size: 13px;
    line-height: 18px;
  }

  .page .control {
    font-size: 16px;
  }
}