/* === GLOBAL === */
body, html{
    font-family: 'Trebuchet MS', sans-serif;
    background: linear-gradient(135deg, #aee1f9, #d9f0ff);
    margin: 0;
    padding: 0;
    color: #333;
    transition: background 0.3s, color 0.3s;
    overflow: hidden;
    cursor: url('/click.png'), auto;
}

body.dark {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #eee;
}

h1 {
   position: fixed;
   left: 40%;
    text-align: center;
    padding: 12px;
    font-size: 2em;
    color: #0055aa;
    text-shadow: 1px 1px white;
    z-index:5000
}

/* === PAGE LAYOUT === */
.page-container {
    display: flex;
    
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.left-side, .right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#dinodrawingf {
  position: fixed;     /* stays floating */
  bottom: 20px;        /* or wherever you want */
  right: 180px;         /* tail side */
  width: 370px;        /* adjust size if needed */
  z-index: 10;         /* UNDER the bird but above the page */
  pointer-events: none;
}

#mousedrawing {
  position: fixed;     /* stays floating */
   bottom: 155px;
  
    width: 350px;
  z-index: 10;         /* UNDER the bird but above the page */
  pointer-events: none;
}

/* === PLAYLIST === */
.playlist-container {
  position: fixed;
  bottom: 19%;
    max-width: 700px;
    height: 60%;
    margin: 20px auto;
    overflow-y: auto;
    padding-right: 10px;
    z-index:1100;
    scrollbar-width: thin;
    scrollbar-color: #aee1f9 #d9f0ff;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
}

.playlist-container::-webkit-scrollbar {
    width: 10px;
}

.playlist-container::-webkit-scrollbar-track {
    background: #d9f0ff;
    border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #aee1f9;
    border-radius: 10px;
    border: 2px solid #d9f0ff;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: #88d0f0;
}

/* === SONG ITEMS === */
.song {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    margin: 10px 0;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    user-select: none;
}

body.dark .song {
    background: rgba(50, 50, 50, 0.7);
    box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

.song.playing {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
}

.song img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.song-title {
    flex: 1;
    font-size: 1.1em;
}

.download-btn {
    background: #fff1b3;
    border: none;
    border-radius: 9px;
    padding: 5px 10px;
    cursor: url('/point.png'), auto;
    color: black;
    font-size: 0.9em;
    margin-left: 10px;
    transition: transform 0.2s, background 0.3s;
}

.download-btn:hover {
    transform: scale(1.1);
    background: #f9a900;
}

.song.dragging {
    filter: brightness(1.2) contrast(1.5) saturate(1.2);
    animation: glitch 0.5s infinite;
}

/* === PLAYER === */
.player-container {
    position: fixed;   /* sticky -> fixed */
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 3000;   /* above journal overlay */
}


.current-song {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #ccc;
    border-radius: 5px;
    overflow: hidden;
    cursor: url('/point.png'), auto;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #556270);
    transition: width 0.2s;
}

audio { display: none; }

.controls {
    margin-top: 10px;
}

.controls button {
    padding: 15px;
    background: #556270;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: url('/point.png'), auto;
    margin: 5px;
}

.controls button:hover { background: #4ecdc4; }

#shuffleToggleBtn {
    border-radius: 10%;
    color: white;
    border: none;
    font-size: 15px;
    cursor: url('/point.png'), auto;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1000;
}

#shuffleToggleBtn:hover {
    transform: scale(1.1);
    background-color: #e91e63;
}

#lyricsBtn {
    background: #4ecdc4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;      /* keeps it smaller than other buttons */
    cursor: url('/point.png'), auto;
    font-size: 16px;        /* adjust as needed */
    transition: transform 0.2s, background 0.2s;
}

#lyricsBtn:hover {
    transform: scale(1.1);
    background: #556270;
}




.journal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: calc((100vh - 28px - 80vh) / 2); /* center remaining space */
    padding-bottom: 28px; /* leave room for player */
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    display: none;
}



.journal-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
}
.journal-content .journal-entry {
    margin-bottom: 30px;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
    white-space: pre-wrap; /* preserves line breaks from your content */
}
.journal-date {
    font-weight: bold;
    color: #900;
}
.journal-title {
    font-weight: bold;
    color: #006;
    margin: 4px 0;
}
.journal-text {
    color: #000;
}



.journal-box {
    position: relative;
    width: 700px;
    max-width: 90%;
        max-height: calc(80vh - 28px); /* leave space for player */
    overflow-y: auto;  /* <--- scrollable content */
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #000;
    z-index: 2100;
}

/* Only apply minimized styles on desktop */
@media (min-width: 768px) and (pointer: fine) {
  .player-container.minimized {
      transform: translateX(-50%) scale(0.7);
      bottom: 10px;
      opacity: 0.9;
      padding: 10px 15px; /* smaller padding when minimized */
  }

  .player-container.minimized .current-song,
  .player-container.minimized .progress-bar {
      display: none;  /* hide song title & progress bar */
  }

  .player-container.minimized .controls {
      display: flex;  /* keep buttons visible */
      justify-content: center;
  }
}

@keyframes jitter {
    0% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(2px,-1px) rotate(1deg); }
    50% { transform: translate(-1px,2px) rotate(-1deg); }
    75% { transform: translate(1px,-2px) rotate(0.5deg); }
    100% { transform: translate(0,1px) rotate(-0.5deg); }
}

.journal-close {
    position: absolute;
    top: 10px; right: 10px;
    background: #ff0;
    color: #f00;
    border: 2px dashed #00f;
    padding: 2px 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Comic Sans MS", monospace;
}

.page {
    background: #fff;
    border: 2px solid #000;
    margin-bottom: 10px;
    padding: 8px;
    font-size: 14px;
}


.journal-content .journal-entry {
    margin-bottom: 30px;
    border-bottom: 2px dashed #000;
    padding-bottom: 10px;
    white-space: pre-wrap; /* preserve line breaks */
    font-family: "Courier New", monospace;
}


.journal-date {
    font-weight: bold;
    color: #f00;
}

.journal-title {
    font-size: 16px;
    color: #00f;
    margin-bottom: 4px;
}

.journal-text {
    color: #000;
}

.journal-content a {
    color: #0055aa;
    text-decoration: underline dotted;
}

.journal-content a:hover {
    color: #ff00ff;
}

.journal-sort-btn {
    background: #ff0;
    border: 2px dashed #000;
    padding: 5px 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-family: "Comic Sans MS", monospace;
    font-size: 14px;
    color: #000;
    transition: background 0.2s, transform 0.2s;
}

.journal-sort-btn:hover {
    background: #ffe45e;
    transform: translateY(-2px);
}

.journal-sort-btn:active {
    transform: translateY(0);
}


#flyingBird {
  position: fixed;
  top: 50%;
  left: -100px; /* start off-screen */
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 9999;
  pointer-events: none; /* so it won’t block clicks */

  /* flap animation (switch between your 3 frames) */
  animation: birdFlap 0.3s steps(3) infinite;
}

/* use your 3-frame sprite sheet */
@keyframes birdFlap {
  0%   { background-image: url("/images/bird1.png"); }
  33%  { background-image: url("/images/bird2.png"); }
  66%  { background-image: url("/images/bird3.png"); }
  100% { background-image: url("/images/bird1.png"); }
}


.lyrics-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2500; /* above journal */
}

.lyrics-box {
    position: relative;
    width: 700px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px 20px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #000;
}

.lyrics-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Comic Sans MS', monospace;
}





.art-overlay {
  position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2500; /* above journal */
}

.art-box {
  background: #fff;
  padding: 20px;
  max-width: 60%;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
}

#artContent {
    column-count: 3;        /* how many columns you want */
    column-gap: 15px;       /* spacing between the columns */
    width: 100%;
}

#artContent img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;    /* spacing between images vertically */
    border-radius: 10px;
    display: block;
}




.art-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}


/* PHOTO MODAL */
.photo-overlay {
position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2500; /* above journal */
}

.photo-box {
  width: 70%;
  max-height: 80%;
  background: #ffffffcc;
  border-radius: 20px;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.3s;
}

.photo-close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 22px;
}

/* GALLERY GRID */
.photo-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 15px;
}

.photo-content img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.photo-content img:hover {
  transform: scale(1.03);
}

/* FULLSCREEN PHOTO VIEW */
.photo-expanded {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 950;
}

.photo-expanded img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.photo-expanded-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
}


/* === IFMA BUTTON === */
.ifma-button {
    position: fixed;
    top: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #8cf;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: background 0.3s, transform 0.2s;
    cursor: url('/point.png'), auto;
}

.ifma-button:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
.ifma-button:focus { outline: none; }


.blur-behind {
    filter: blur(5px); /* adjust amount as needed */
    pointer-events: none; /* optional: makes background unclickable */
    transition: filter 0.3s ease;
}
/* === HEARTS / FLOATING ELEMENTS === */
.eart-container, .heart-container, .word-container {
    position: fixed;
    animation: floatHeart 3s infinite ease-in-out;
    z-index: 1000;
    pointer-events: none;
}

.eart-container { top: 20px; right: 100px; width: 90px; height: 30px; pointer-events: auto; }
.eart-container::before { content: '❤️'; font-size: 30px; }

.heart-container { bottom: 20px; right: 20px; width: 30px; height: 30px; }
.heart-container::before { content: '❤️'; font-size: 30px; }

.word-container { top: 350px; left: 70px; width: 300px; }
.word-container::before { content: '❤ fresh n exotic sounds'; font-size: 30px; }

/* === NEW ALBUM BANNER === */
#new-album-banner {
    position: fixed;
    top: 300px;
    left: 50px;
    background: linear-gradient(45deg, white, cyan);
    color: green;
    padding: 8px 16px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 102, 204, 0.7);
    animation: pulseGlow 2s infinite;
    z-index: 1000;
    cursor: url('/point.png'), auto;
}

/* === BACKGROUND ART LAYER (BEHIND PLAYLIST) === */
#artBackgroundLayer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1; /* BELOW your playlist but ABOVE the site bg */
    pointer-events: none;
}


.artBtn {
    padding: 8px 14px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    cursor: url('/click.png'), pointer;
    
}

/* === MODAL === */
.art-modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.art-modal-content {
    margin: 60px auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    background: linear-gradient(135deg, #f0f8ff, #e5e9ff);
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

.close-art {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.art-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.art-thumb {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
}


/* fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* === GIFS === */
#birdspot-gif, #woodpecker-gif, #howifeel-gif {
  
    position: fixed;
    width: auto;
    height: auto;
    max-width: 20vw;
    pointer-events: none;
    animation: floatWiggle 3s infinite ease-in-out;
}

/* Specific positioning */
#birdspot-gif { top: 120px; right: 40px; z-index: 100; }
#woodpecker-gif { bottom: 12vw; left: 25vw; z-index: -600; }
#howifeel-gif { top: 480px; left: 50px; z-index: 1000; }

/* === ANIMATIONS === */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(255, 255, 188, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 25px rgba(255, 252, 184, 1); transform: scale(1.05); }
    100% { box-shadow: 0 0 15px rgba(255, 202, 194, 0.7); transform: scale(1); }
}


/* Mobile */
/* === MOBILE FIXES === */
@media (max-width: 767px) and (pointer: coarse) {
  
  h1 {z-index: 1; left :5vw;}
  
   #journalBtn {
        left: 5vw;      /* move to left side */
        right: auto;    /* unset the right positioning */
        top: 45vh !important;      /* adjust vertical position if needed */
        width: 69px !important;    /* scale smaller if desired */
    }
    
    #artBtn {
        left: 4vw !important  ;   /* move to left side */
        right: auto;    /* unset the right positioning */
        top: 54vh !important ;      /* adjust vertical position if needed */
        width: 69px !important ;    /* scale smaller if desired */
    }
    #photoBtn {
        left: 4vw !important  ;   /* move to left side */
        right: auto;    /* unset the right positioning */
        top: 64vh !important ;      /* adjust vertical position if needed */
        width: 69px !important ;    /* scale smaller if desired */
    }
    /* Player container */
    .player-container {
        width: 90vw;                  /* scale with viewport width */
        padding: 2.5vw;               /* proportional padding */
        bottom: 10px;
        
        border-radius: 4vw;           /* rounded edges scale */
    }

#dinodrawingf {
 right: -1vw;
 bottom: 31vw;
 width: 48vw;
 z-index: 1;
  
}

#mousedrawing {
bottom: 27vw;
width: 85vw;
}
    /* Player text & progress bar */
    .player-container .current-song {
        font-size: clamp(14px, 4vw, 18px); 
        margin-bottom: 8px;
    }
    .progress-bar {
        height: clamp(6px, 2vw, 10px);
    }


#shuffleToggleBtn{
        padding: 9px;
        font-size: 10px;
        border-radius: 4px;
    }
    /* Controls buttons */
    .controls button {
        padding: 9px;
        font-size: 10px;
        border-radius: 4px;
    }
    
     .player-container.minimized .current-song {
      display: none;  /* hide song title & progress bar */
  }

    /* Playlist container */
   .playlist-container {
        position: fixed;
        left: 60%;                  /* center horizontally */
        transform: translateX(-50%);
        width: 80vw;                /* slightly narrower than viewport */
        max-width: 90vw;
        height: 50vh;
        bottom: 20%;
        overflow-x: hidden;         /* prevent horizontal scroll */
        overflow-y: auto;           /* vertical scroll allowed */
        padding: 10px;              /* smaller padding for mobile */
        margin: 0;                  /* remove any desktop margins */
        border-radius: 5vw;
        box-sizing: border-box;     /* ensure padding doesn't push content */
    }
    .song img {
        width: 12vw;
        height: 12vw;
        margin-right: 10px;
    }
    .song-title {
        font-size: 4vw;
    }
    .download-btn {
        font-size: clamp(12px, 3vw, 16px);
        padding: clamp(3px, 2vw, 8px);
    }
    
    
    
    

    /* GIFs */
    #birdspot-gif {
        top: 10vh;
        right: 5vw;
        max-width: 18vw;
    }
    #woodpecker-gif {
        bottom: 10vh;
        left: 5vw;
        max-width: 25vw;
    }
    #howifeel-gif {
        top: 35vh;
        left: 5vw;
        max-width: 18vw;
    }

    /* Journal box scaling */
    .journal-box {
        width: 90vw;
        max-height: 70vh;
        padding: 5vw;
    }
    
    .word-container {
      top: 12vh;
      left : 2vh;
      max-width : 30vh;
      max-height : 10vh;
      font-size: clamp(12px, 3vw, 16px);
    }
    .eart-container {
      top: 12vh;
      right : 2vh;
     
      font-size: clamp(12px, 3vw, 16px);
    }
    
    #new-album-banner {
      top: 27vh;
        left: 5vw;
        max-width: 7vw;
        font-size: 9px;
        opacity: .5;
        z-index: 1100;
        
    }
    
      #lyricsBtn {
        padding: 9px;        /* slightly bigger for touch */
        font-size: 10px;
        border-radius: 10px;
    }
    
    
}


@keyframes floatWiggle { 0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);} }
@keyframes glitch {0%{transform:translateX(0);opacity:1;}20%{transform:translateX(-3px);opacity:0.8;}40%{transform:translateX(3px);opacity:0.6;}60%{transform:translateX(-3px);opacity:0.8;}80%{transform:translateX(3px);opacity:0.6;}100%{transform:translateX(0);opacity:1;}}
@keyframes floatHeart {0%,100%{transform:translateY(0);}50%{transform:translateY(-15px);}}
