
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--pri-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cpath fill='%23707070' fill-opacity='0.2' d='M0 85.02l4.62-4.27a49.09 49.09 0 0 0 7.33 3.74l-1.2 10.24 2.66.87 5.05-9c2.62.65 5.34 1.08 8.12 1.28L28.6 98h2.8l2.02-10.12c2.74-.2 5.46-.62 8.12-1.28l5.05 8.99 2.66-.86-1.2-10.24c2.55-1.03 5-2.29 7.33-3.74l7.58 7 2.26-1.65-4.3-9.38a48.3 48.3 0 0 0 5.8-5.8l9.38 4.3 1.65-2.26-7-7.58a49.09 49.09 0 0 0 3.74-7.33l10.24 1.2.87-2.66-9-5.05a48.07 48.07 0 0 0 1.28-8.12L88 41.4v-2.8l-10.12-2.02c-.2-2.74-.62-5.46-1.28-8.12l8.99-5.05-.86-2.66-10.24 1.2c-1.03-2.55-2.29-5-3.74-7.33l7-7.58-1.65-2.26-9.38 4.3a48.3 48.3 0 0 0-5.8-5.8L62.42 0h2.16l-1.25 2.72a50.31 50.31 0 0 1 3.95 3.95l9.5-4.36 3.52 4.85-7.08 7.68c.94 1.6 1.79 3.27 2.54 4.98l10.38-1.21 1.85 5.7-9.11 5.12c.39 1.8.68 3.65.87 5.52L90 37v6l-10.25 2.05a49.9 49.9 0 0 1-.87 5.52l9.11 5.12-1.85 5.7-10.38-1.21c-.75 1.7-1.6 3.37-2.54 4.98l7.08 7.68-3.52 4.85-9.5-4.36a50.31 50.31 0 0 1-3.95 3.95l4.36 9.5-4.85 3.52-7.68-7.08c-1.6.94-3.27 1.79-4.98 2.54l1.21 10.38-5.7 1.85-5.12-9.11c-1.8.39-3.65.68-5.52.87L33 100h-6l-2.05-10.25a49.9 49.9 0 0 1-5.52-.87l-5.12 9.11-5.7-1.85 1.21-10.38c-1.7-.75-3.37-1.6-4.98-2.54L0 87.68v-2.66zM0 52.7V27.3l8.38 4.84a22.96 22.96 0 0 0 0 15.72L0 52.7zm0-39.16A39.91 39.91 0 0 1 26 .2v17.15a22.98 22.98 0 0 0-13.62 7.86L0 18.06v-4.52zm0 52.92v-4.52l12.38-7.15A22.98 22.98 0 0 0 26 62.65V79.8A39.91 39.91 0 0 1 0 66.46zM34 79.8V62.65a22.98 22.98 0 0 0 13.62-7.86l14.85 8.58A39.97 39.97 0 0 1 34 79.8zm32.48-23.36l-14.86-8.58a22.96 22.96 0 0 0 0-15.72l14.86-8.58A39.86 39.86 0 0 1 70 40a39.9 39.9 0 0 1-3.52 16.44zm-4.01-39.8L47.62 25.2A22.98 22.98 0 0 0 34 17.35V.2a39.97 39.97 0 0 1 28.47 16.43v.01zM0 50.38l5.98-3.45a25.01 25.01 0 0 1 0-13.88L0 29.6v20.78zm.5-34.35l11.48 6.63c3.27-3.4 7.44-5.8 12.02-6.94V2.47A37.96 37.96 0 0 0 .5 16.04v-.01zm0 47.92A37.96 37.96 0 0 0 24 77.53V64.28a24.97 24.97 0 0 1-12.02-6.95L.5 63.96v-.01zM36 77...");
  background-size: 360px 360px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cpath fill='%23254E58' fill-opacity='0.2' d='M0 85.02l4.62-4.27a49.09 49.09 0 0 0 7.33 3.74l-1.2 10.24 2.66.87 5.05-9c2.62.65 5.34 1.08 8.12 1.28L28.6 98h2.8l2.02-10.12c2.74-.2 5.46-.62 8.12-1.28l5.05 8.99 2.66-.86-1.2-10.24c2.55-1.03 5-2.29 7.33-3.74l7.58 7 2.26-1.65-4.3-9.38a48.3 48.3 0 0 0 5.8-5.8l9.38 4.3 1.65-2.26-7-7.58a49.09 49.09 0 0 0 3.74-7.33l10.24 1.2.87-2.66-9-5.05a48.07 48.07 0 0 0 1.28-8.12L88 41.4v-2.8l-10.12-2.02c-.2-2.74-.62-5.46-1.28-8.12l8.99-5.05-.86-2.66-10.24 1.2c-1.03-2.55-2.29-5-3.74-7.33l7-7.58-1.65-2.26-9.38 4.3a48.3 48.3 0 0 0-5.8-5.8L62.42 0h2.16l-1.25 2.72a50.31 50.31 0 0 1 3.95 3.95l9.5-4.36 3.52 4.85-7.08 7.68c.94 1.6 1.79 3.27 2.54 4.98l10.38-1.21 1.85 5.7-9.11 5.12c.39 1.8.68 3.65.87 5.52L90 37v6l-10.25 2.05a49.9 49.9 0 0 1-.87 5.52l9.11 5.12-1.85 5.7-10.38-1.21c-.75 1.7-1.6 3.37-2.54 4.98l7.08 7.68-3.52 4.85-9.5-4.36a50.31 50.31 0 0 1-3.95 3.95l4.36 9.5-4.85 3.52-7.68-7.08c-1.6.94-3.27 1.79-4.98 2.54l1.21 10.38-5.7 1.85-5.12-9.11c-1.8.39-3.65.68-5.52.87L33 100h-6l-2.05-10.25a49.9 49.9 0 0 1-5.52-.87l-5.12 9.11-5.7-1.85 1.21-10.38c-1.7-.75-3.37-1.6-4.98-2.54L0 87.68v-2.66zM0 52.7V27.3l8.38 4.84a22.96 22.96 0 0 0 0 15.72L0 52.7zm0-39.16A39.91 39.91 0 0 1 26 .2v17.15a22.98 22.98 0 0 0-13.62 7.86L0 18.06v-4.52zm0 52.92v-4.52l12.38-7.15A22.98 22.98 0 0 0 26 62.65V79.8A39.91 39.91 0 0 1 0 66.46zM34 79.8V62.65a22.98 22.98 0 0 0 13.62-7.86l14.85 8.58A39.97 39.97 0 0 1 34 79.8zm32.48-23.36l-14.86-8.58a22.96 22.96 0 0 0 0-15.72l14.86-8.58A39.86 39.86 0 0 1 70 40a39.9 39.9 0 0 1-3.52 16.44zm-4.01-39.8L47.62 25.2A22.98 22.98 0 0 0 34 17.35V.2a39.97 39.97 0 0 1 28.47 16.43v.01zM0 50.38l5.98-3.45a25.01 25.01 0 0 1 0-13.88L0 29.6v20.78zm.5-34.35l11.48 6.63c3.27-3.4 7.44-5.8 12.02-6.94V2.47A37.96 37.96 0 0 0 .5 16.04v-.01zm0 47.92A37.96 37.96 0 0 0 24 77.53V64.28a24.97 24.97 0 0 1-12.02-6.95L.5 63.96v-.01zM36 77...");
  }
}

a {
  cursor: pointer;
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

a i {
  vertical-align: middle;
}

.anchor-like {
  cursor: pointer;
  color: var(--link);
  transition: color 0.2s ease;
}

.anchor-like:hover {
  color: var(--link-hover);
}

.clickable {
  cursor: pointer;
}

.bold {
  font-weight: bold;
}

.mainView {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pageHeader {
  color: var(--text);
  background: var(--special);
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.pageBody {
  padding: 20px;
  display: flex;
  flex-flow: row nowrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.pageBody .contentSection {
  flex: 1;
  max-width: 900px;
  margin-right: 20px;
}

.toybox-page .pageBody .contentSection {
  max-width: 1100px;
}

.pageBody .linkSection {
  width: 250px;
  min-width: 250px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.pageBody {
  view-transition-name: page-content;
}

.pageFooter {
  color: var(--text);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  opacity: 0.7;
}

img[src^="/images/icons"] {
  border: none !important;
  height: 32px;
  transition: background-color 0.2s ease;
}

img[src^="/images/icons"]:hover {
  background-color: var(--accent);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--sec-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px var(--shadow-hover);
}

.card .card-header {
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 0;
  background-color: var(--sec-fg);
  border-bottom: 1px solid var(--border);
  border-radius: 0.75rem 0.75rem 0 0;
}

.card .card-header a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.card .card-header a:hover {
  color: var(--link-hover);
}

.card .page-title {
  font-size: 18px;
}

.card .card-body {
  color: var(--text);
  flex: 1 1 auto;
  padding: 1.25rem;
}

.card .card-body img {
  margin: 10px auto;
  max-width: 90%;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.card .card-body .polaroid {
  max-width: 800px;
  margin-top: 5px;
  margin-right: auto;
}

.card .card-body .polaroid a {
  background: var(--sec-bg);
  border-radius: 5px;
  display: inline-block;
  padding: 15px 15px 30px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.2s linear;
  z-index: 0;
  position: relative;
  cursor: pointer;
}

.card .card-body .polaroid a:after {
  color: var(--text);
  font-family: fantasy;
  font-size: 25px;
  content: attr(title);
  position: relative;
  top: 15px;
}

.card .card-body .polaroid img {
  display: block;
  max-width: 100%;
  border: unset;
  border-radius: unset;
  margin-left: auto;
  margin-right: auto;
}

.card .card-body .polaroidImg {
  background: var(--sec-bg);
  border-radius: 5px;
  display: inline-block;
  padding: 15px 15px 30px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.2s linear;
  z-index: 0;
  position: relative;
  cursor: pointer;
}

.card .card-body .polaroidImg img {
  display: block;
  max-width: 100%;
  border: unset;
  border-radius: unset;
  margin-left: auto;
  margin-right: auto;
}

.card .card-body .polaroidImg::after {
  color: var(--text);
  font-family: fantasy;
  font-size: 25px;
  content: attr(alt);
  position: relative;
  top: 15px;
}

.card .card-body .card {
  border: 1px solid var(--border);
  background-color: var(--sec-fg);
  box-shadow: none;
}

.post {
  width: 100%;
}

.post .post-metadata {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 16px;
}

nav {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px;
  margin: 0;
  padding: 0 10px 0 0;
}

nav .brand a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--nav-text);
  margin: 0;
  padding: 0;
  gap: 10px;
}

nav .brand a:hover {
  color: var(--nav-hover);
}

nav .brand a > h1 {
  text-decoration: none;
  display: inline-block;
  margin: 0;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

nav .brand svg {
  height: 32px;
  width: 32px;
  vertical-align: middle;
  fill: var(--nav-text);
}

nav ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 60px;
  gap: 4px;
}

nav ul li a {
  display: flex;
  align-items: center;
  color: var(--nav-text);
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  gap: 6px;
}

nav ul li a:hover {
  color: var(--nav-hover);
  background-color: rgba(255, 255, 255, 0.1);
}

nav .material-icons {
  vertical-align: middle;
}

nav .mobile-menu {
  width: 100%;
  display: block;
}

nav .mobile-menu .mobile-brand {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background-color: var(--special);
  justify-content: space-between;
}

nav .mobile-menu .mobile-brand .mobile-close {
  display: none;
  color: var(--nav-text);
  cursor: pointer;
  padding: 5px;
}

nav.mobile-menu-open .hamburger-toggle {
  display: none;
}

nav.mobile-menu-open .mobile-menu .mobile-close {
  display: block;
}

nav .mobile-menu .mobile-brand a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--nav-text);
  gap: 10px;
}

nav .mobile-menu .mobile-brand a:hover {
  color: var(--nav-hover);
}

nav .mobile-menu .mobile-brand svg {
  height: 28px;
  width: 28px;
  fill: var(--nav-text);
}

nav .mobile-menu .mobile-brand h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  color: var(--nav-text);
}

nav .mobile-menu ul {
  width: 100%;
  flex-direction: column;
  height: auto;
  gap: 0;
}

nav .mobile-menu ul li {
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: left;
}

nav .mobile-menu ul li a {
  text-align: left;
  width: 100%;
  padding: 12px 16px;
}

nav .hide {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hide {
  display: none;
}

nav .mobile-menu {
  opacity: 1;
}

nav.mobile-menu-open .brand {
  display: none;
}

nav .hamburger-menu {
  vertical-align: middle;
  margin-left: auto;
  height: auto;
  width: 40px;
  text-align: center;
  margin-right: 10px;
}

nav .hamburger-toggle {
  color: var(--nav-text);
  display: none;
  padding: 5px 10px;
}

@media screen and (max-width: 768px) {
  nav .hamburger-toggle {
    display: inline-block;
  }
}

nav .desktop-menu-toggle {
  display: flex;
}

@media screen and (max-width: 768px) {
  nav .desktop-menu-toggle {
    display: none;
  }
}

.active-nav {
  color: var(--accent);
}

.button {
  display: inline-block;
  transition: all 0.2s ease;
  background-color: var(--sec-fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.button:hover {
  background-color: var(--accent);
  color: var(--link-hover);
  border-color: var(--accent);
}

.button.disabled {
  background-color: var(--pri-fg);
  border: 1px solid var(--pri-fg);
  color: var(--sec-fg);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0;
  padding: 0 10px;
}

.page-info {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

.page-info-full {
}

@media screen and (max-width: 480px) {
  .page-info-full {
    display: none;
  }
}

.page-info-small {
  display: none;
}

@media screen and (max-width: 480px) {
  .page-info-small {
    display: block;
  }
}

pre {
  background: var(--sec-fg);
  border-left: 4px solid var(--special);
  border-radius: 4px;
  color: var(--text);
  page-break-inside: avoid;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1em 1.5em;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.grid {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.gridItem {
  flex: 1;
  min-width: 50%;
  white-space: nowrap;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0turn;
  inherits: true;
}

@keyframes rotate {
  to {
    --angle: 1turn;
  }
}

.link-group {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  vertical-align: middle;
}

.link-item {
  border-radius: 20px;
  padding: 10px;
  margin: 5px;
  width: 300px;
  text-decoration: none;
  color: var(--text);
  border: 3px solid transparent;
  background: linear-gradient(var(--sec-bg) 0 0) padding-box,
    conic-gradient(from var(--angle), blue, purple, red, purple, blue)
    border-box;
  animation: rotate 3s linear infinite;
  animation-play-state: paused;
}

.link-item .link-title {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--special);
  text-align: center;
  font-weight: bold;
}

.link-item:hover,
.link-item:focus-visible {
  animation-play-state: running;
}

.cloud {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-content: center;
}

.cloudItem {
  white-space: nowrap;
  margin: 0;
}

.sidebar-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sidebar-tab {
  background: none;
  border: none;
  color: var(--pri-fg);
  cursor: pointer;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sidebar-tab:hover {
  background-color: var(--sec-fg);
  color: var(--text);
}

.sidebar-tab.active {
  background-color: var(--accent);
  color: var(--nav-text);
}

.sidebar-panel {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sidebar-quote {
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 12px 0;
}

.quote-of-the-day {
  background-color: var(--sec-fg);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
}

.quote-text {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 8px 0;
  color: var(--text);
}

.quote-author {
  font-size: 14px;
  margin: 0;
  opacity: 0.7;
  text-align: right;
}

.byLink {
  transition: all 0.2s ease;
  background-color: var(--sec-fg);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--accent);
  padding: 4px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 4px;
}

.byLink:hover {
  background-color: var(--accent);
  color: var(--link-hover);
  border-color: var(--accent);
}

.mobile {
  display: none;
}

@media screen and (max-width: 960px) {
  .mobile {
    display: inline-block;
  }
}

.center {
  text-align: center;
}

.desktop {
  display: inline-block;
}

@media screen and (max-width: 960px) {
  .desktop {
    display: none;
  }
}

.embed-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.embed-responsive-16by9 {
  padding-bottom: 56.25%;
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.life-container {
  border: 2px solid var(--pri-bg);
  background: var(--sec-fg);
  color: var(--special);
  margin-bottom: 20px;
}

.error-code {
  color: var(--special);
  font-size: 100px;
}

.error-message {
  color: var(--special);
}

.createdDate {
  font-size: 14px;
  margin-top: 4px;
  opacity: 0.6;
  font-weight: 400;
}

.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

.fullSize {
  width: 100%;
  height: 100%;
}

gram a:hover {
  transform: scale(1.25);
  position: relative;
  z-index: 5;
}

gram a {
  transition: transform 0.15s linear;
  box-shadow: 0 3px 6px var(--shadow);
}

.life-container {
  min-width: 320px;
  min-height: 200px;
  width: 100%;
  height: 50vw;
}

.lamp-container {
  min-width: 320px;
  min-height: 200px;
  width: 100%;
  height: 50vw;
}

.menu-button {
  cursor: pointer;
}

.optional-menu-button {
  display: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  margin: 4px 2px;
  color: var(--text);
  background-color: var(--sec-fg);
}

@media screen and (max-width: 767px) {
  .optional-menu-button {
    display: block;
  }
}

@media (hover: none) {
  .optional-menu-button {
    display: block;
  }
}

@media screen and (max-width: 960px) {
  .pageBody {
    flex-direction: column;
    padding: 10px;
  }

  .pageBody .contentSection {
    max-width: 100%;
  }

  .pageBody .linkSection {
    width: 100%;
    min-width: 100%;
    position: static;
    margin-top: 16px;
  }
}

@media screen and (max-width: 480px) {
  .pageBody {
    padding: 8px;
  }

  .card .card-header {
    font-size: 16px;
    padding: 0.75rem 1rem;
  }

  .card .card-body {
    padding: 1rem;
  }

  nav .brand a > h1 {
    font-size: 20px;
  }

  .card .card-body h1 {
    font-size: 22px;
  }
}