html:not(.touch) * {
  cursor: none !important;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
	background-image: url("/assets/BG.png");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
  cursor: none !important;
}

footer p{
  font-family: 'acetateregular';
  font-size: 16px;
  padding-left: 10px;
  color: white;
}

#download-count {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

#download-count.loaded {
  opacity: 1;
}

@font-face {
    font-family: 'acetateregular';
    src: url('/assets/fonts/acetate-webfont.woff2') format('woff2'),
         url('/assets/fonts/acetate-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.para {
    position: relative;
    font-family: 'acetateregular';
    font-size: 24px;
    color: white;
    margin: 40px auto;
    padding: 40px;
    border-width: thick;
    border-style: solid;
    border-top-color: #f69bff;
    border-left-color: #8a66f7;
    border-right-color: #6e3ad0;
    border-bottom-color: #121b6d;
    max-width: 1500px;
    z-index: 0; /* base layer */
}

/* Transparent background image */
.para::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("/assets/block.png") center/cover no-repeat;
  opacity: 0.7; /* adjust for more or less transparency */
  z-index: -1; /* ensure it's behind everything else */
  pointer-events: none; /* prevents it from blocking mouse events */
}

.para p {
  position: center;
  z-index: 1; /* Make sure text stays above background */
  line-height: 1.1;
  padding: 20px;
}

h1{
  font-weight: normal;
  font-style: normal;
  text-align: center;
}

h3{
  font-weight: normal;
  font-style: normal;
}

.para h2{
  font-size: 24px;
  text-align: center;
  font-weight: normal;
  font-style: normal;
  padding: 20px;
  }

  /* Pre-allocate space */
.banner-placeholder {
  min-height: 25px; /* soft fallback space */
  position: relative;
}

.top-banner {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  border-width: thick;
  border-style: solid;
  border-top-color: #f69bff;
  border-left-color: #8a66f7;
  border-right-color: #6e3ad0;
  border-bottom-color: #121b6d;
  justify-content: center;
  align-items: center;
  padding: 10px 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  height: 240px;
  box-sizing: border-box;
  background: none;
  overflow: hidden;
}

.top-banner.loaded {
  opacity: 1;
}


.top-banner-section.center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  display: flex;
}

.top-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("/assets/siteBanner/bannerBG.png") center/cover no-repeat;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

.image-buttons {
  display: flex;
  gap: 20px;
}

.button {
  position: relative;
  display: inline-block;
}

.button picture,
.button img {
  display: block;
  max-height: 200px; /* Controls max height, can be increased */
  height: auto;
  width: auto;
  transition: filter 0.3s ease;
  transition: transform 0.2s ease;
}

.button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.button-label {
  margin-top: 4px;
  font-family: 'acetateregular';
  font-size: 16px;
  color: white;
  text-shadow: 0 0 5px black;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.button:hover .button-label {
  opacity: 1;
}

.button:hover img {
  filter: blur(2px) brightness(0.8);
  transform: scale(1.05);
}

.extra-button {
  gap: 20px;
  position: relative;
  display: inline-block;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.extra-button picture,
.extra-button img {
  display: block;
  max-height: 200px; /* Controls max height, can be increased */
  height: auto;
  width: auto;
  transition: filter 0.3s ease;
  transition: transform 0.2s ease;
}

.extra-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.extra-button-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'acetateregular';
  font-size: 12px;
  color: white;
  text-shadow: 0 0 5px black;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.extra-button:hover .extra-button-label {
  opacity: 1;
}

.extra-button:hover img {
  filter: blur(2px) brightness(0.8);
  transform: scale(1.05);
}

.logo img {
  height: 136px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo a img:hover {
	transform: scale(1.05);
}

.video-container {
  position: relative;


  margin: 20px auto 0 auto; /* center horizontally */
  justify-content: center;
  align-items: center;
  overflow: hidden;
  display: flex;
}

.video-container iframe{
  height: 480px;
  width: 640px;
}



.com-buttons-container{
  z-index: 1;
  font-family: 'acetateregular';
  font-size: 18px;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-width: thick;
  border-style: solid;
  border-top-color: #f69bff;
  border-left-color: #8a66f7;
  border-right-color: #6e3ad0;
  border-bottom-color: #121b6d;
  background-color: #242424;
  flex-direction: column;
  align-items: center;
  display: flex;
  gap: 4px;
}

.com-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 0 auto;
  flex-wrap: wrap;
}

.com-button {
  font-family: 'acetateregular';
  font-size: 18px;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.com-button:hover {
  color: white;
  transform: scale(1.05);
}

.com-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.discord-button {
  border-color: #7289da;
  color: #7289da;
}

.discord-button:hover {
  background-color: #7289da;
}

.discord-button:hover .com-icon {
  fill: white;
}

.x-button {
  border-color: #1da1f2;
  color: #1da1f2;
}

.x-button:hover {
  background-color: #1da1f2;
}

.x-button:hover .com-icon {
  fill: white;
}

.email-button {
  border-color: #EA4335;
  color: #EA4335
}

.email-button:hover {
  background-color: #EA4335;
}

.email-button:hover .com-icon {
  fill: white;
}

.download-button {
  border-color: #8a66f7;
  color: #8a66f7;
}

.download-button:hover {
  background-color: #8a66f7;
}

.download-button:hover .com-icon {
  fill: white;
}

.youtube-button {
  border-color: #FF0000;
  color: #FF0000;
}

.youtube-button:hover {
  background-color: #FF0000;
}

.youtube-button:hover .com-icon {
  fill: white;
}

.bsky-button {
  border-color: #0285FF;
  color: #0285FF;
}

.bsky-button:hover {
  background-color: #0285FF;
}

.bsky-button:hover .com-icon {
  fill: white;
}

#main-preview {
  transition: opacity 0.5s ease;
  opacity: 1;
}

#main-preview.fading-out {
  opacity: 0;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #a669ff;
  box-shadow: 0 0 20px #6e3ad0;
}

.lightbox.hidden {
  display: none;
}


/* Audio Player Styles */
#audio-player-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(36, 36, 36, 0.9);
  border: 2px solid #6e3ad0;
  border-radius: 10px;
  padding: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#play-pause-btn, #mute-btn {
  background: none;
  border: none;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

#play-pause-btn:hover, #mute-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.audio-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

#volume-slider {
  width: 80px;
  accent-color: #8a66f7;
}

/* Hide the default audio element */
#sitewide-audio {
  display: none;
}

.play-prompt {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #242424;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid #8a66f7;
  z-index: 9999;
  font-family: 'acetateregular';
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0.5; }
}

main {
  padding-top: 240px; /* fallback in case JS fails */
}

.download-section {
  background-color: #1e1e1e;
  padding: 30px;
  border: 3px solid #a669ff;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
  font-family: 'acetateregular';
}

.download-section + .download-section {
  margin-top: 40px;
}

.download-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.download-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-label {
  font-size: 18px;
}

.download-total {
  font-size: 20px;
  color: #ccc;
}

.download-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.download-description {
  flex: 1 1 35%;
  background-color: #444;
  padding: 20px;
  min-height: 360px;
}

.download-gallery {
  flex: 1 1 60%;
  display: flex;
  max-width: 600px;
  flex-direction: column;
  gap: 10px;
}

.main-preview {
  width: 100%;
  max-height: 320px;
  height: 320px;
  object-fit: contain;
  border: 2px solid #6e3ad0;
  background-color: #1e1e1e; /* fallback background */
  display: block;
  margin: 0 auto;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.main-preview.fading-out {
  opacity: 0;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbnail:hover{
  border-color: #8020da;
}

.thumbnail.active {
  border-color: #f69bff;
}

.extra-gallery-container {
  margin-top: 40px;
  text-align: center;
}

.extra-gallery .main-preview {
  width: 100%;
  max-width: 640px;
  height: auto;
  max-height: 360px;
  margin: 0 auto 20px auto;
  border: 2px solid #6e3ad0;
  background-color: #1e1e1e;
  object-fit: contain;
  cursor: pointer;
}

.extra-download-link {
  margin-top: 16px;
  font-size: 18px;
  font-family: 'acetateregular';
}

.extra-download-link a {
  color: #a669ff;
  text-decoration: underline;
}

.collab-logo {
  max-width: 100%;
  height: auto;
  display: flex;
  margin: 0 auto 16px auto;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.extra-gallery-flex {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.extra-preview-column {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.extra-preview-hint {
  font-family: 'acetateregular';
  font-size: 16px;
  color: #aaa;
  margin-bottom: 12px;
  text-align: center;
}

.extra-thumbnails-column {
  flex: 1 1 40%;
}

.extra-thumbnails-column .thumbnail-row {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: flex;
}

.extra-gallery-flex {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.extra-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 200px;
}

.extra-image-button {
  font-family: 'acetateregular';
  background-color: #1e1e1e;
  color: white;
  border: 2px solid #8a66f7;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
  transition: background-color 0.3s, transform 0.2s;
}

.extra-image-button:hover {
  background-color: #8a66f7;
  color: white;
  transform: scale(1.03);
}

.extra-preview-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#extra-download-link-container {
  margin-top: 16px;
}

#extra-download-link {
  font-family: 'acetateregular';
  font-size: 18px;
  color: #a669ff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#extra-preview {
  width: 100%;
  max-width: 640px;
  height: 360px;
  object-fit: contain;
  background-color: #1e1e1e;
  border: 2px solid #6e3ad0;
  display: block;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#extra-preview.loaded {
  opacity: 1;
}

#extra-preview:not([src]) {
  display: none;
}

#extra-lightbox {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#extra-lightbox-caption {
  margin-top: 12px;
  font-size: 18px;
  color: white;
  font-family: 'acetateregular';
}

.preview-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 360px;
  margin: 0 auto;
}

#extra-spinner.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #a669ff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  display: none;
}

#extra-spinner.spinner.visible {
  display: block;
}

#audio-player-container.minimized {
  height: 40px;
  overflow: hidden;
  padding: 5px 10px;
}

#audio-player-container.minimized .audio-controls > *:not(#minimize-player-btn) {
  display: none;
}

#minimize-player-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 480px) {
  .com-buttons {
    flex-direction: column;
    align-items: center;
  }

  .para {
    overflow: visible;
  }

  .com-button {
    width: 80%;
    justify-content: center;
  }
  .top-banner {
    position: static;
    flex-direction: column;
    height: auto;
    padding: 10px 10px;
    gap: 10px;
  }

  .image-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .button img {
    height: auto;
    max-width: 60px;
  }

  .logo img {
    height: 60px;
  }

  main{
    padding-top: 0 !important;
  }

  #audio-player-container {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    justify-content: center;
    flex-direction: column;
    padding: 12px;
    z-index: 1000;
  }
  .audio-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  #volume-slider {
    width: 60%;
  }

  .download-section {
    padding: 16px;
  }

  .download-content {
    flex-direction: column;
  }

  .download-gallery #main-preview {
    max-height: 200px;
  }

  .thumbnail-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbnail {
    width: 72px;
    height: 72px;
  }

  .download-description {
    min-height: auto;
    font-size: 16px;
  }

  .download-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .download-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .download-label {
    font-size: 16px;
  }

  .download-total {
    font-size: 16px;
  }
}

