* {
    user-select: none;
    font-family:monospace;
    cursor: url("imagenes/mango.png") 16 16, auto;
}
h2{
    text-align: center;
}
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: #bae5ba;
    cursor: url("imagenes/mango.png") 16 16, auto;
}

#flowerCanvas {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; 
}

#mid {
    position: relative; 
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 150px;
    background-color:#bae5ba;
    border-radius: 6px;
}

#music, #letters {
    border: 1px solid #000;
    width: 180px;
    height: 100px;
    margin: 10px;
    background-color: #ffffff;
    color:#000;

}

.button {
    --stone-800: #292524;
    font-size: 1rem;
    position: relative;
    font-weight: bold;
    cursor: url("imagenes/mango.png") 16 16, auto;
    transform: translate(-4px, -4px);
    outline-offset: 5px;
    border-radius: 6px;
    background-color: var(--stone-800);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    box-shadow:
        0.5px 0.5px 0 0 var(--stone-800),
        1px 1px 0 0 var(--stone-800),
        2px 2px 0 0 var(--stone-800),
        3px 3px 0 0 var(--stone-800),
        0 0 0 2px var(--stone-800);
}

.button:active {
    transform: translate(-2px, -2px) scale(0.95);
}

/* ---------------- POPUP ---------------- */
#popup-music {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* oculto por defecto */
}

#popup-music.show {
    display: flex; /* visible cuando se agrega la clase show */
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 400px;
    max-height: 80dvh;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.popup-content h2{
    margin-top: -10px;
    margin-bottom: -5px;
}
#close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: url("imagenes/mango.png") 16 16, auto;
}

.songs-list {
    flex: 1; 
    overflow-y: auto; 
    margin-top: 15px;
    padding-right: 10px; 
    scroll-behavior: smooth;
}

/* scroll delgado */
.songs-list::-webkit-scrollbar {
width: 4px;
}
.songs-list::-webkit-scrollbar-thumb {
background: #999;
border-radius: 4px;
}
.songs-list::-webkit-scrollbar-track {
background: transparent;
}

.canciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 6px;
    cursor: url("imagenes/mango.png") 16 16, auto;
    gap: 10px;
}
.canciones:hover{
    background-color: #c7c7c7fe;
}
#hiddenSong{
    background-color: #bae5ba;
}

/* Ondas fake */
.ondas {
display: flex;
align-items: flex-end; /* todas alineadas abajo */
height: 20px;
gap: 3px;
margin-left: auto;
}

.ondas span {
display: block;
width: 3px;
background: #4CAF50;
border-radius: 2px;
transform-origin: bottom; /* 👈 todas crecen desde abajo */
animation: wave 1s infinite ease-in-out;
}

/* Diferentes delays y alturas iniciales */
.ondas span:nth-child(1) {
animation-delay: 0s;
height: 6px;
}
.ondas span:nth-child(2) {
animation-delay: 0.2s;
height: 10px;
}
.ondas span:nth-child(3) {
animation-delay: 0.4s;
height: 14px;
}
.ondas span:nth-child(4) {
animation-delay: 0.6s;
height: 10px;
}
.ondas span:nth-child(5) {
animation-delay: 0.8s;
height: 8px;
}

@keyframes wave {
0%, 100% {
transform: scaleY(0.4);
}
50% {
transform: scaleY(1.4);
}
}

/* ocultar ondas si no está sonando */
.canciones .ondas {
visibility: hidden;
}
.canciones.active .ondas {
visibility: visible;
}


/* Fondo general del popup */
.popup-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
z-index: 1000;
}

/* Caja del popup */
.popup {
background: #fff;
width: 20%;
display: flex;
flex-direction: column;
text-align: center;
min-height: 400px;
border-radius: 12px;
padding: 20px;
position: relative;
overflow-y: auto;
}

/* Botón cerrar */
.close-popup {
position: absolute;
top: 10px;
right: 15px;
cursor: pointer;
font-size: 20px;
font-weight: bold;
color: #444;
}

/* Contenedor de notas */
.notas-container {
display: flex;
gap: 20px;
flex-wrap: wrap;
}

/* Nota pequeña */
.nota {
width: 200px;
height: 250px;
padding: 15px;
margin-bottom: 20px;
margin-left: 15px;
background: #f9f6e8;
border: 1px solid #ddd;
border-radius: 8px;
cursor: pointer;
position: relative;
font-size: 14px;
line-height: 1.5;
overflow: hidden;
transition: transform 0.2s;
background-image: repeating-linear-gradient(#f9f6e8, #f9f6e8 23px, #cfcfcf 24px);
}

.nota:hover {
transform: scale(1.05);
}

/* Nota expandida */
.nota-expandida {
position: fixed;
top: 50%;
left: 50%;
width: 50%;
height: 60%;
transform: translate(-50%, -50%);
background: #f9f6e8;
border-radius: 12px;
padding: 30px;
box-shadow: 0 10px 25px rgba(0,0,0,0.3);
z-index: 2000;
background-image: repeating-linear-gradient(#f9f6e8, #f9f6e8 28px, #cfcfcf 29px);
overflow-y: auto;
font-size: 18px;
line-height: 1.8;
}

.close-nota {
position: absolute;
top: 15px;
right: 20px;
cursor: pointer;
font-size: 22px;
font-weight: bold;
}



    /* ---------- LOGIN OVERLAY ---------- */
    #loginOverlay {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* muy arriba para tapar todo */
    transition: opacity 0.25s ease;
    }

    #loginOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    }

    .login-box {
    width: 90%;
    max-width: 420px;
    background: transparent; /* caja transparente sobre negro */
    padding: 28px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    }

    .login-box h2 {
    margin: 0 0 14px;
    font-size: 20px;
    letter-spacing: 0.4px;
    }

    #unlockInput {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    }

    #unlockInput::placeholder { color: rgba(255,255,255,0.5); }

    .login-actions {
    display: flex;
    justify-content: center;
    }

    .btn {
    padding: 10px 18px;
    cursor: pointer;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    }

    .login-msg {
    margin-top: 12px;
    color: #ffb3b3;
    min-height: 18px;
    font-size: 14px;
    }

    /* animación de error (shake) */
    .login-box.shake {
    animation: shake 0.4s;
    }

    @keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
    100% { transform: translateX(0); }
    }


/* ---------- TOOLTIP ---------- */
.tooltip {
position: relative;
display: inline-block;
width: 100%;
}

.tooltiptext {
visibility: hidden;
width: max-content;
max-width: 220px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 6px 10px;
font-size: 13px;
position: absolute;
z-index: 100000;
bottom: 110%; /* arriba del input */
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.25s ease;
pointer-events: none;
}

.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}

.entrada{
position:absolute;
width: 300px;
margin-top: 55dvh;
}

/* Ajuste del popup de Cartas */
#cartasPopup .popup {
max-height: 80vh;       /* nunca pasa de 80% de la pantalla */
overflow-y: auto;       /* scroll vertical */
overflow-x: hidden;     /* evitar scroll horizontal */
box-sizing: border-box;
padding-right: 10px;    /* espacio para que no tape la scrollbar */
}

/* Scroll bonito opcional */
#cartasPopup .popup::-webkit-scrollbar {
width: 6px;
}

#cartasPopup .popup::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}

.hidden {
    display: none;    
}

.easteregg {
    margin-top: 15px;
    font-size: 18px;
    font-style: italic;
    color: #222;
    text-align: center;
}



.spotify-icon {
width: 30px;
height: 30px;
cursor: pointer;
animation: bounce 1.5s infinite; /* 👈 efecto rebote */
transition: transform 0.3s ease;
}

/* Efecto rebote */
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-6px);
}
60% {
transform: translateY(-3px);
}
}

/* Efecto al pasar el mouse */
.spotify-icon:hover {
transform: scale(1.2) rotate(5deg);
}
