/* Page Load Fade-from-Black */
.page-load-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 1.5s ease-in-out;
  opacity: 1;
}

body.loaded .page-load-fade {
  opacity: 0;
}

/* General Body & HTML Styling */
html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: 80px;
  /* Space for sticky spotify player */
}

/* ============================================= */
/* HERO SECTION */
/* ============================================= */
#starfieldCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-section {
  position: relative;
  /*required only if a player like spotify is active*/
  /*height: calc(100vh - 80px);*/
  height: calc(100vh);
  width: 100%;
  overflow: hidden;
  color: white;
  display: flex;
  /*padding: 4rem 0 0 0;*/
  /*background-color: black;*/
  /* Base color behind stars */
}

.hero-room-bg {
  position: absolute;
  inset: 0;
  background: url('../img/control_room_4.png') no-repeat var(--bg-position, center center);
  background-size: var(--bg-size, cover);
  z-index: 5;
  pointer-events: none;
}

.hero-burst-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1600px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, var(--burst-opacity, 0.3)) 50%,
      rgba(255, 255, 255, 0) 100%);
  left: var(--burst-beam-x, -100%);
  transform: translateX(-50%) skewX(-15deg);
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: screen;
  /*transition: opacity 0.3s ease;*/
  opacity: var(--burst-opacity, 0);
}

.hero-room-screens {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.screen-layer {
  position: absolute;
  inset: 0;
  background-size: var(--bg-size, cover);
  background-position: var(--bg-position, center center);
  background-repeat: no-repeat;
  /* Optional: filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)); */
}

.screen-01 {
  background-image: url('../img/control_room_4_screens01.png');
  /*animation: screenFlicker 0.21s infinite alternate, screenHueShift var(--screen-hue-speed, 15s) linear infinite;*/
  animation: screenFlicker 23s infinite alternate;
  z-index: 1;
}

.screen-02 {
  background-image: url('../img/control_room_4_screens02.png');
  /*animation: screenFlicker 0.15s infinite alternate-reverse, screenHueShift var(--screen-hue-speed, 15s) linear infinite;*/
  animation: screenHueShift var(--screen-hue-speed, 15s) linear infinite;
  z-index: 1;
}

.screen-back {
  background-image: url('../img/control_room_4_screensback.png');
  z-index: 0;
}

/* Scanlines Effect Overlay on Screens */
/* Relative to hero-room-screens */
/*
.hero-room-screens::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.15) 50%),
    linear-gradient(90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  opacity: var(--screen-scanline-opacity, 0.5);
  z-index: 2;
}
*/

@keyframes screenFlicker {
  0% {
    opacity: var(--screen-flicker-max, 1);
    /*filter: brightness(0.1);*/
  }

  50% {
    opacity: var(--screen-flicker-min, 0);
    /*filter: brightness(1.1);*/
  }

  100% {
    opacity: var(--screen-flicker-max, 1);
    /*filter: brightness(0.85);*/
  }
}

@keyframes screenHueShift {
  from {
    filter: hue-rotate(0deg);
  }

  to {
    filter: hue-rotate(360deg);
  }
}

/* Golden Axe Style Character Selection */
.artist-selection-wrapper {
  z-index: 15;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  /*align-items: flex-start;*/
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  pointer-events: none;
  /* Allow underlying content (text panel, CTAs) to be clicked */
}

.artist-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  justify-content: center;
  /*align-items: flex-start;*/
  align-items: center;
}

.artist-panel {
  position: absolute;
  /*width: 100%;*/
  /*height: 100%;*/
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
  /*opacity: 0.6;*/
  pointer-events: auto;
  /* Only characters are clickable */
  cursor: pointer;
  /* add dark effect for background characters */
  /*filter: grayscale(80%) brightness(0.6);*/
}

.artist-panel img,
.artist-panel svg {
  /*max-width: 100%;*/
  height: auto;
  /*transition: transform 0.6s ease;*/
}

/* Position states */
.artist-panel.pos-left {
  transform: translateY(var(--char-y-offset-side, 0)) translateX(calc(-1 * var(--char-x-offset-side, 0))) scale(calc(var(--char-scale-side, 0.8) * var(--char-flip-x-side, 1)), var(--char-scale-side, 0.8)) translateZ(-100px);
  z-index: 2;
  /*top: var(--char-y-offset-side, 0);*/
  /*left: calc(-1 * var(--char-x-offset-side, 0));*/
  /*opacity: 0.8;*/
}

.artist-panel.pos-center {
  /*transform: translateX(var(--char-x-offset-center, 0px)) scale(calc(var(--char-scale-center, 1.2) * var(--char-flip-x-center, 1)), var(--char-scale-center, 1.2)) translateY(calc(100vh - var(--char-y-offset-center, 0))) translateZ(100px);*/
  transform: translateY(var(--char-y-offset-center, 0)) translateX(calc(var(--char-x-offset-center, 0))) scale(calc(var(--char-scale-center, 1.2) * var(--char-flip-x-center, 1)), var(--char-scale-center, 1.2)) translateZ(100px);
  z-index: 10;
  /*opacity: 1;*/
  pointer-events: auto;
  /*top: var(--char-y-offset-center, 0);*/
  /*left: var(--char-x-offset-center, 0);*/
  /* add dark effect for background characters */
  /*filter: grayscale(0%) brightness(1);*/
}

.artist-panel.pos-right {
  transform: translateY(var(--char-y-offset-side, 0)) translateX(var(--char-x-offset-side, 0)) scale(calc(var(--char-scale-side, 0.8) * var(--char-flip-x-side, 1)), var(--char-scale-side, 0.8)) translateZ(-100px);
  z-index: 2;
  /*top: var(--char-y-offset-side, 0);*/
  /*left: var(--char-x-offset-side, 0);*/
  /*opacity: 0.8;*/
}

.selection-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 30;
  transition: background 0.3s ease, border-radius 0.3s ease;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  /* Re-enable clicks for arrows */
}

.selection-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.left-arrow {
  left: calc(50% - 400px);
}

.right-arrow {
  right: calc(50% - 400px);
}

/*@media (max-height: 1081px) {*/
@media (orientation: landscape) and (max-height: 1024px) and (min-width:1624px) {
  .artist-container {
    top: 10%;
  }
}

@media (orientation: landscape) and (max-height: 900px) and (min-width:1624px) {
  .artist-container {
    top: 14%;
  }
}

@media (orientation: landscape) and (max-height: 700px) and (min-width:1624px) {
  .artist-container {
    top: 23%;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (min-width:1624px) {
  .artist-container {
    top: 33%;
  }
}

/*
@media (orientation: portrait) {
  .mobile-titles h1 {
    font-size: 1.5rem !important;
  }

  @media (max-width: 1745px) {
    .artist-container{
      top:15%;
    }
  }

}
*/

/* Targets screens that are wider than they are tall */
@media (orientation: landscape) {}

@media (max-width: 576px) {}

/* ============================================= */
/* GLOBAL ARTIST NAME DISPLAY */
/* ============================================= */
.global-artist-info {
  position: absolute;
  bottom: 2%;
  /* Keeps it safely above the sticky bottom player */
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  /* Ensures it sits above all characters and effects */
  /*background-color: rgba(0, 0, 0, 0.75);*/
  padding: 1rem 3rem;
  border-radius: 4px;
  text-align: center;
  pointer-events: none;
  /* Allows clicks to pass through to the characters */
}

.global-artist-info h3 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 400;
  /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);*/
}

/* Hide the name plate on the individual artist pages */
body.artist-page .global-artist-info {
  display: none;
}

@media (max-width: 992px) {
  .global-artist-info {
    bottom: 5%;
    padding: 0.5rem 2rem;
  }

  .global-artist-info h3 {
    font-size: 1.5rem;
  }
}

.hero-titles,
.hero-menu,
.social-icons,
.scroll-down-btn {
  position: absolute;
  z-index: 10;
  padding: 2rem;
  /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);*/
}

.hero-titles {
  z-index: 25;
  top: 0;
  left: 0;
}

.hero-menu {
  z-index: 25;
  top: 0;
  right: 0;
}

.social-icons {
  z-index: 25;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.scroll-down-btn {
  bottom: 0;
  right: 0;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-menu a,
.social-icons a,
.hero-menu span.disabled {
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 1rem;
}

.hero-menu span.disabled {
  color: gray;
  cursor: default;
}

.hero-menu a,
.social-icons a {
  color: white;
}


.social-icons a {
  margin: 0;
}

.scroll-down-btn {
  font-size: 2rem;
}

/* Sticky Spotify and Radio_co Embed */
.spotify-embed {
  position: fixed;
  bottom: -6px;
  left: 0;
  width: 100%;
  z-index: 999;
}

/* ============================================= */
/* BLOCK 1 STYLING (DARK MODE) */
/* ============================================= */
#block1 {
  /* Use Bootstrap's dark color variable for a consistent look */
  background-color: var(--bs-dark);
}


/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 1745px) {
  .selection-arrow {
    top: 80%;
  }
}

@media (max-width: 992px) {

  .selection-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    top: 50%;
  }

  .left-arrow {
    left: 2%;
  }

  .right-arrow {
    right: 2%;
  }

  .artist-container {
    /*flex-direction: column;*/
  }

  .artist-container:hover .artist-panel,
  .artist-container .artist-panel:hover {
    flex: 1;
  }

  .hero-titles,
  .hero-menu {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }

  .hero-menu {
    top: auto;
    bottom: 80px;
  }

  .social-icons {
    display: none;
  }

  .scroll-down-btn {
    bottom: 10px;
    right: 10px;
  }
}

/* --- ARTIST PANEL LOGIC --- */

/* Only apply flex-grow and filter effects to the multi-artist container */
.multi-artist-container:hover .artist-panel {
  flex: 1;
  /*filter: grayscale(80%);*/
}

.multi-artist-container .artist-panel:hover {
  flex: 2;
  /* Expands the hovered panel */
  /*filter: grayscale(0%);*/
}

/* Ensure the artist panel on a single-artist page takes up the full space */
.single-artist-container .artist-panel {
  flex-grow: 1;
  cursor: default;
  /* Change cursor since it's not a link */
}

/* ============================================= */
/* HERO SECTION - CONTENT PANEL */
/* ============================================= */
.hero-content-panel {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 25;
  padding: 3rem;
  color: white;
  /*text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);*/
  max-width: 40%;
  text-align: right;
}

.hero-content-panel .super-title {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
}


/* On larger screens, make the top-left title smaller to act as a brand mark */
@media (min-width: 992.01px) {
  .hero-titles {
    display: block;
    /* Ensures it is visible */
  }

  /* Target the h1 and h2 specifically on desktop to resize them */
  .hero-titles h1.display-3 {
    font-size: 1.75rem;
    /* Make it much smaller, like an h3 */
    font-weight: 400;
    /* Reduce the font weight */
  }

  .hero-titles h2 {
    font-size: 1rem;
    /* Make the subtitle standard text size */
    font-weight: 300;
  }
}

/* ============================================= */
/* GALLERY BLOCK STYLES */
/* ============================================= */
.gallery-section {
  background-color: var(--bs-dark);
}

.gallery-thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 1 / 1;
  min-height: auto;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease-in-out;
}

.gallery-thumbnail:hover {
  transform: scale(1.03);
}

/* Dark overlay for text readability */
.gallery-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.1) 60%);
  transition: background 0.3s ease;
}

.gallery-thumbnail:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.0) 70%);
}

.gallery-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  text-align: left;
}

.gallery-title {
  font-weight: bold;
}

.gallery-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.gallery-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.gallery-thumbnail:hover .gallery-text {
  opacity: 1;
  transform: translateY(0);
  max-height: 130px;
  /* Adjust here if necessary */
}

.gallery-text-inner {
  display: block;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.gallery-thumbnail:hover .gallery-text-inner {
  /* Scrolls the inner text up if it's taller than 130px. min() prevents it from shifting down if it's shorter. */
  transform: translateY(min(0px, calc(130px - 100%)));
  transition: transform 7s linear 1s;
  /* Starts after 1 second delay, scrolls slowly over 7 seconds */
}


/* ============================================= */
/* MOBILE HERO ADJUSTMENTS */
/* ============================================= */

/* By default, hide the mobile header on larger screens */
.hero-mobile-header {
  display: none;
  z-index: 25;
}

/* On smaller screens, hide the new right panel and show the original top-left titles */
@media (max-width: 992px) {
  .hero-content-panel {
    display: none;
  }

  .hero-titles {
    display: block;
    /* Make sure the original titles are visible */
  }
}


/* --- When the screen is in mobile/tablet view (max-width: 992px) --- */
@media (max-width: 992px) {

  /* 1. Change the hero to stack its children vertically */
  .hero-section {
    flex-direction: column;
    /*height: auto;*/
    /* Allow height to be determined by content */
    min-height: calc(100vh - 80px);
    /* Ensure it's still tall */
  }

  /* 2. Hide all the desktop-only floating overlay elements */
  .hero-section>.social-icons,
  .hero-section>.hero-titles,
  .hero-section>.hero-menu,
  .hero-section>.hero-content-panel,
  .hero-section>.scroll-down-btn {
    display: none;
  }

  .artist-info h3 {
    font-size: 1.2rem;
  }

  /* 3. Display and style the new mobile header block */
  .hero-mobile-header {
    display: block;
    background-color: rgba(0, 0, 0, .5);
    /* A consistent dark background */
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .mobile-titles {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }

  .mobile-menu span.disabled {
    color: gray;
    cursor: default;
  }

  .mobile-menu a {
    color: white;
    /*var(--bs-secondary-color);*/
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 1.1rem;
  }

  .mobile-titles h1 {
    font-size: 2.5rem;
  }

  .mobile-titles h2 {
    font-size: 1.2rem;
    font-weight: 300;
  }

  /* 4. Make the artist container take up the remaining vertical space */
  .artist-container {
    flex-grow: 1;
    min-height: 400px;
    /* Ensure it has a minimum height */
  }
}

/* ======================================================= */
/* FINAL MOBILE HERO LAYOUT (Header, Content, Footer) */
/* ======================================================= */

/* Hide the new mobile footer by default on desktop screens */
.hero-mobile-footer {
  display: none;
}

/*
characters responsive sizing
use ordering from bigger to smaller to override
*/

@media (max-width: 992px) {
  /*  
  .entropicgravity.pos-center {
    --char-y-offset-center: 29% !important;
  }

  .entropicgravity.pos-side {
    --char-x-offset-side: 35vw !important;
    --char-y-offset-side: 12% !important;
  }

  .n0se.pos-center {
    --char-y-offset-center: 24% !important;
  }

  .n0se.pos-side {
    --char-x-offset-side: 35vw !important;
    --char-y-offset-side: 12% !important;
  }

  .roamcell.pos-center {
    --char-y-offset-center: 27% !important;
  }

  .roamcell.pos-side {
    --char-x-offset-side: 35vw !important;
    --char-y-offset-side: 12% !important;
  }
*/
}

/*
.entropicgravity.pos-center {
  opacity: 0;
}
*/

@media (max-width: 450px) {
  .entropicgravity.pos-center {
    --char-y-offset-center: 16% !important;
  }

  .entropicgravity.pos-side {
    --char-x-offset-side: 35vw !important;
    --char-y-offset-side: 3% !important;
  }

  .n0se.pos-center {
    --char-y-offset-center: 14% !important;
  }

  .n0se.pos-side {
    --char-x-offset-side: 35vw !important;
    --char-y-offset-side: 3% !important;
  }

  .roamcell.pos-center {
    --char-y-offset-center: 14% !important;
  }

  .roamcell.pos-side {
    --char-x-offset-side: 35vw !important;
    --char-y-offset-side: 3% !important;
  }

  .artist-page .n0se.pos-center {
    --char-y-offset-center: 24% !important;
  }

  .artist-page .roamcell.pos-center {
    --char-y-offset-center: 34% !important;
  }

  .artist-page .entropicgravity.pos-center {
    --char-y-offset-center: 35% !important;
  }


}

/* --- When the screen is in mobile/tablet view (max-width: 992px) --- */
@media (max-width: 992px) {

  /* Display and style the new mobile footer */
  .hero-mobile-footer {
    /*position:absolute;*/
    display: block;
    background-color: var(--bs-dark);
    padding: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
  }

  .mobile-social-links {
    gap: 1.5rem;
    /* Space between icons */
  }

  .mobile-social-links a {
    font-size: 1.5rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
  }

  .mobile-content-panel .super-title {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
  }

  .mobile-content-panel h2 {
    font-size: 1.75rem;
    color: var(--bs-light);
  }

  .mobile-content-panel .lead {
    color: var(--bs-secondary-color);
    margin-bottom: 1rem;
  }
}

/* ============================================= */
/* BACK TO TOP BUTTON */
/* ============================================= */
.to-top-btn {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 100px;
  /* Position it 20px above the 80px sticky player */
  right: 20px;
  z-index: 1000;
  border: none;
  outline: none;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  /* Make it a circle */
  font-size: 18px;
  line-height: 1;
  width: 50px;
  height: 50px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.to-top-btn:hover {
  background-color: rgba(30, 30, 30, 0.8);
  color: white;
}

/* ============================================= */
/* ARTIST PAGE BEHAVIOR */
/* ============================================= */

body.artist-page .artist-info {
  /*no need to display the artist name popup on the artist page*/
  display: none;
}

/* ============================================= */
/* FIXES
/* ============================================= */

.artist-panel .artist-info,
.artist-panel .artist-info * {
  pointer-events: none;
}

.hero-titles,
.hero-titles * {
  pointer-events: none;
}

.hero-content-panel,
.hero-content-panel * {
  pointer-events: none;
}

/* Re-enable pointer events for buttons and links inside .hero-content-panel */
.hero-content-panel button,
.hero-content-panel a {
  pointer-events: auto;
}

.thecode {
  background-color: #000;
  padding: 15px;
  border-radius: 4px;
  color: #eee;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
}

.py-10 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

a.privacy-link {
  text-decoration: none;
}