
/* ---------------------------------
   OVERLAYS & BACKGROUND
---------------------------------- */

.overlay-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  pointer-events: none;
  z-index: 2;

  background: var(--overlay-2-image, url('../images/night-sparkling.gif')) 
              center center / cover no-repeat;
  opacity: 0.1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'LEDLight';
  src: url('./fonts/LEDLIGHT.otf') format('opentype');
  font-style: normal;
}

html, body {
  min-height: 100vh;
  font-family: 'LEDLight',
                'Poppins', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #1a1a2e;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #ffffff;
}

/* Dark overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

/* Image overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--overlay-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--overlay-opacity, 0.5);
  z-index: 0;
  pointer-events: none;
}

#flame-border {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: .9;
  pointer-events: none;
}


/* ---------------------------------
   MAIN CONTAINER
---------------------------------- */

#rozzyLogo {
  max-width: 420px;
}

.container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 480px;

  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  justify-self: center;
}

/* Avatar */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.avatar.hidden {
  display: none;
}

/* Hide avatar */
.avatar.hidden {
  display: none;
}

/* Spotify embed styles */
.spotify-embed {
  width: 100%;
  /* max-width: 480px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.spotify-iframe-container {
  opacity: 0;
  width: 80%;
  transition: opacity 1.2s ease;
}

.spotify-iframe-container.visible {
  opacity: 1;
  width: 80%;
}

.spotify-embed iframe {
  border-radius: 12px;
  width: 100%;
  min-height: 152px;
  max-width: 480px;
  /* box-shadow: 0 4px 0px rgba(0,0,0,0.8); */
  opacity: 0;
  animation: spotify-fade-in 1.2s ease forwards;
}

@keyframes spotify-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablets and larger phones */
@media (min-width: 480px) {
  .container {
    padding: 60px 30px;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .container {
    padding: 80px 40px;
  }
}


/* --- LIGHT THEME (if theme is "light") --- */

.light-theme {
  color: #1a1a2e;
}

.light-theme .overlay {
  background: rgba(255, 255, 255, 0.3);
}

.light-theme .avatar {
  border-color: rgba(0, 0, 0, 0.2);
}