//@Author: 17moonup
//@Time: 2024/07/25

html {
  background-color: #f4f4f4;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -moz-writing-mode: vertical-rl;
}

body {
  margin: 20px;
  font-size: 10.5pt;
  font-family: "LXGW WenKai TC", cursive;
  line-height: 1.5;
  background-color: #f3f3f3;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -moz-writing-mode: vertical-rl;
}

main {
  margin: 2rem 10rem 0 0;
  writing-mode: vertical-rl;
}

.title {
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  bottom: 0;
  font-size: 3.2rem;
  text-shadow: 0.7px 0.1px seagreen;
  background-color: #f3f3f3;
  opacity: 0.95;
}

ruby {
  font-size: 3rem;
}

rt {
  /*--Big Bug--*/ //padding: 2px 12px 0 0;
  text-orientation: upright;
  font-size: 37%;
  letter-spacing: 0;
  ruby-align: center;
  text-align: center; /* chrome */
}

details {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 0 3rem;
}

summary {
  list-style: none;
  font-size: 2.5rem;
}

summary::-webkit-details-marker {
  display: none;
}

ul {
  margin: 1rem auto;
  padding: 1rem 2rem;
  font-size: 1.65rem;
  list-style: Number;
  list-style-position: outside;
  color: black;//darkmagenta;
}

li {
  padding: 0 2rem;
// little bug: ul title unmatch to a. margin: 0 3rem; 
}

a {
  font-size: 1.65rem;
  text-decoration: none;
  color: purple;
}

details[open] summary ~ * {
  animation: expand 1s ease-in-out forwards;
}

@keyframes expand {
  from {
  opacity: 0;
  max-height: 0;
  }
  to {
  opacity: 1;
  max-height: 100vh;
  }
}

details > summary::before {
  content: ""; 
  }

a:hover { 
  text-decoration: underline;
}

.title a {
  margin: 1rem auto;
  color: black;
  text-decoration: none;
}

li:hover {
  text-shadow: 0 1px 1px lightskyblue;//cornflowerblue;
}

@counter-style Number {
  system: "numeric";
  symbols: "  壹" "  貳" "  叁" "  肆" "  伍" "  陸" "  柒" "  捌" "  玖" "  拾" "拾壹" "拾貳" "拾叁" "拾肆" "拾伍" "拾陸" "拾柒" "拾捌" "拾玖" "貳十" "貳壹";
  suffix: "|"; 
}

@media screen and (max-width: 1080px) {

ruby {
  font-size: 3.5rem;
} 

.title {
  font-size: 3.5rem;
  text-shadow: none;
}

summary {
  font-size: 3rem;
}

li:hover {
  text-shadow: none;
}

a {
  font-size: 1.7rem;
}

details {
  box-shadow: none;
}
  }
