html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: rgb(24,24,24);
  color: #eee;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

:root {
  --link-font: 'papyrus', 'Papyrus', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
  /*border: 3px solid transparent;
  background-clip: content-box;*/
}
::-webkit-scrollbar-thumb {
  background: #666;
  border-top: 20px;
  border-radius: 15px;
  filter: drop-shadow(0 0 2em #000);
}
::-webkit-scrollbar-thumb:hover{
  background: #555;
}

a {
  font-family: 'papyrus', 'Papyrus', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-family: var(--link-font);
  position: relative;
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  display: inline-block;
  outline: none;
}
a::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  color: #fff5dd;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 320ms ease-in-out;
}
a::after {
  width: fit-content;
  width: calc-size(fit-content, size + 2px);
}
a:hover::after {
  clip-path: inset(-100% -100% -100% -100%);
}
button {
  padding: 5px;
  border-radius: 5px;
  margin-top: 15px;
  color: #eee;
  background: #888899;
}
button:hover {
  background: #88aaff;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #111;
  border: 2px solid rgba(255, 223, 186, 0.2);
  border-radius: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: relative;
  transition: background-color 200ms ease-in-out, border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}
input[type="checkbox"]:checked {
  background-color: #222;
  border-color: rgba(255, 223, 186, 0.5);
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #eee;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}
input[type="checkbox"]:checked::after {
  opacity: 1;
}
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 3px rgba(255, 223, 186, 0.5);
}

.hq {
  font-size: 0.7em;
}

.centered {
  display: flex;
  align-items: center;
}

#settings-menu > div > * {
  margin-left: 10px;
}

.emoji {
  max-width: 2em;
  max-height: 2em;
  min-height: 1em;
  vertical-align: middle;
  margin: 0 5px;
}

.inline-img {
  max-width: 50%;
  max-height: 100vh;
  position: relative;
  left: 25%;
  animation: float 3s ease-in-out infinite;
  border-radius: 5px;
}

.quote {
  font-family: 'papyrus', 'Papyrus', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  color: rgba(255, 239, 222);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}
.grid ul {
  font-size: 0.9rem;
}

.page-wrapper {
  max-width: 1084px;
  overflow-x: hidden;
  margin: auto;
}
.page-viewport {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-flow: column nowrap;
  max-width: 960px;
  margin-left: 124px;
}
h1, h2, h3, h4 {
  font-family: 'papyrus', 'Papyrus', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}
h1, h2, h3 {
  text-align: center;
  scroll-margin-top: 4rem;
}
.page-viewport > li {
  break-after: page;
  background: rgb(44, 44, 44);
  padding: 10px 80px;
  margin: 20px 0 0 0;
  min-height: 100vh;
  /*filter: drop-shadow(0 0 1em #000);*/
  scroll-margin-top: 4rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.page-viewport > *:last-child {
    margin: 20px 0;
}
.page-viewport > li > div {
  scroll-margin-top: 4rem;
}
#roots {
  background: linear-gradient(rgb(44, 44, 44) 17%, rgb(47, 37, 37) 20%, rgb(47, 37, 37) 27%, rgb(37, 47, 37) 30%, rgb(37, 47, 37) 37%, rgb(42, 45, 37) 40%, rgb(42, 45, 37) 50%, rgb(44, 44, 44) 53%, rgb(44, 44, 44) 62%, rgb(37, 37, 47) 65%, rgb(37, 37, 47) 74%, rgb(42, 37, 45) 77%, rgb(42, 37, 45) 85%, rgb(47, 42, 37) 88%, rgb(47, 42, 37) 98%, rgb(44, 44, 44));
}

.disclaimer-box {
  margin: 1em 5em 0;
  border: 2px solid rgba(255, 0, 0, 0.7);
  background: rgba(255, 0, 0, 0.1);
  border-radius: 12px;
  padding: 15px 20px;
  color: #f8dada;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
  text-align: center;
}

ol.nav {
  flex: 0 0 140px;
  font-family: 'papyrus', 'Papyrus', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-size: 16px;
  list-style: none;
  margin: 25px -15px 5px 5px;
  padding: 1vh 0 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  z-index: 10;
  background: linear-gradient(180deg, #2b1a1a, #3a2a2a);
  border-right: 3px solid rgba(255, 223, 186, 0.2);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}
ol.nav > li {
  padding: 0 0.5rem;
  margin: 3px 7px;
  border-radius: 6px;
  transition: box-shadow 200ms ease-in-out, transform 200ms ease-in-out, color 200ms ease-in-out;
}
ol.nav > hr {
  margin: 7px 7px;
}
.nav a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  /*padding: 0.5rem;*/
  border-radius: 6px;
  transition: color 200ms ease-in-out;
}
.nav a:hover {
  text-decoration: none;
  box-shadow: none;
  color: #fff;
}
.nav > li:hover {
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 223, 186, 0.4);
  transform: scale(1.05);
  color: #fff;
}
.nav > li.ili {
  transition: filter 200ms ease-in-out, transform 200ms ease-in-out, color 200ms ease-in-out;
}
.nav > li.ili:hover {
  box-shadow: none;
  filter: drop-shadow(0 0 2px rgba(255, 223, 186, 0.5)) drop-shadow(0 0 2px rgba(255, 223, 186, 0.4)) drop-shadow(0 0 2px rgba(255, 223, 186, 0.4)) drop-shadow(0 0 2px rgba(255, 223, 186, 0.4));
  transform: scale(1.12);
}
.nav > li.ili > button {
  width: 100%;
}
.nav button > img {
  max-width: 30px;
  vertical-align: middle;
  padding: 10px 0;
}
.nav button,
.nav button:hover {
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
}

#archetypes h2, #pressures h2 {
  position: relative;
}
#archetypes h2::before, #pressures h2::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(10px);
  border-radius: 10px;
}
#captain::before {
  background: linear-gradient(to right, rgba(255, 0, 0, 0.07), rgba(0, 0, 255, 0.05));
}
#executive::before {
  background: linear-gradient(to right, rgba(255, 0, 0, 0.07), rgba(174, 0, 255, 0.05));
}
#mastermind::before {
  background: linear-gradient(to right, rgba(255, 0, 0, 0.07), rgba(255, 128, 0, 0.07));
}
#performer::before {
  background: linear-gradient(to right, rgba(0, 255, 30, 0.07), rgba(0, 0, 255, 0.05));
}
#conductor::before {
  background: linear-gradient(to right, rgba(0, 255, 30, 0.07), rgba(174, 0, 255, 0.05));
}
#maestro::before {
  background: linear-gradient(to right, rgba(0, 255, 30, 0.07), rgba(255, 128, 0, 0.07));
}
#lover::before {
  background: linear-gradient(to right, rgba(255, 255, 0, 0.07), rgba(0, 0, 255, 0.05));
}
#inquisitor::before {
  background: linear-gradient(to right, rgba(255, 255, 0, 0.07), rgba(174, 0, 255, 0.05));
}
#genius::before {
  background: linear-gradient(to right, rgba(255, 255, 0, 0.07), rgba(255, 128, 0, 0.07));
}
#executional-pressure::before {
  background: linear-gradient(to right, rgba(255, 0, 0, 0.07), rgba(174, 0, 255, 0.05));
}
#social-pressure::before {
  background: linear-gradient(to right, rgba(0, 255, 30, 0.07), rgba(0, 0, 255, 0.05));
}
#mental-pressure::before {
  background: linear-gradient(to right, rgba(255, 255, 0, 0.07), rgba(255, 128, 0, 0.07));
}

#menus {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: visible;
}
#f {
  background: #000;
  opacity: 0.5;
  position: fixed;
  left: -75px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 11;
}
.menu {
  position: fixed;
  left: 50%;
  top: 50%;
  display: flex;
  width: fit-content;
  justify-content: center;
  flex-direction: column;
  background: #141314;
  opacity: 1;
  border-radius: 5px;
  z-index: 12;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 1);
  padding: 30px 70px;
  transform: translate(-50%, -50%);
}

.hidden {
  display: none !important;
}
.h {
  opacity: 0 !important;
}

/*@media only screen and (max-width:799px) {
  html {
    font-size: 16px;
  }
  h1, h2 {
    font-size: 2.25rem
  }
  h3, h4, h5, h6, h7 {
    font-size: 1.125rem
  }
}*/

@media only screen and (max-width: 650px), (orientation: portrait) {
  ol.nav {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    display: flex;
    height: unset;
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 3px solid rgba(255, 223, 186, 0.2);
    border-right: none;
  }
  
  .nav li {
    flex: 1 0 auto;
    margin: 0 5px;
  }

  .nav a {
    padding: 0.2rem 0.75rem;
  }
  
  .page-viewport {
    margin-left: 0px;
    margin-top: 45px;
  }

  .page-viewport > li {
    padding: 10px 10px;
  }

  .disclaimer-box {
    margin: 5em 2px 2px;
  }
}

/*@media only screen and (max-width:450px){
  h1, h2 {
    font-size: 8vw
  }
  h3, h4, h5, h6, h7 {
    font-size: 4vw
  }
}
@media only screen and (max-width:400px){
  h1, h2 {
    font-size: 32px
  }
  h3, h4, h5, h6, h7 {
    font-size: 16px
  }
}*/

@font-face{
  font-family:'papyrus';
  src: url('https://alfuwu.github.io/Images/papyrus.woff') format('woff'),
    url('https://alfuwu.github.io/Images/papyrus.ttf') format('truetype');
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-1px); }
  100% { transform: translateY(0px); }
}