@font-face {
  font-family: 'altehaas';
  src: url('https://neocities.org');
}

html {
  scrollbar-width: auto;
  scrollbar-color: #ec1c24 #000000;
}

html.light-mode {
  scrollbar-color: #ec1c24 #f5cf00;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

html.light-mode ::-webkit-scrollbar-track {
  background: #f5cf00;
}

::-webkit-scrollbar-thumb {
  background: #ec1c24;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c8141b;
}

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

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'altehaas', sans-serif;
  font-size: 18px;
  width: 100%;
  max-width: 800px;
  margin: 20px auto 0px auto;
  padding: 0px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.light-mode body,
body.light-mode {
  background-color: #f5cf00;
  color: #000000;
}

body.light-mode h1 {
  color: #ec1c24;
}

body.light-mode h2,
body.light-mode h3 {
  color: #000000;
}

body.light-mode .profile-sidebar {
  background-color: #f5cf00;
}

body.light-mode .profile-title {
  color: #000000;
}

body.light-mode .profile-section h3,
body.light-mode .collapsible-section summary {
  color: #000000;
}

body.light-mode footer {
  background-color: #f5cf00;
  color: #ec1c24;
}

body.light-mode .hamburger-menu {
  background-color: #f5cf00;
  border-color: #ec1c24;
}

body.light-mode .hamburger-menu span {
  background-color: #ec1c24;
}

.top-bar-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0px auto;
}

.theme-toggle-btn,
.hamburger-menu,
.modal-close-btn,
.album-action-btn,
nav ul li a {
  background-color: transparent;
  color: #ec1c24;
  border: 2px solid #ec1c24;
  border-radius: 0px;
  font-family: 'altehaas', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn {
  padding: 6px 12px;
  font-size: 12px;
  width: 100%;
}

.hamburger-menu {
  padding: 8px 10px;
  width: 44px;
  height: 40px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.hamburger-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ec1c24;
  transition: background-color 0.2s ease;
}

.modal-close-btn {
  padding: 8px 16px;
  font-size: 12px;
  margin: 10px auto 0px auto;
  width: 120px;
  display: block;
}

.album-action-btn {
  padding: 8px 16px;
  font-size: 12px;
  width: 100%;
  margin-top: 8px;
  display: block;
}

nav ul li a {
  display: block;
  padding: 7.5px 12px;
  font-size: 13.5px;
}

.theme-toggle-btn:hover,
.hamburger-menu:hover,
.modal-close-btn:hover,
nav ul li a.active,
nav ul li a:hover:not(.disabled) {
  background-color: #ec1c24;
  color: #ffffff;
}

.hamburger-menu:hover span {
  background-color: #ffffff;
}

html.light-mode .theme-toggle-btn,
html.light-mode .hamburger-menu {
  background-color: #f5cf00;
  color: #ec1c24;
}

html.light-mode .theme-toggle-btn:hover,
html.light-mode .hamburger-menu:hover,
html.light-mode .modal-close-btn:hover,
html.light-mode nav ul li a.active,
html.light-mode nav ul li a:hover:not(.disabled) {
  background-color: #ec1c24;
  color: #f5cf00;
}

html.light-mode .hamburger-menu:hover span {
  background-color: #f5cf00;
}

html.light-mode nav ul li a {
  color: #ec1c24;
  border-color: #ec1c24;
}

.album-widget .album-action-btn {
  color: #f5cf00;
  border-color: #f5cf00;
}
.album-widget .album-action-btn:hover {
  background-color: #f5cf00;
  color: #000000;
}
body.light-mode .album-widget .album-action-btn {
  color: #ec1c24;
  border-color: #ec1c24;
}
body.light-mode .album-widget .album-action-btn:hover {
  background-color: #ec1c24;
  color: #f5cf00;
}

.theme-toggle-wrapper {
  position: absolute;
  top: 0px;
  right: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1000;
}

.theme-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

nav {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1000;
}

nav ul {
  list-style-type: none;
  background-color: #000000;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 48px;
  left: 0px;
  width: 160px;
  border: 2px solid #ec1c24;
  border-radius: 0px;
  padding: 8px;
  gap: 6px;
  z-index: 999;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.5);
  transition: background-color 0.3s ease;
}

html.light-mode nav ul {
  background-color: #f5cf00;
}

nav ul.show {
  display: flex;
}

nav ul li a.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

h1 {
  font-family: 'altehaas', sans-serif;
  color: #ec1c24;
  text-align: center;
  margin: 15px 0px;
  transition: color 0.3s ease;
  letter-spacing: 2px;
}

h2, h3, p {
  font-family: 'altehaas', sans-serif;
  margin: 10px 0px;
}

.center-block {
  text-align: center;
  margin: 15px 0px;
}

.center-block.bottom-divider {
  margin: 15px 0px 0px 0px;
}

.responsive-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 0px;
}

.oroboros-img {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.modal-gif {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0px auto;
  border-radius: 0px;
}

.banner-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  transition: filter 0.3s ease;
}

.profile-container {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}

.profile-sidebar {
  flex: 1;
  background-color: #000000;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: background-color 0.3s ease;
}

.avatar-trigger-btn {
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
  display: block;
  margin: 0px auto;
  border-radius: 0px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.avatar-trigger-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 0px;
  object-fit: cover;
  border: 2px solid #ec1c24;
  display: block;
  margin: 0px auto;
}

.custom-avatar-modal {
  border: 2px solid #ec1c24;
  border-radius: 0px;
  padding: 0px;
  max-width: 380px;
  width: 90%;
  background-color: #000000;
  color: #ffffff;
  font-family: 'altehaas', sans-serif;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.8);
  margin: auto;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-avatar-modal[open] {
  opacity: 1;
  transform: scale(1);
}

body.light-mode .custom-avatar-modal {
  background-color: #f5cf00;
  color: #000000;
  border-color: #ec1c24;
}

.custom-avatar-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-avatar-modal[open]::backdrop {
  opacity: 1;
}

.modal-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.modal-box h3 {
  color: #ec1c24;
  margin: 0px;
  letter-spacing: 1px;
}

.modal-box p {
  font-size: 15px;
  line-height: 1.4;
  margin: 0px;
}

.profile-sidebar h3 {
  text-align: center;
  width: 100%;
  margin-bottom: 0px;
}

.profile-title {
  color: #ffffff;
  font-style: italic;
  margin-top: 0px;
  margin-bottom: 0px;
  transition: color 0.3s ease;
  text-align: center;
  width: 100%;
}

.profile-main {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section h3 {
  color: #ffffff;
  border-bottom: 2px solid #ec1c24;
  padding-bottom: 5px;
  margin-top: 0px;
  transition: color 0.3s ease;
}

.collapsible-section {
  margin-top: 0px;
  border-bottom: 2px solid #ec1c24;
  padding-bottom: 5px;
  transition: border-color 0.3s ease;
}

.collapsible-section summary {
  color: #ffffff;
  font-family: 'altehaas', sans-serif;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  padding-bottom: 5px;
  list-style: none;
  position: relative;
  transition: color 0.3s ease;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary::after {
  content: '+';
  position: absolute;
  right: 0px;
  color: #ec1c24;
  font-weight: bold;
}

.collapsible-section[open] summary::after {
  content: '-';
}

.collapsible-content {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-widget {
  border: 2px solid #ec1c24;
  border-radius: 0px;
  padding: 15px;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: #000000;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .status-widget {
  background-color: #f5cf00;
  border-color: #000000;
}

.status-header {
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ec1c24;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px dashed #ec1c24;
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .status-header {
  color: #000000;
  border-color: #000000;
}

.status-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-msg {
  font-size: 14px;
  line-height: 1.4;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-mode .status-msg {
  color: #000000;
}

.status-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.status-time {
  font-size: 11px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

body.light-mode .status-time {
  color: #555555;
}

.status-widget .modal-close-btn {
  color: #ec1c24;
  border-color: #ec1c24;
}
.status-widget .modal-close-btn:hover {
  background-color: #ec1c24;
  color: #ffffff;
}
body.light-mode .status-widget .modal-close-btn {
  color: #000000;
  border-color: #000000;
}
body.light-mode .status-widget .modal-close-btn:hover {
  background-color: #000000;
  color: #f5cf00;
}

.album-widget {
  border: 2px solid #f5cf00;
  border-radius: 0px;
  padding: 15px;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: #000000;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .album-widget {
  background-color: #f5cf00;
  border-color: #ec1c24;
}

.album-header {
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5cf00;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px dashed #f5cf00;
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .album-header {
  color: #ec1c24;
  border-color: #ec1c24;
}

.album-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reads-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reads-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(236, 28, 36, 0.2);
  padding-bottom: 6px;
  text-align: left;
}

.album-row {
  border-bottom: none;
  padding-bottom: 0px;
}

.reads-title {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-mode .reads-title {
  color: #000000;
}

.reads-author {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.5px;
  color: #888888;
  transition: color 0.3s ease;
}

body.light-mode .reads-author {
  color: #555555;
}

.desktop-reads {
  display: block;
}

.mobile-reads {
  display: none;
}

footer {
  font-size: 12px;
  text-align: center;
  padding: 0px 0px 20px 0px;
  background-color: #000000;
  color: #ec1c24;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
    padding: 0px 10px;
    margin-top: 20px;
  }

  .top-bar-container {
    max-width: 100%;
  }

  .hamburger-menu {
    width: 38px;
    height: 36px;
    padding: 6px 8px;
  }

  .hamburger-menu span {
    width: 18px;
  }

  nav ul {
    top: 42px;
    width: 140px;
  }

  nav ul li a {
    padding: 6px 8px;
    font-size: 10px;
  }

  .profile-container {
    flex-direction: column;
  }

  .profile-title {
    margin-bottom: 0px;
  }

  .theme-toggle-btn {
    padding: 6px 8px;
    font-size: 10px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme-icon {
    width: 28px;
    height: 28px;
  }

  .oroboros-img {
    max-width: 125px;
  }

  .desktop-reads {
    display: none;
  }

  .mobile-reads {
    display: block;
    margin-top: 20px;
  }
}

.blog-viewer-wrapper article.post {
  border-radius: 0px !important;
  background-color: var(--post-bg, #111111);
  border: 1px solid #ec1c24;
  box-sizing: border-box;
  margin: 0px auto 15px auto;
  width: 100%;
  padding: 24px;
  text-align: left;
}

.blog-viewer-wrapper article.post p,
.blog-viewer-wrapper article.post .post-content,
.blog-viewer-wrapper article.post .post-title,
.blog-viewer-wrapper article.post .post-footer {
  text-align: left !important;
}

.status-msg a, 
.status-msg a:link, 
.status-msg a:visited {
  color: #ec1c24 !important;
  text-decoration: underline !important;
  font-weight: bold !important;
  transition: color 0.2s ease;
}

.status-msg a:hover, 
.status-msg a:active {
  color: #ffffff !important;
}

body.light-mode .status-msg a,
body.light-mode .status-msg a:link,
body.light-mode .status-msg a:visited {
  color: #000000 !important;
}

body.light-mode .status-msg a:hover {
  color: #ec1c24 !important;
}

blockquote {
  display: block !important;
  border-left: 3px solid #ec1c24 !important;
  padding-left: 16px !important;
  margin: 18px 0px !important;
  font-style: italic !important;
  color: #dddddd !important;
  transition: color 0.3s ease;
}

blockquote .quote-author {
  display: block !important;
  font-style: normal !important;
  margin-top: 6px !important;
  color: #888888 !important;
  font-size: 0.95em !important;
  transition: color 0.3s ease;
}

html.light-mode .blog-viewer-wrapper article.post blockquote,
body.light-mode .blog-viewer-wrapper article.post blockquote,
html.light-mode blockquote,
body.light-mode blockquote {
  color: #222222 !important;
}

html.light-mode .blog-viewer-wrapper article.post blockquote .quote-author,
body.light-mode .blog-viewer-wrapper article.post blockquote .quote-author,
html.light-mode blockquote .quote-author,
body.light-mode blockquote .quote-author {
  color: #666666 !important;
}

.blog-viewer-wrapper article.post p.custom-quote,
article.post p.custom-quote,
p.custom-quote {
  display: block !important;
  border-left: 3px solid #ec1c24 !important;
  padding-left: 16px !important;
  margin: 18px 0px !important;
  font-style: italic !important;
  color: #dddddd !important;
}

html.light-mode .blog-viewer-wrapper article.post p.custom-quote,
body.light-mode .blog-viewer-wrapper article.post p.custom-quote,
html.light-mode p.custom-quote,
body.light-mode p.custom-quote {
  color: #222222 !important;
}

.blog-viewer-wrapper article.post .post-content .custom-quote,
.blog-viewer-wrapper article.post .custom-quote,
article.post .custom-quote,
.custom-quote {
  display: block !important;
  border-left: 3px solid #ec1c24 !important;
  padding-left: 16px !important;
  margin: 18px 0px !important;
  font-style: italic !important;
  color: #dddddd !important;
  text-align: left !important;
}

html.light-mode .blog-viewer-wrapper article.post .post-content .custom-quote,
body.light-mode .blog-viewer-wrapper article.post .post-content .custom-quote,
html.light-mode .custom-quote,
body.light-mode .custom-quote {
  color: #222222 !important;
}