:root {
--font-cursive: "Great Vibes", cursive;
--font-serif: "Suranna", serif;
--font-sans-serif: "Montserrat", sans-serif;
--color-bg: #fcf9f2;
--color-text: #4e5d4e;
--color-primary: #b99b52;
--color-secondary: #e9efe6;
--color-dark: #323f32;
--envelope-back-color: #e9efe6;
--envelope-flap-color: #fcf9f2;
--envelope-flap-border-color: #fcf9f2;
--envelope-side-flap-color: #e9efe6;
--envelope-side-flap-border-color: #b99b52;
}
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--color-bg);
color: var(--color-text);
transition: background-color 0.5s ease, color 0.5s ease;
scroll-behavior: smooth;
}
.envelope-wrapper {
position: relative;
width: 100vw;
height: 100vh;
perspective: 1500px;
overflow: hidden;
}
.envelope {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
transition: opacity 1s ease-in-out 2.5s;
}
.envelope-back {
position: absolute;
width: 100%;
height: 100%;
background-color: var(--envelope-back-color);
z-index: 0;
transition: background-color 0.5s ease;
}
.flap-top {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50.5%;
background-color: var(--envelope-flap-color);
border-bottom: 8px solid var(--envelope-flap-border-color);
clip-path: polygon(0 0, 100% 0, 50% 100%);
transform-origin: top center;
transition: transform 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.5s ease, border-color 0.5s ease;
z-index: 3;
}
.flap-left,
.flap-right {
position: absolute;
top: 0;
width: 50%;
height: 100%;
background-color: var(--envelope-side-flap-color);
border-right: 1px solid var(--envelope-side-flap-border-color);
transition: transform 1.8s ease-in-out 0.5s, background-color 0.5s ease, border-color 0.5s ease;
z-index: 2;
}
.flap-left {
left: 0;
clip-path: polygon(0 0, 100% 50%, 0 100%);
transform-origin: left center;
}
.flap-right {
right: 0;
clip-path: polygon(100% 0, 0 50%, 100% 100%);
transform-origin: right center;
}
.seal-wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 4;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
transition: opacity 0.5s ease-out;
}
.tooltip {
position: relative;
background-color: #333;
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.95em;
margin-bottom: 15px;
animation: bounce-tip 1.5s infinite ease-in-out;
transform-origin: bottom center;
}
.tooltip::after {
content: "";
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #333;
}
@keyframes bounce-tip {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
.seal {
width: 80px;
height: 80px;
object-fit: cover;
}
.page {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
opacity: 0;
pointer-events: none;
overflow-y: hidden;
overflow-x: hidden;
transform: scale(0.9) translateY(30px);
background-color: var(--color-bg);
color: var(--color-text);
transition: opacity 2.5s ease-out 1s, transform 2.5s ease-out 1s, background-color 0.5s ease, color 0.5s ease;
}
.envelope-wrapper.open .flap-top {
transform: rotateX(-180deg);
}
.envelope-wrapper.open .flap-left {
transform: rotateY(-180deg);
}
.envelope-wrapper.open .flap-right {
transform: rotateY(180deg);
}
.envelope-wrapper.open .seal-wrapper {
opacity: 0;
pointer-events: none;
}
.envelope-wrapper.open .envelope {
opacity: 0;
pointer-events: none;
}
.envelope-wrapper.open ~ .page {
opacity: 1;
z-index: 100;
pointer-events: auto;
transform: scale(1) translateY(0);
}
.envelope-content,
.envelope-footer {
position: absolute;
z-index: 5;
pointer-events: none;
opacity: 1;
transition: opacity 0.5s ease-out, color 0.5s ease;
display: flex;
flex-direction: column;
box-sizing: border-box;
color: var(--color-text);
}
.envelope-titles {
font-family: var(--font-serif);
text-align: center;
margin-top: 30vh;
width: 100%;
}
.envelope-title-name {
font-family: var(--font-cursive);
font-size: 2.5rem;
color: var(--color-primary);
margin: 0;
line-height: 1;
transition: color 0.5s ease;
}
.envelope-title-event,
.envelope-title-date {
font-family: var(--font-sans-serif);
font-size: 0.9rem;
letter-spacing: 1px;
text-transform: uppercase;
margin: 0.5em 0;
}
.envelope-footer {
background-color: transparent;
font-family: var(--font-sans-serif);
font-size: 0.7rem;
color: var(--color-primary);
text-align: left;
bottom: 20px;
left: 20px;
transition: color 0.5s ease;
}
.envelope-footer p {
margin: 0;
}
.envelope-footer .fa-heart {
color: var(--color-primary);
transition: color 0.5s ease;
}
.envelope-wrapper.open .envelope-content,
.envelope-wrapper.open .envelope-footer {
opacity: 0;
}
.page {
font-family: var(--font-serif);
text-align: center;
font-size: 1.1rem;
font-weight: 400;
line-height: 1.8;
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 60px 20px;
box-sizing: border-box;
}
h1,
h2,
h3,
h4 {
font-weight: 400;
margin: 0.5em 0;
color: var(--color-text);
transition: color 0.5s ease;
}
h1 {
font-family: var(--font-cursive);
}
h2 {
font-family: var(--font-serif);
font-size: 3rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--color-primary);
}
h3 {
font-family: var(--font-serif);
font-weight: 700;
}
strong {
font-family: var(--font-cursive);
font-size: 1.5em;
color: var(--color-primary);
font-weight: 600;
margin: 0 0.1em;
}
.divider {
display: block;
width: 60px;
height: 1px;
background-color: var(--color-primary);
margin: 25px 0;
transition: background-color 0.5s ease;
}
.section-wrapper {
position: relative;
width: 100%;
padding: 120px 0;
overflow: hidden;
background-color: var(--color-bg);
transition: background-color 0.5s ease;
}
.section-wrapper::before,
.section-wrapper::after {
content: "";
position: absolute;
left: 0;
right: 0;
height: 80px;
background-size: cover;
background-repeat: no-repeat;
z-index: 10;
}
.section-wrapper::before {
top: -1px;
transform: scaleY(-1);
}
.section-wrapper::after {
bottom: -1px;
}
#hero-section {
padding-top: 0;
}
#hero-section::before {
display: none;
}
footer::before,
footer::after {
display: none;
}
#hero-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23e9efe6;"></path></svg>'); }
#invitation-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23fcf9f2;"></path></svg>'); }
#countdown-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23e9efe6;"></path></svg>'); }
#event-timeline-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23fcf9f2;"></path></svg>'); }
#location-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23e9efe6;"></path></svg>'); }
#tips-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23fcf9f2;"></path></svg>'); }
#confirmation-section::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,150 350,0 600,80 C850,160 1050,-20 1200,50 L1200,120 L0,120 Z" style="fill: %23323f32;"></path></svg>'); }
.parallax-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("https://zrtbdboewgbwiyxzvxhj.supabase.co/storage/v1/object/public/imgwebjuan/corona%20de%20flores.png");
z-index: -2;
opacity: 0.4;
}
.section-content {
position: relative;
z-index: 2;
}
#hero-section {
height: 100vh;
padding: 0 20px;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: transparent;
}
#hero-section .subtitle {
font-family: var(--font-sans-serif);
font-size: 1.5rem;
font-weight: 300;
letter-spacing: 4px;
text-transform: uppercase;
color: var(--color-text);
}
#hero-section h1 {
font-size: 10rem;
line-height: 1;
margin: 0.1em 0;
color: var(--color-primary);
}
#hero-section .hero-date {
font-family: var(--font-sans-serif);
font-size: 1rem;
font-weight: 300;
letter-spacing: 4px;
text-transform: uppercase;
color: var(--color-text);
}
.scroll-down-indicator {
position: absolute;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
width: 24px;
height: 40px;
border: 2px solid var(--color-primary);
border-radius: 12px;
transition: border-color 0.5s ease;
}
.scroll-down-indicator span {
position: absolute;
top: 8px;
left: 50%;
width: 2px;
height: 8px;
background-color: var(--color-primary);
border-radius: 2px;
transform: translateX(-50%);
animation: scroll-anim 2s infinite;
transition: background-color 0.5s ease;
}
@keyframes scroll-anim {
0% {
transform: translate(-50%, 0);
opacity: 1;
}
100% {
transform: translate(-50%, 12px);
opacity: 0;
}
}
.heart-divider {
margin-top: 25px;
margin-bottom: 25px;
color: var(--color-primary);
font-size: 1.5rem;
}
.heart-divider::before,
.heart-divider::after {
content: "";
display: inline-block;
width: 50px;
height: 1px;
background-color: var(--color-primary);
vertical-align: middle;
margin: 0 10px;
}
#invitation-section {
background-color: var(--color-secondary);
}
.invitation-text {
font-family: var(--font-sans-serif);
font-weight: 300;
font-size: 1.2rem;
max-width: 600px;
margin: 30px auto 40px;
text-align: center;
}
.godparents-section {
margin-bottom: 40px;
}
.godparents-title {
font-family: var(--font-serif);
font-size: 1.5rem;
color: var(--color-text);
margin-bottom: 10px;
}
.godparents-names {
font-family: var(--font-sans-serif);
font-size: 1.1rem;
font-weight: 300;
color: var(--color-text);
line-height: 1.5;
}
.btn {
font-family: var(--font-sans-serif);
font-weight: 400;
text-decoration: none;
color: var(--color-text);
background-color: var(--color-bg);
padding: 12px 24px;
border-radius: 50px;
transition: background-color 0.3s ease, color 0.3s ease;
display: inline-flex;
align-items: center;
gap: 10px;
border: none;
cursor: pointer;
}
.btn:hover {
background-color: var(--color-primary);
color: var(--color-bg);
}
.btn i {
font-size: 1.2rem;
}
#countdown-section {
background-color: var(--color-bg);
}
.event-full-date {
font-family: var(--font-sans-serif);
font-size: 1.2rem;
font-weight: 300;
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 2em;
}
#countdown {
display: flex;
justify-content: center;
gap: 40px;
margin-top: 30px;
flex-wrap: wrap;
}
.time-box span {
display: block;
font-size: 4rem;
font-family: var(--font-serif);
font-weight: 700;
color: var(--color-text);
transition: color 0.5s ease;
}
.time-box small {
font-family: var(--font-sans-serif);
font-weight: 300;
font-size: 0.9rem;
text-transform: uppercase;
color: var(--color-primary);
transition: color 0.5s ease;
}
#event-timeline-section {
background-color: var(--color-secondary);
}
.timeline {
position: relative;
max-width: 800px;
margin: 40px auto;
}
.timeline::after {
content: "";
position: absolute;
width: 2px;
background-color: var(--color-primary);
top: 0;
bottom: 0;
left: 50%;
margin-left: -1px;
transition: background-color 0.5s ease;
}
.timeline-item {
padding: 10px 40px;
position: relative;
width: 50%;
box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
left: 0;
text-align: right;
}
.timeline-item:nth-child(even) {
left: 50%;
text-align: left;
}
.timeline-item::after {
content: "";
position: absolute;
width: 12px;
height: 12px;
background-color: var(--color-bg);
border: 3px solid var(--color-primary);
top: 32px;
border-radius: 50%;
z-index: 1;
transition: background-color 0.5s ease, border-color 0.5s ease;
}
.timeline-item:nth-child(odd):after {
right: -6px;
}
.timeline-item:nth-child(even):after {
left: -6px;
}
.timeline-content {
padding: 10px 0;
transition: all 0.3s ease;
}
.timeline-content h3 {
font-size: 1.5rem;
}
.timeline-content p {
font-family: var(--font-sans-serif);
font-weight: 300;
}
.timeline-item.active .timeline-content {
background-color: var(--color-primary);
color: var(--color-bg);
border-radius: 12px;
padding: 15px 20px;
box-shadow: 0 4px 20px rgba(185, 155, 82, 0.3);
transform: scale(1.05);
}
.timeline-item.active .timeline-content h3,
.timeline-item.active .timeline-content p {
color: var(--color-bg);
}
@keyframes pulse-dot {
0% { box-shadow: 0 0 0 0 rgba(185, 155, 82, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(185, 155, 82, 0); }
100% { box-shadow: 0 0 0 0 rgba(185, 155, 82, 0); }
}
.timeline-item.active::after {
background-color: var(--color-primary);
border-color: var(--color-primary);
animation: pulse-dot 2s infinite;
}
.timeline-item.past .timeline-content {
opacity: 0.5;
}
.timeline-item.past::after {
background-color: var(--color-text);
border-color: var(--color-text);
}
#location-section {
background-color: var(--color-bg);
}
.location-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
text-align: left;
}
.location-details .divider {
margin: 20px 0;
}
.venue-name {
font-family: var(--font-serif);
font-weight: 700;
font-size: 2.2rem;
margin: 10px 0;
}
.venue-address,
.venue-time {
font-family: var(--font-sans-serif);
font-weight: 300;
font-size: 1.1rem;
}
.location-image img {
width: 100%;
height: 500px;
object-fit: cover;
border-radius: 8px;
}
#tips-section {
background-color: var(--color-secondary);
}
.tips-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
margin-top: 40px;
}
.tip-item {
text-align: center;
}
.tip-item i {
font-size: 3rem;
color: var(--color-primary);
margin-bottom: 20px;
}
#confirmation-section {
background-color: var(--color-bg);
}
.confirmation-form {
position: relative;
max-width: 500px;
margin: 60px auto 0;
background-color: var(--color-secondary);
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
text-align: center;
}
.confirmation-form-icon {
position: absolute;
top: -40px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 80px;
border-radius: 50%;
background-color: var(--color-secondary);
display: flex;
align-items: center;
justify-content: center;
border: 4px solid var(--color-bg);
color: var(--color-primary);
font-size: 2.5rem;
}
.confirmation-form h3 {
font-family: var(--font-serif);
font-size: 2.2rem;
margin-top: 20px;
margin-bottom: 30px;
font-weight: 700;
}
.radio-group {
display: flex;
justify-content: center;
gap: 30px;
margin-bottom: 30px;
font-family: var(--font-sans-serif);
}
.radio-label {
display: flex;
align-items: center;
cursor: pointer;
font-size: 1.1rem;
}
.radio-label input[type="radio"] {
display: none;
}
.radio-custom {
width: 22px;
height: 22px;
border: 2px solid var(--color-primary);
border-radius: 50%;
margin-right: 10px;
position: relative;
transition: border-color 0.3s ease;
}
.radio-label:hover .radio-custom {
border-color: var(--color-text);
}
.radio-label input[type="radio"]:checked + .radio-custom::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 12px;
height: 12px;
background-color: var(--color-primary);
border-radius: 50%;
}
.form-input {
width: 100%;
border: none;
border-bottom: 1px solid var(--color-primary);
background-color: transparent;
padding: 15px 0;
font-family: var(--font-sans-serif);
font-size: 1.1rem;
color: var(--color-text);
margin-bottom: 25px;
outline: none;
box-sizing: border-box;
}
.form-input::placeholder {
color: var(--color-primary);
opacity: 0.8;
}
.submit-btn {
width: 100%;
justify-content: center;
background-color: var(--color-primary);
color: var(--color-bg);
margin-top: 10px;
}
.submit-btn:hover {
filter: brightness(110%);
color: var(--color-bg);
}
footer {
background-color: var(--color-dark);
color: var(--color-bg);
padding: 60px 20px;
transition: background-color 0.5s ease, color 0.5s ease;
}
footer h4 {
color: var(--color-bg);
font-family: var(--font-cursive);
font-size: 3rem;
margin: 0;
}
.decorative-leaves {
position: absolute;
background-size: contain;
background-repeat: no-repeat;
z-index: 1;
pointer-events: none;
opacity: 0.25;
background-image: url("img/plantas_de.svg");
}
.leaves-top-right {
top: -30px;
right: -30px;
width: 350px;
height: 350px;
transform: rotate(0deg);
}
.leaves-top-left {
top: -30px;
left: -30px;
width: 350px;
height: 350px;
transform: scaleX(-1);
}
.leaves-bottom-right {
bottom: -30px;
right: -30px;
width: 350px;
height: 350px;
transform: scaleY(-1);
}
.leaves-bottom-left {
bottom: -30px;
left: -30px;
width: 350px;
height: 350px;
transform: scale(-1, -1);
}
.animate-on-scroll {
opacity: 0;
transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.from-left {
transform: translateX(-40px);
}
.from-right {
transform: translateX(40px);
}
.from-bottom {
transform: translateY(40px);
}
.animate-on-scroll.is-visible {
opacity: 1;
transform: translate(0, 0);
}
.delay-1 {
transition-delay: 0.2s;
}
@media (max-width: 768px) {
.envelope-content,
.envelope-footer {
display: block;
}
.envelope-titles {
margin-top: 50px;
}
.envelope-content {
top: 30px;
left: 20px;
bottom: auto;
max-width: calc(100% - 40px);
text-align: left;
}
.envelope-footer {
bottom: calc(20px + 46px + 10px);
left: 20px;
right: auto;
max-width: calc(100% - 40px);
text-align: left;
}
.envelope-title-name {
font-size: 2rem;
}
.envelope-title-event,
.envelope-title-date {
font-size: 0.75rem;
letter-spacing: 1px;
}
.envelope-footer {
font-size: 0.65rem;
}
.page {
font-size: 1rem;
}
.parallax-bg {
background-size: cover;
background-position: center;
}
h2 {
font-size: 2.5rem;
}
#hero-section {
height: 100vh;
padding: 0 20px;
justify-content: center;
align-items: center;
text-align: center;
}
#hero-section h1 {
font-size: 5rem;
}
.btn {
width: 80%;
justify-content: center;
}
.leaves-top-right, .leaves-top-left, .leaves-bottom-right, .leaves-bottom-left {
width: 200px;
height: 200px;
}
.timeline::after {
left: 15px;
}
.timeline-item {
width: 100%;
padding-left: 45px;
padding-right: 10px;
}
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
left: 0;
text-align: left;
}
.timeline-item::after {
left: 9px;
}
.location-grid {
grid-template-columns: 1fr;
}
.location-image {
order: -1;
margin-bottom: 30px;
}
.location-details {
text-align: center;
}
.location-details .divider {
margin: 20px auto;
}
.tips-grid {
grid-template-columns: 1fr;
gap: 30px;
}
.confirmation-form {
padding: 40px 20px;
}
.radio-group {
flex-direction: column;
align-items: center;
gap: 20px;
}
.flap-top {
width: 80%;
height: 100%;
left: auto;
right: 0;
clip-path: polygon(100% 0, 0 50%, 100% 100%);
border-radius: 18px;
box-shadow: -90px 80px 15px rgba(0, 0, 0, 0.3);
}
.envelope-wrapper.open .flap-top {
transform: translateX(40%);
}
}
#reproductor-mini {
position: fixed;
bottom: 20px;
left: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 8px;
padding: 10px;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
z-index: 9999;
transition: opacity 0.5s ease;
}
#reproductor-mini.oculto {
display: none; 
}
.portada {
width: 45px;
height: 45px;
border-radius: 5px;
object-fit: cover;
}
.info-musica {
display: flex;
flex-direction: column;
justify-content: center;
}
.nombre-cancion {
font-size: 13px;
font-family: sans-serif;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.music-btn {
position: fixed;
bottom: 25px;
right: 25px;
width: 54px;
height: 54px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.4);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
color: #333;
padding: 0;
}
.music-btn:hover {
transform: scale(1.08);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.music-btn:active {
transform: scale(0.95);
}
.music-btn .icon-play,
.music-btn .icon-pause {
display: flex;
align-items: center;
justify-content: center;
}
.music-btn.paused .icon-pause {
display: none;
}
.music-btn.paused .icon-play {
display: flex;
}
.music-btn.playing .icon-play {
display: none;
}
.music-btn.playing .icon-pause {
display: flex;
}
.music-btn .equalizer {
position: absolute;
bottom: 7px;
display: flex;
gap: 2px;
opacity: 0;
transition: opacity 0.3s ease;
}
.music-btn.playing .equalizer {
opacity: 1;
}
.music-btn .equalizer span {
width: 2.5px;
height: 6px;
background-color: currentColor;
border-radius: 2px;
animation: barBounce 0.8s infinite ease-in-out alternate;
}
.music-btn .equalizer span:nth-child(2) {
animation-delay: 0.2s;
}
.music-btn .equalizer span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes barBounce {
0% { height: 3px; }
100% { height: 10px; }
}