.about-page {
  --panel-bg: #000;

  font-family: var(--font);
  cursor: url("https://zko.neocities.org/elements/cursor/5.png"), auto;

  background-image: url("https://zko.neocities.org/elements/bgs/338.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-color: #000;
  padding: 24px;
}

/* Main boxes */
/* Main boxes */
.about-page .about-main,
.about-page .about-status {
  background: rgba(0, 0, 0, 0.9);

  border: 14px solid transparent !important;
  border-image-source: url("https://zko.neocities.org/elements/borders/18.png") !important;
  border-image-slice: 60 !important;
  border-image-repeat: round !important;
}

.about-page .about-second-row > *,
.about-page .about-bottom-row {
  background: rgba(0, 0, 0, 0.9);
  background-clip: padding-box;
  border: 14px solid transparent;
  border-image: none;
  padding: 6px;
}

.about-page .about-main > .about-main-inner,
.about-page .about-second-row > * > *,
.about-page .about-bottom-row > * {
  background: transparent;
  border: none;
}

/* Stamp scrollbox */
.about-page /* Stamp position and scrollbar */
.about-stamps-scroll {
  background: rgba(0, 0, 0, 0.42);
  background-clip: padding-box;
  border: 14px solid transparent;
  border-image: none;
  padding: 6px;
}

.about-page /* Gallery */
.about-gallery {
  background: rgba(0, 0, 0, 0.9);
  background-clip: padding-box;
  padding: 10px;
}

/* Top border */
.about-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  background-image: url("https://zko.neocities.org/elements/divs/37.png");
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 100px;
}

/* Bottom-left image */
.aboutpage-bottom-right-image {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 300px;
  height: auto;
  z-index: 1000;
  pointer-events: none;
}

@media (max-width: 700px) {
  .aboutpage-bottom-left-image {
    display: none;
  }
}

/* Blinkies */
.graphics-marquees marquee img {
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.graphics-marquees {
  display: flex;
  flex-direction: column;
  gap: 4px; 
}

.blinkiebutton-row img {
  height: 25px;      
  width: auto;
  margin-right: -2px; 
  vertical-align: middle;
}

.stamp-row img {
  height: 50px;      
  width: auto;
  margin-right: -2px;
  vertical-align: middle;
}

/* Layout */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-page .top-banner {
  background-image: url("");
}

.about-page .header-nav {
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.about-page header {
  background: rgba(0, 0, 0, 0);
}

.about-page .about-tab-button {
  background: rgba(30, 0, 30, 0.5);
  color: #f5e6ff;
  border: 1px solid rgba(255,255,255,0.5);
}

.about-page .about-tab-button:hover,
.about-page .about-tab-button:focus,
.about-page .about-tab-button.active {
  color: #ffb3ff;
  border-color: #ffb3ff;
}

.about-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  align-items: start;
  position: relative;
}

.about-stamps-scroll {
  position: absolute;

  
  top: 0;
  bottom: 0;
  height: auto;

  
  left: -136px;
  width: 142px;

  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  min-width: 0;

  
  direction: rtl;

  scrollbar-width: thin;
  scrollbar-color: #565673 rgba(0, 0, 0, 0.45);
}

.about-stamps-scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  
  direction: ltr;
}

.about-stamps-scroll img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.about-stamps-scroll::-webkit-scrollbar {
  width: 7px;
}

.about-stamps-scroll::-webkit-scrollbar-track {
  background: #000;
}

.about-stamps-scroll::-webkit-scrollbar-thumb {
  background: #565673;
  border-radius: 4px;
}

.about-second-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  align-items: start;
}

.about-second-row .about-blinkies {
  grid-column: 1 / 2;
}

.about-bottom-row {
  display: block;
  margin-top: -240px;
}

.about-second-row {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.about-bottom-row {
  grid-column: 1 / -1;
}

.about-main-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: start;
}

.about-pfp img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page .header-nav a,
.about-page .about-tab-button {
  font-family: var(--heading-font);
}

.about-basic {
  text-align: center;
}

.about-basic h1 {
  transform: translateX(-10px);
}

.about-basic ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.media-status-block {
  margin-bottom: 12px;
}

.media-status-block:last-child {
  margin-bottom: 0;
}

.about-blinkies-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.about-blinkies-box img {
  display: inline-block;
  max-width: 150px;
  height: auto;
}

.about-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.about-tab-button {
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-color);
  border: 1px solid rgba(255,255,255,0.55);
  font-size: 1.1rem;
}

.about-tab-button:hover,
.about-tab-button:focus,
.about-tab-button.active {
  color: var(--link-hover);
  border-color: rgba(255,255,255,0.85);
  background: rgba(20, 20, 20, 0.75);
}

.about-tab-button.active {
  text-decoration: underline;
}

.about-tab-content {
  display: none;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.2);
  padding: 10px;
  min-height: 180px;
  width: 100%;
}

.about-tab-content.active {
  display: block;
}

.about-tab-pane {
  display: none;
}

.about-tab-pane.active {
  display: block;
}

/* Pride flags */
.prideflags {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: 2px 5px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.prideflags img {
  width: 30px;
  height: auto;
  display: block;
}

/* Profile buttons */
.profile-buttons {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2px 5px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.profile-buttons img {
  width: 130px;
  height: auto;
  display: block;
}

/* Hobbies, interests, and DNI */
.about-info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: none;
  margin-top: 18px;
  box-sizing: border-box;
}

.site-info-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(170, 170, 180, 0.13);
  box-shadow:
    0 0 8px rgba(130, 120, 255, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  color: #e8e8e8;
  position: relative;
}

.site-info-box h3 {
  margin: 0 0 6px 0;
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: normal;
}

.site-info-box ul {
  margin: 0;
  padding-left: 18px;
}

.site-info-box li {
  margin-bottom: 3px;
  font-size: 0.9rem;
  line-height: 1.15;
}

.about-gallery {
  margin-top: 18px;
  background: var(--panel-bg);
  background-clip: padding-box;
  padding: 10px;
}

.about-gallery-box {
  height: 240px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px;
  box-sizing: content-box; 
}

.about-gallery-box img {
  display: inline-block;
  height: 220px;
  width: auto;
  margin-right: 10px;
}

.about-main {
  position: relative;
  overflow: hidden;
}

.about-main::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 90px;
  height: 90px;
  background-image: url("");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  transform: scaleX(-1);
  transform-origin: center;
}

.about-main::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 150px;
  width: 120px;
  height: 120px;
  background-image: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 980px) {
  .about-main::after {
    width: 65px;
    height: 65px;
    top: 425px;
    right: 12px;
  }

  .about-basic {
    padding-right: 0;
  }
}

.social-section {
  margin-top: 15px;
}

/* Last.fm */
.lastfm-frame {
  width: 100%;
  max-width: 220px;
  height: 80px;
  border: 0;
  display: block;
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.about-loose-image {
  margin-top: -650px; 
  margin-left: auto;
  width: 33%; 
  padding-right: 6px;
}

@media (max-width: 980px) {
  .about-loose-image {
    margin-top: 12px;
    width: 100%;
  }
}

.about-page .layout {
  position: relative;
}

.about-page .layout::before {
  content: "";
  position: fixed;
  top: 0;
  right: 120px;
  width: 140px;
  height: 260px;
  background-image: url("");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top right;
  pointer-events: none;
  z-index: 10001;
}

.about-graphics-box {
  height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  margin-top: 4px;
}

.about-blinkies {
  margin-top: 4px;
}

.blinkie-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.blinkie-group img {
  height: 31px;
  width: auto;
}

.stamp-group {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px;
  align-content: start;
  justify-content: start;
  margin-bottom: 10px;
}

.stamp-group img {
  width: 100%;
  max-width: 88px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.button-group {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px;
  align-content: start;
  justify-content: start;
}

.button-group img {
  width: 100%;
  max-width: 88px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .about-top-row,
  .about-second-row {
    grid-template-columns: 1fr;
  }

  .about-stamps-scroll {
    position: static;
    width: 100%;
    height: 180px;
    margin-bottom: 8px;
  }

  .about-stamps-scroll-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    align-items: start;
  }

  .about-main-inner {
    grid-template-columns: 1fr;
  }

  .about-pfp img {
    margin: 0 auto;
  }

  .about-status {
    margin-bottom: 20px;
  }

  .about-bottom-row {
    margin-top: 20px !important;
  }

  
  .about-info-boxes {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-info-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Main boxes */
.about-page .about-main,
.about-page .about-status {
  background: rgba(0, 0, 0, 0.9);
}

/* Gallery */
.about-page .about-gallery {
  background: rgba(0, 0, 0, 0.9);
  border: none !important;
  border-image: none !important;
}