html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 12px;
  justify-content: center;
  align-items: center;
  font-family: 'Sour Gummy', sans-serif;
  background-image: url(images/background.png);
  background-repeat: repeat;
  background-size: 300px;
}

:root {
  --main-background: #dbd0fe;
  --table-outline: #c6eefe;
  --table-background: #fdcde0;
  --label-background: #fdf1e9;
  --label-text: #bf79db;
}

.hidden {
  display: none !important;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.arrow.rotate {
  transform: rotate(180deg);
}

/* HOVER EFFECTS */
.hover-glow {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(213, 138, 226, 0.6);
  transform: scale(1.05);
}

.friend-img.hover-glow:hover {
  box-shadow: 0 0 20px rgba(213, 138, 226, 0.8);
  transform: scale(1.08) rotate(2deg);
}

/* ENHANCED MUSIC PLAYER */
.music-player-container {
  margin: 10px 0;
}

.pixel-audio-player {
  background: #fff6df;
  border: 3px solid #d58ae2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  box-shadow: 2px 2px 0 #000;
  max-width: 300px;
}

.pixel-audio-player button {
  background: #d58ae2;
  color: white;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.pixel-audio-player button:hover {
  background: #b14dc8;
  transform: scale(1.05);
}

.track-info {
  flex: 1;
  min-width: 0;
}

#track-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #d58ae2;
  width: 0%;
  transition: width 0.1s ease;
}

/* SPOTIFY PLAYLIST STYLES */
.spotify-playlist-container {
  background: #fff6df;
  border: 3px solid #d58ae2;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 2px 2px 0 #000;
  max-width: 420px;
  margin: 10px 0;
}

.spotify-header {
  background: #d58ae2;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 10px;
}

.playlist {
  display: none;
}

.playlist-links {
  display: none;
}

.playlist-link {
  display: none;
}

#pixel-audio {
  display: none;
}

/* GALLERY IMAGES */
.gallery-image {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.gallery-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* LIGHTBOX STYLES */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(213, 138, 226, 0.8);
  transform: scale(1.1);
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-prev, .lightbox-next {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: all;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(213, 138, 226, 0.8);
  transform: scale(1.1);
}

.lightbox-prev {
  margin-left: -60px;
}

.lightbox-next {
  margin-right: -60px;
}

/* PLAYLIST STYLES */
.playlist {
  background: #fff6df;
  border: 3px solid #d58ae2;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 2px 2px 0 #000;
  max-width: 300px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.playlist-header {
  background: #d58ae2;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
}

.playlist-items {
  max-height: 120px;
  overflow-y: auto;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
}

.playlist-item:hover {
  background: #f0e6d8;
}

.playlist-item.active {
  background: #e6d4f0;
  font-weight: bold;
}

.track-number {
  min-width: 20px;
  font-size: 10px;
  color: #666;
}

.track-title {
  font-size: 11px;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a:link, a:visited {
  color: black;
  text-decoration: none;
}

a:hover {
  color: black;
  text-decoration: underline;
}

/* HEADER WITH RAINBOW GRADIENT */
.header {
  position: relative;
  width: 830px;
  max-width: 100%;
  height: 180px;
  margin: 0 auto;
  padding-top: 2px;
  padding-bottom: 10px;
  overflow: hidden;
  z-index: 1;
}

/* Rainbow gradient layer - behind banner, in front of background */
.header::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 25px;
  width: 93%;
  height: 70%;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3,
    #ff0000
  );
  background-size: 400% 400%;
  opacity: 0.5;
  z-index: 1;
  animation: rainbowShift 10s ease infinite;
}

/* Banner image layer - on top of rainbow gradient */
.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/banner.png");
  background-size: 98%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-content {
  position: relative;
  z-index: 4;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 434px;
}

.youtube-banner {
  position: relative;
  margin-top: 20px;
  user-select: none;
  pointer-events: none;
}

.logo-link img {
  user-select: none;
  pointer-events: none;
}

/* BLUE TITLE SECTIONS */
.blue-section-wrapper {
  margin: 0;
  padding: 0;
}

.blue-table-container {
  width: 100%;
  max-width: 300px;
  margin: 0;
  border: 2px solid #3b77b8;
  background-color: #3b77b8;
}

.blue-header {
  background-color: #3b77b8;
  color: black;
  font-size: 12px;
  font-weight: bold;
  padding: 5px;
  margin-bottom: 2px;
  word-wrap: break-word;
}

.blue-content-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--label-background);
}

.blue-content-table th,
.blue-content-table td {
  padding: 3px;
  text-align: left;
  border: 3px solid var(--label-background);
}

.blue-content-table th {
  width: 101px;
  background-color: #B1D0EF;
  color: black;
  vertical-align: top;
  text-align: left;
  font-size: 12px;
}

.blue-content-table td {
  background-color: #D5E7FF;
  color: black;
  font-size: 12px;
  word-wrap: break-word;
}

/* ORANGE TITLE SECTIONS */
.orange-bar {
  height: 20px;
  width: 100%;
  max-width: 434px;
  background-color: var(--label-background);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.orange-bar:hover {
  background-color: #f0e6d8;
}

.orange-bar-text {
  color: black;
  font-size: 12px;
  font-weight: bold;
  word-wrap: break-word;
}

.orange-body {
  margin-bottom: 0px;
}

.orange-body-title {
  color: black;
  font-weight: bold;
  font-size: 12px;
  padding-left: 8px;
}

.orange-body-content {
  color: black;
  font-size: 12px;
  display: inline-block;
  padding-bottom: 10px;
  padding-left: 8px;
}

/* FRIEND SPACE */
.friends-container {
  width: 100%;
  max-width: 434px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 8px;
  margin-top: 4px;
}

.friends {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 5px;
}

.friend {
  text-align: center;
}

.friend-link {
  color: black;
  font-weight: bold;
  font-size: 12px;
}

.friend-img {
  width: 85px;
  height: 85px;
  margin-top: 2px;
}

.view-all {
  text-align: right;
  margin-top: 10px;
}

.view-all-link {
  color: #cc0000 !important;
  font-weight: bold;
  font-size: 12px;
}

/* SCROLLING PHOTOS */
.photo-scroll-container {
  height: 640px;
  width: 100%;
  max-width: 420px;
  border: 5px solid #3b77b8;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  display: block;
}

.photo-scroll-container img {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

/* TABLES CONTAINER */
.tables-container {
  display: flex;
  flex-wrap: nowrap;
  width: 820px;
  max-width: 100%;
  margin: 0px auto;
  gap: 11px;
  background-color: var(--main-background);
  padding: 0 10px;
  box-sizing: border-box;
}

.table-wrapper:not(:last-child) {
  margin-right: 11px;
}

.table-wrapper {
  flex: 0 0 346px;
  background-color: var(--main-background);
  margin-bottom: 13px;
  padding-bottom: 10px;
  margin-left: 20px;
  overflow: hidden;
}

.table-wrapper-2 {
  flex: 0 0 434px;
  background-color: var(--main-background);
  margin-left: -20px;
  margin-bottom: 13px;
  padding-bottom: 0px;
  overflow: hidden;
  box-sizing: border-box;
}

.table-wrapper3 {
  background-color: var(--main-background);
  overflow: hidden;
  text-align: center;
  

}

.commimg{
  align-self: center;
  margin-left: 100px;
}

/* PROFILE SECTION */
.profile-container {
  max-width: 304px;
  background-color: transparent;
  margin: 0;
  align-self: flex-start;
}

.profile-header {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-body {
  text-align: left;
  display: flex;
  gap: 4px;
}

.profile-image {
  position: relative;
  flex: 0 0 181px;
}

.profile-image img {
  width: 181px;
  height: 173px;
  border-radius: 0px;
  object-fit: cover;
}

.profile-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 0;
}

.profile-text b {
  font-size: 12px;
  margin-top: 0px;
}

.profile-text p {
  margin-top: 0px;
}

.profile-links {
  margin-top: 6px;
  font-size: 12px;
}

.profile-links a {
  text-decoration: none;
  color: #0000FF;
}

.profile-links a:hover {
  text-decoration: underline;
  color: #cc0000;
}

/* CONTACTS/SOCIAL MEDIA */
.contacts {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 5px;
}

.icon {
  font-size: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  font-weight: 600;
}

.icon i {
  font-size: 15px;
}

/* Brand Colors */
.spotify {
  color: #1ED760;
}
.spotify:hover {
  color: #17a54d;
}

.x {
  color: #000000;
}
.x:hover {
  color: #333333;
}

.tiktok {
  color: #010101;
}
.tiktok:hover {
  color: #555555;
}

.tumblr {
  color: #36465D;
}
.tumblr:hover {
  color: #2a3848;
}

.goodreads {
  color: #553B08;
}
.goodreads:hover {
  color: #3e2a06;
}

.shop {
  color: #E60023;
}
.shop:hover {
  color: #b4001a;
}

.artfight {
  color: #FF6347;
}
.artfight:hover {
  color: #e5533f;
}

a:hover {
  text-decoration: none;
}

/* Blog styling */
.blog {
  background: #fff6df;
  border: 3px solid #d58ae2;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  box-shadow: 2px 2px 0 #000;
}

.blog b {
  font-size: 12px;
  font-weight: bold;
}

.blog p {
  font-size: 12px;
  margin: 5px 0;
  line-height: 1.4;
}

/* CD Profile styling */
.CD {
  margin: 10px 0;
}

.CD img {
  display: block;
}

.CD b {
  display: block;
  margin: 5px 0;
  font-size: 12px;
}

/* FOOTER STYLING */
.footer {
  text-align: center;
  width: 100%;
  background-color: transparent;
  padding: 20px 0;
}

/* Gradient background animation */
.gradient-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}
#commission-info{
  text-align: center;
  margin: auto;
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Tablet and smaller screens */
@media screen and (max-width: 820px) {
  .tables-container {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0 15px;
    display: flex;
  }

  /* Reorder all sections for mobile */
  .table-wrapper {
    display: flex;
    flex-direction: column;
  }

  .profile-header-section {
    order: 1;
  }

  .details-interests-section {
    order: 4;
  }

  .table-wrapper-2 {
    display: flex;
    flex-direction: column;
  }

  .commission-section {
    order: 2;
  }

  .about-section {
    order: 3;
  }

  .friends-section {
    order: 5;
  }

  .socials-section {
    order: 6;
  }

  .artwork-section {
    order: 7;
  }

  .books-spotify-section {
    order: 8;
  }

  .table-wrapper, .table-wrapper-2 {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .table-wrapper {
    margin-left: 0;
  }

  .table-wrapper-2 {
    margin-left: 0;
  }

  .header {
    width: 100%;
    height: 150px;
  }

  .header::before {
    left: 3%;
    top: 25%;
    width: 94%;
    height: 50%;
  }

  .header::after {
    background-size: contain;
  }

  .orange-bar {
    max-width: 100%;
  }

  .photo-scroll-container {
    max-width: 100%;
  }

  .blue-table-container {
    max-width: 100%;
  }

  .friends-container {
    max-width: 100%;
  }

  .friends {
    gap: 15px;
  }

  .friend-img {
    width: 75px;
    height: 75px;
  }

  .pixel-audio-player {
    max-width: 100%;
  }

  .spotify-playlist-container {
    max-width: 100%;
  }

  .playlist {
    max-width: 100%;
  }

  .lightbox-prev {
    margin-left: -50px;
  }

  .lightbox-next {
    margin-right: -50px;
  }

  .lightbox-close {
    top: -35px;
    font-size: 35px;
    width: 45px;
    height: 45px;
  }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
  body {
    font-size: 11px;
  }

  .tables-container {
    padding: 0 10px;
  }

  .header {
    height: 120px;
  }

  .header::before {
    left: 2%;
    top: 20%;
    width: 96%;
    height: 60%;
  }

  .friend-img {
    width: 65px;
    height: 65px;
  }

  .friends {
    gap: 10px;
  }

  .pixel-audio-player {
    flex-direction: row;
    gap: 6px;
    padding: 6px 8px;
  }

  .pixel-audio-player button {
    padding: 5px 8px;
    font-size: 11px;
  }

  #track-label {
    font-size: 10px;
  }

  .lightbox-prev, .lightbox-next {
    font-size: 18px;
    padding: 10px 12px;
  }

  .lightbox-prev {
    margin-left: -35px;
  }

  .lightbox-next {
    margin-right: -35px;
  }

  .lightbox-close {
    top: -30px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .contacts {
    gap: 12px;
  }

  .icon {
    font-size: 18px;
  }

  .icon i {
    font-size: 18px;
  }

  .blue-content-table th {
    font-size: 11px;
    padding: 2px;
  }

  .blue-content-table td {
    font-size: 11px;
    padding: 2px;
  }

  .blog {
    padding: 8px;
  }

  .blog b, .blog p {
    font-size: 11px;
  }
}

/* Very small screens */
@media screen and (max-width: 360px) {
  .tables-container {
    padding: 0 5px;
  }

  .friend-img {
    width: 55px;
    height: 55px;
  }

  .contacts {
    gap: 10px;
  }

  .icon {
    font-size: 16px;
  }

  .icon i {
    font-size: 16px;
  }

  .lightbox-prev {
    margin-left: -25px;
  }

  .lightbox-next {
    margin-right: -25px;
  }
}