
/* Why so curious O-O
 *
 * I'm not really good at styling websites, but I try my best.
 * you will find several cool animations here, most of them I created
 * based on simpler things I found on the internet,
 * searching for example "how to do x using css" or "command to do y"
 * If you don't believe, try it... you can do it!
 *
 * thanks to the internet
*/

:root {
  --note-height: 200px;
  --note-width: 550px;
  --title-padding: 10px;
  --title-height: 20px;
  --thumb-width: 150px;
  --status-height: 150px;
  --status-width: 350px;
  --menu-color: rgba(255, 255, 255, .7);
  --menu-background: rgba(43, 32, 53, 0.8);
  --menu-button-color: rgba(255, 255, 255, 0.7);
  --menu-button-background: rgba(50, 30, 50, 1);
  --menu-hover-background: rgba(100, 0, 100, 0.8);
  --menu-hover-color: rgba(255, 255, 255, 1);
  --menu-selected-color: rgba(139, 0, 139, 1);
  --menu-selected-background: rgba(142, 127, 157, 1);
  --menu-border-color: rgba(204, 204, 204, 0.3);
  --title-color: rgba(255, 255, 255, 0.8);
  --title-background: rgba(95, 82, 105, 0.7);
  --time-color: rgba(255, 255, 255, 0.7);
  --from-color: rgba(255, 0, 0, 0.6);
}

@keyframes move {
  0% {
    background-position: 0 0, 25px 25px;
  }

  5% {
    background-position: 10px 0, 10px 25px;
  }

  35% {
    background-position: 10px 0, 10px 25px;
  }

  40% {
    background-position: 0 -10px, 25px 40px;
  }

  60% {
    background-position: 0 -10px, 25px 40px;
  }

  65% {
    background-position: 0 0, 25px 25px;
  }

  100% {
    background-position: 0 0, 25px 25px;
  }
}

@keyframes hue {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes hue-flick {
  98% {
    filter: hue-rotate(0deg);
  }

  99% {
    filter: hue-rotate(360deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes loading {
  0% {
    width: 50px;
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  20% {
    width: 50px;
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  40% {
    width: 150px;
    transform: translateX(-50px) translateY(0px) rotate(0deg);
  }
  60% {
    width: 150px;
    transform-origin: bottom right;
    transform: translateX(-150px) translateY(0px) rotate(90deg);
  }
  80% {
    width: 50px;
    transform: translateX(-25px) translateY(0px) rotate(90deg);
  }
  100% {
    width: 50px;
    transform: translateX(-50px) translateY(0px) rotate(90deg);
  }
}

@keyframes loadingExtra {
    0% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  20% {
    transform: translateX(0px) translateY(0px) rotate(180deg);
  }
  40% {
    transform: translateX(0px) translateY(0px) rotate(180deg);
  }
  60% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  80% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateX(0px) translateY(0px) rotate(180deg);
  }
}

.loading {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50vh;
  left: 50vw;
  margin-top: -25px;
  margin-left: -25px;
  padding: 0 7px;
  background-color: blue;
  z-index: 200;
  animation: loading 3s ease 0s infinite forwards;
  box-shadow: inset 0 1px 1px 5px rgba(255,255,255,.6),inset 0 1px 50px 10px #000;
}

.loading:before {
  content: "loading...";
  color: white;
  text-align: center;
  display: block;
  padding-top: 15px;
  overflow: clip;
}

.loading:after {
  content: "ʇᴉɐʍ";
  color: white;
  text-align: center;
  padding-top: 25px;
  display: inline-block;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  left: -50px;
  background-color: red;
  transform-origin: top right;
  animation: loadingExtra 3s ease 0s infinite forwards;
  box-shadow: inset 0 1px 1px 5px rgba(255,255,255,.6),inset 0 1px 50px 10px #000;
}

body {
  flex-direction: column;
  font-family: monospace !important;
  font-size: 16px;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  display: flex;

}

body h1 a {
  color: white !important;
}

body footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid #c0c0c0;
    background-image: radial-gradient(rgb(73, 37, 116) 1px 1px);
    animation: hue 10s 1s infinite;
    color: white;
    text-shadow: black 3px 3px 2px;
    padding: 5px !important;
}

body footer ul {
    display: block;
    margin: 0;
    padding: 0 0 5px 0;
    text-align: center;
    vertical-align: middle;
}

body footer p {
  margin: 0 auto;
  padding: 7px 0 0 0;
}

body footer li {
  display: inline-block;
  text-align: center!important;
  margin: 0;
  padding: 0;
  line-height: 0;
}

body footer a.home:link {
  color: white;
}

body footer a.home:hover, body footer ul a:hover {
  color: yellow;
}

ul.menu {
  background-color: var(--menu-background);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: calc(100% - 40px);
  border: 1px solid var(--menu-border-color);
}

.menu {
  background-color: var(--menu-button-background);
}

.menu li {
  display: inline-table;
  float: left;
  margin: 3px;
  padding: 0 1px 0 0
}

.menu li.has-submenu a > img {
  width: 25px;
  vertical-align: bottom;
}

.menu a, nav#manage a {
  display: block;
  padding: 2px 5px;
  text-decoration: none;
  color: var(--menu-color);
  box-shadow: 1px 1px 0 2px black;
}

.menu a:hover, nav#manage a:hover {
  animation: hue .18s cubic-bezier(.02,.2,.05,.2) alternate-reverse;
  color: var(--menu-hover-color);
  background: var(--menu-hover-background);
}

.menu .selected {
  color: var(--menu-hover-color);
  background: var(--menu-hover-background);
}

.menu.login {
  background: brown;
}

li.expand {
  margin: 3px 10px 0 auto;
}

body#collection nav#manage, body#post nav#manage {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  left: 0;
  z-index: 99;
}

nav#manage a {
  color: var(--menu-color) !important;
  padding-bottom: 4px !important;
}

nav#manage > ul > li {
  line-height: 1.5em !important;
  bottom: 0;
  display: block;
  padding: 3px 5px;
  text-decoration: none;
  z-index: 99;
}

nav#manage ul li:hover {
  background: transparent;
}

nav#manage ul li a:hover {
  background: var(--menu-hover-background);
}

nav#manage ul li a {
  /*! background: var(--menu-button-background); */
}

nav#manage ul ul {
  background: var(--menu-background);
  border:1px solid var(--menu-border-color);
  border-radius: 0;
  padding: 0 !important;
}

nav#manage ul ul li {
  min-width: 14em !important;
  margin-top: 3px !important;
}

nav#manage ul ul li.separator hr {
  background: transparent !important;
  margin-top: 3px !important;
  margin-bottom: 3px !important;
}

nav#manage ul ul li img {
  filter: invert();
}

.pager a {
  color: var(--menu-button-color);
  background: var(--menu-button-background);
  border:1px solid var(--menu-border-color);
}

.pager a.selected {
  color: var(--menu-hover-color);
  background: var(--menu-hover-background);
  border:1px solid var(--menu-border-color);
}

main {
  flex: 1 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  justify-content: flex-start;
  background-image: radial-gradient(rgb(255, 255, 255) 1px,transparent 1px),radial-gradient(rgb(255, 255, 255) 1.4px,#150015 1px);
  background-size: 50px 50px;
  background-position: 0 0,25px 25px;
  animation: move 10s cubic-bezier(0,1.5,1,1.5) infinite alternate-reverse;
  width: 100%;
  color: white;
}

main h1, main h2, main h3 {
  margin: 0 auto;
}

#official-writing, #unofficial-writing {
  display: flex;
  flex-direction: column;
  flex: 1 100%;
  justify-content: center;
  background: var(--menu-background);
  margin: 25px 35px 30px 35px;
  padding-top: 30px;
  text-align: center;
  border-radius: 3px;
  animation: hue-flick 15s cubic-bezier(.2,1,.5,1) infinite;
}

#official-writing p.meta-note, #unofficial-writing p.meta-note {
  white-space: pre-line;
}

p.signature {
  text-align: right;
  font-style: italic;
}

#official-writing #wrapper, #unofficial-writing #wrapper {
  text-align: center !important;
  font-size: 1em !important;
  /* for debug */
  /*! background: rgba(0, 0, 255, 0.2); */
  border-radius: 3px;
}

/* what a mess.. */
#official-writing #wrapper section,
#unofficial-writing #wrapper section,
#official-writing section#wrapper,
#unofficial-writing section#wrapper {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

#official-writing hr, #unofficial-writing hr {
  background: transparent;
}

#official-writing h2, #unofficial-writing h2 {
  position: relative;
  color: var(--title-color);
  z-index: 0;
}

#official-writing div.option h2 {
  color: var(--title-color);
}

textarea.section {
  border: 1px solid var(--menu-border-color);
  padding: 0 !important;
  border-radius: 3px !important;
}

input,
select.inputform,
textarea.inputform {
  padding: 10px 0 !important;
  border-radius: 3px !important;
}

#org-nav {
  margin-top: 20px;
}

#org-nav +h1, #org-nav a {
  color: var(--title-color) !important;
}

.content-container {
  display: flex;
  flex-direction: column;
}

.content-container.wide-form {
  text-align: center;
  background: green;
  border-radius: 3px;
}

.content-container.snug {
  text-align: center;
  background: rgba(90, 100, 255, 0.2);
  border-top: 5px double white;
  border-bottom: 5px double white;
  border-radius: 3px;
  margin: 0 auto !important;
  padding: 0 10px;
}

.content-container.snug p {
  margin: 0 !important;
}

.articleContainer {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: calc(10px + var(--note-width));
  height: calc(40px + var(--note-height) + var(--title-padding));
  transition: .3s;
  margin: 10px auto;
  background-color: #5a5a5a;
  box-shadow: inset 0 1px 1px 5px rgba(255,255,255,.6),inset 0 1px 50px 10px #000;
  padding-top: 4px;
  cursor: move;
}

@media screen and (max-width:600px) {
  .articleContainer {
    max-width: 100% !important;
  }
  ul.menu {
    width: 100% !important;
  }
  #official-writing, #unofficial-writing {
    margin: 10px 0 !important;
  }
  body#collection #wrapper p.source {
    padding: 40px 4px !important;
  }
}

@media screen and (min-width: 600px) and (max-width: 900px) {
  .articleContainer {
    max-width: 98% !important;
  }
}

@media screen and (min-width: 900px) and (max-width: 1220px) {
  .articleContainer {
    max-width: 80% !important;
  }
}

@media screen and (min-width:1220px) and (max-width:1600px) {
  .articleContainer {
    max-width: 48% !important;
  }
}

@media screen and (min-width:1600px) and (max-width:1800px) {
  .articleContainer {
    max-width: 43% !important;
  }
}

.hidden_message {
  margin-top: 100px;
  margin-left: 10%;
  color: darkred;
  text-shadow: 10px 10px #000,20px 20px #daa520,30px 30px #f5f5f5;
  position: absolute;
  z-index: 5;
}

article {
  position: relative;
  text-align: left;
  z-index: 10;
  box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);
  margin: 0 5px !important;
  padding: 0;
  height: calc(35px + var(--note-height) + var(--title-padding));
  width: var(--note-width);
  /* temporary default */
  background-color: var(--title-background);
}

article h1, article h2, article p {
  line-height: 1em;
}

.e-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: var(--note-height);
  overflow: hidden;
  background: #ccc;
  color: black;
}

.e-content p:not(.hidden_message) {
  white-space: pre-line;
  width: 100%;
  /*margin-left: var(--thumb-width);*/
  margin: 10px 0 0 calc(150px + 10px);
  z-index: 5;
}

.e-content.preview {
  max-height: calc(var(--note-height) - var(--title-height) + 5px) !important;
}

.e-content div.over {
  z-index: 10;
  left: var(--thumb-width) !important;
}

.e-content:not(.preview) img {
  position: relative;
  max-height: 550px;
  z-index: 0;
  border-radius: 10px;
}

body#post article#post-body, body#post article.wrap.h-entry {
  width: 95% !important;
  height: 100% !important;
  margin: 0 auto 30px !important;
}

body#post article#post-body .e-content, body#post article.wrap.h-entry .e-content {
   height: 100%;
   padding: 30px;
   text-align: center;
}

body#post article#post-body .e-content p, body#post article.wrap.h-entry .e-content p {
   margin-bottom: 20px;
}

.post-title, body#post article h2#title {
  margin: 0;
  padding: calc(var(--title-padding) + 5px);
  height: calc(var(--title-height) + 5px);
  line-height: 1em;
  white-space: nowrap;
  overflow: hidden;
  max-width: var(--note-width);
  text-shadow: 2px 2px #000;
}

.post-title a:link {
  color: unset !important;
}

.articleContainer:nth-child(8n) article {  background-color:  #009688; }
.articleContainer:nth-child(8n+1) article { background-color: mediumpurple; }
.articleContainer:nth-child(8n+2) article { background-color: #ae5995; }
.articleContainer:nth-child(8n+3) article { background-color: darkblue; }
.articleContainer:nth-child(8n+4) article { background-color: #ffb300c2; }
.articleContainer:nth-child(8n+5) article { background-color: darkred; }
.articleContainer:nth-child(8n+6) article { background-color: #ababab; }
.articleContainer:nth-child(8n+7) article { background-color: #ff80aa; }

body#collection article p.norm,
body#collection article p.sans,
body#collection article p.wrap,
body#post article.norm,
body#post article.sans,
body#post article.wrap {
  white-space: nowrap;
}

.post-title h2, body#post article h2#title {
  color: var(--title-color) !important;
}

.post-title time,
.post-title time a:link,
.post-title time a:visited,
.post-title+.time {
  color: var(--time-color);
}

body#collection header, body#post header {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  opacity: 1 !important;
}

body#collection #wrapper,
body#collection article,
body#post article,
body#post #wrapper {
  max-width: 2000px !important; /* 3 notes per line */
  width: calc(100% - 10px) !important; /* not bigger than container */
  /*! margin: 0 auto; */
}

body#post article.wrap p:not(.source) {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  line-height: 1.5 !important;
}

body#post article.wrap p:not(.source) > b {
  color: darkred;
}

body#collection #wrapper a.action, body#post #wrapper a.action {
  position: relative;
  text-shadow: #000 1px 1px 2px;
  border: 1px solid #000;
  border-radius: 2px;
  padding: 3px;
  background: rgba(0,0,0,0.7);
}

body#collection #wrapper time, body#post #wrapper time {
  position: absolute;
  top: 0;
  right: 0;
  text-shadow: #000 1px 1px;
  color: var(--time-color) !important;
  padding: 0 5px;
  font-size: 15px !important;
  font-family: monospace !important;

}

body#collection #wrapper h2+time, body#post #wrapper h2+time {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  text-shadow: #000 1px 1px;
  padding: 4px 4px;
  color: var(--time-color) !important;
  font-size: 15px !important;
  font-family: monospace !important;
  z-index: 10;
}

body#collection #wrapper p.source, body#post #wrapper p.source {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  color: var(--from-color);
}

body#collection #wrapper p.source a, body#post #wrapper p.source a {
  color: blue;
  text-decoration: underline; 
}

body#collection #wrapper p.source {
  padding: 20px 4px;
}

body#post #wrapper p.source {
  padding: 25px 10px;
}

body#collection a.read-more, body#subpage a.read-more {
  position: absolute;
  right: 0px;
  top: calc(var(--note-height) + var(--title-height));
  color: rgba(255, 255, 150, 1) !important;
  z-index: 15;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.4em;
}

body#collection article.sans a.read-more,
body#collection article.norm a.read-more {
  line-height: 0.9em;
}

body#collection article.norm h2,
body#collection article.sans h2 {
  line-height: .7em;
}

body#collection img[alt="thumb"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: var(--thumb-width);
  height: var(--note-height);
  object-fit: cover;
  object-position: center;
}

body#collection #paging a,
body#subpage #paging a {
  background: black;
  color: cyan;
  padding: 5px;
  border: 1px solid var(--menu-border-color);
}

input[type=submit] {
  background: var(--menu-background) !important;
  border-block-color: var(--menu-border-color) !important;
}

input {
  border-radius: 3px !important;
}


body#pad #tools {
  position:fixed;
  top:0;
  left:0;
  right:0;
  margin:0;
  padding: 0 !important;
  opacity: 1 !important;
  z-index: 5;
}

body#pad #tools #clip,
body#pad-sub #tools #clip {
  display:inline-block;
  margin-top: 0 !important;
  margin-left: 130px;
}

body#pad #tools #belt a,
body#pad-sub #tools #belt a {
  padding: 0 !important;
  vertical-align:middle;
  opacity: 1 !important;
}

body#pad #tools #belt div,
body#pad-sub #tools #belt div {
  padding: 0 10px !important;
  vertical-align:middle;
  opacity: 1 !important;
}

body#pad #tools #belt {
  margin-top: 15px;
  margin-right: 50px;
}

body#pad #tools nav {
  opacity: 1 !important;
}

body#pad #tools nav ul a,
body#pad-sub #tools nav ul a {
  color: var(--menu-color) !important;
  /*! background: var(--menu-button-background) !important; */
}

body#pad #tools nav ul ul,
body#pad-sub #tools nav ul ul {
  color: var(--menu-color) !important;
  background: var(--menu-button-background) !important;
  border: 1px solid var(--menu-border-color) !important;
  border-radius: 3px !important;
}

body#pad #tools nav ul li.menu-heading,
body#pad-sub #tools nav ul li.menu-heading {
  color: white !important;
}

body#pad #tools nav>ul>li,
body#pad-sub #tools nav>ul>li {
  line-height:1.5em !important;
  bottom: 0 !important;
}

body#pad #tools nav ul li:hover {
  background: var(--menu-hover-background);
}

body#pad #tools nav ul li.selected {
  background: var(--menu-selected-background);
  color: var(--menu-selected-color);
}

.atoms a,
.atoms a.action,
body#pad-sub #posts a,
body#pad-sub #posts a.action {
  color: yellow;
}


body#post article ol,
body#post article ul {
  margin: 0 auto 20px !important;
  text-align: left;
}
