diff --git a/index.php b/index.php index b20b32f..803e236 100644 --- a/index.php +++ b/index.php @@ -118,8 +118,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; border: 2px solid transparent; border-radius: 32px; padding: 2.5rem; - box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), - 0 0 30px var(--dynamic-glow-dim, transparent); + box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4); position: relative; background-clip: padding-box; overflow: hidden; @@ -133,7 +132,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; inset: 0; border-radius: 32px; padding: 2px; /* thickness */ - background: var(--card-border-bg, linear-gradient(45deg, var(--dynamic-glow, #00e676), #38bdf8, var(--dynamic-glow-dim, #facc15), #f472b6, var(--dynamic-glow, #00e676))); + background: var(--card-border-bg, linear-gradient(45deg, #00e676, #38bdf8, #facc15, #f472b6, #00e676)); background-size: 400% 400%; -webkit-mask: linear-gradient(#fff 0 0) content-box, @@ -167,9 +166,8 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; height: 130px; border-radius: 50%; object-fit: cover; - border: 4px solid var(--dynamic-glow, var(--primary-color)); - box-shadow: 0 0 25px var(--dynamic-glow, rgba(56, 189, 248, 0.7)), - 0 0 50px var(--dynamic-glow-dim, rgba(56, 189, 248, 0.4)); + border: 4px solid var(--primary-color); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, border-color 0.1s ease, box-shadow 0.1s ease; } @@ -397,6 +395,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; position: relative; } + /* Visualizer Peak */ .visualizer-peak { position: absolute; width: 18px; @@ -410,27 +409,12 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; transition: background 0.1s ease; } - @keyframes strobe-peak { - 0%, 100% { opacity: 1; filter: brightness(1.5) contrast(1.2); } - 50% { opacity: 0.3; filter: brightness(4) contrast(2); } - } - - .strobe { - animation: strobe-peak 0.08s infinite steps(2); - box-shadow: 0 0 30px #fff, 0 0 50px var(--peak-glow, #fff) !important; - } - - /* Colores vibrantes para las barras */ - .visualizer-bar:nth-child(5n+1) { background: linear-gradient(to top, #00e676, #69f0ae); } - .visualizer-bar:nth-child(5n+2) { background: linear-gradient(to top, #38bdf8, #7dd3fc); } - .visualizer-bar:nth-child(5n+3) { background: linear-gradient(to top, #facc15, #fde047); } - .visualizer-bar:nth-child(5n+4) { background: linear-gradient(to top, #f472b6, #fb923c); } - .visualizer-bar:nth-child(5n+5) { background: linear-gradient(to top, #818cf8, #a5b4fc); } + /* Removed strobe-peak animation */ /* Playing Animations */ body.is-playing .glass-card { - animation: card-pulse 4s infinite ease-in-out; border-color: rgba(56, 189, 248, 0.5); + box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4); } .featured-img-container { @@ -444,21 +428,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; transition: all 0.5s ease; } - @keyframes card-pulse { - 0%, 100% { - transform: translate(var(--shake-offset-x, 0), var(--shake-offset-y, 0)) scale(1); - box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 20px var(--dynamic-glow-dim, rgba(0,0,0,0)); - } - 50% { - transform: translate(var(--shake-offset-x, 0), var(--shake-offset-y, 0)) scale(1.01); - box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--dynamic-glow, rgba(56, 189, 248, 0.4)); - } - } - - @keyframes float-img { - 0%, 100% { transform: translateY(0) scale(1); } - 50% { transform: translateY(-15px) scale(1.02); } - } + /* Removed card-pulse and float-img animations */ .volume-slider { flex: 1; @@ -605,23 +575,15 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; backdrop-filter: blur(4px); cursor: pointer; transition: all 0.3s ease; - animation: qr-pulse 2s infinite ease-in-out; border: 1px solid rgba(255, 255, 255, 0.2); } .qr-placeholder:hover { - animation-play-state: paused; transform: scale(1.05); box-shadow: 0 0 20px var(--accent-color); background: rgba(255, 255, 255, 0.2); } - @keyframes qr-pulse { - 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); } - 50% { transform: scale(1.03); box-shadow: 0 0 20px 10px rgba(0, 230, 118, 0); } - 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } - } - /* Modal Styles */ .qr-modal { display: none; @@ -1239,8 +1201,6 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; peak.style.background = 'linear-gradient(to bottom, #fff, transparent)'; peak.style.boxShadow = '0 -2px 10px rgba(255, 255, 255, 0.8)'; }); - document.documentElement.style.setProperty('--dynamic-glow', 'rgba(56, 189, 248, 0.7)'); - document.documentElement.style.setProperty('--dynamic-glow-dim', 'rgba(56, 189, 248, 0.4)'); if (bg) { bg.style.filter = 'brightness(1)'; bg.style.transform = 'scale(1)'; @@ -1255,17 +1215,10 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; colorOffset += 1; - // Bass detection for background flicker - // We use the first 4 bins (low frequencies) - const bassAvg = (dataArray[0] + dataArray[1] + dataArray[2] + dataArray[3]) / 4; - const bassIntensity = bassAvg / 255; - - // Apply flicker to background + // Removed bass detection for background flicker if (bg) { - const brightness = 1 + (bassIntensity * 0.3); // Toned down - const scale = 1 + (bassIntensity * 0.02); // Toned down zoom - bg.style.filter = `brightness(${brightness})`; - bg.style.transform = `scale(${scale})`; + bg.style.filter = ''; + bg.style.transform = ''; } for (let i = 0; i < BAR_COUNT; i++) { @@ -1304,23 +1257,11 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; visualizerPeaks[i].style.background = `linear-gradient(to bottom, ${color}, transparent)`; visualizerPeaks[i].style.boxShadow = `0 -2px 12px ${glow}, 0 0 20px ${glow}`; - if (peakHeights[i] > 90) { - visualizerPeaks[i].classList.add('strobe'); - visualizerPeaks[i].style.setProperty('--peak-glow', glow); - } else { - visualizerPeaks[i].classList.remove('strobe'); - } + // Strobe effect removed } } - // Dynamic glow effect based on average volume - let sum = 0; - for(let i=0; i 30) { const color = `rgb(${rgb[0]}, ${rgb[1]}, ${rgb[2]})`; document.documentElement.style.setProperty('--primary-color', color); - document.documentElement.style.setProperty('--dynamic-glow', `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 0.7)`); + // Dynamic glow removed for stability } } catch(e) {} };