/* Avatar */
#avatarImage {
    z-index: 400;
    position: fixed;
    top: 20px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-image: var(--bg-linear);
    color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    overflow: hidden;
}

#avatarImage img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
}

#avatarImage.active {
    transform: scale(1.3);
}
#avatarImage:hover{
    transform: scale(1.3);
}


/* Panel de titulo */
#hoverAvatarConfig {
    z-index: 101;
    position: fixed;
    top: 19px;
    right: 50px;
    width: 365px;
    height: 45px;
    text-align: center;
    background-image: var(--bg-linear);
    color: var(--color);
    padding: 5px;
    border-radius: 5px;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#avatarPanelConfig {
    position: fixed;
    z-index: 100; /* z-index para los panels laterales derechos */
    top: 57px;
    right: 15px;
    width: 400px;
    height: 450px;
    background-image: var(--bg-linear);
    color: var(--color); /* Color del texto */
    padding: 0; /* Sin relleno para ajustar los márgenes internos */
    border-radius: 5px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column; /* Para dividir el panel en secciones */
    gap: 10px;
}

#avatarPanelConfig.active {
    opacity: 1;
    transform: scaleY(1);
    padding: 2rem;
}

#volume-music-range,
#volume-effects-range,
#select-zapato,
#select-theme {
    cursor: pointer;
}



/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    #avatarImage {
        top: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    #hoverAvatarConfig {
        top: 20px;
        right: 45px;
        width: 278px;
        height: 35px;
        font-size: 14px;
    }

    #avatarPanelConfig {
        top: 45px;
        right: 15px;
        width: 308px;
        height: 350px;
        padding-top: 5px;
    }

    #avatarImage img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    #avatarImage {
        top: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    #hoverAvatarConfig {
        top: 20px;
        right: 45px;
        width: 278px;
        height: 35px;
        font-size: 14px;
    }

    #avatarPanelConfig {
        top: 45px;
        right: 15px;
        width: 308px;
        height: 350px;
        padding-top: 5px;
    }

    #avatarImage img {
        width: 30px;
        height: 30px;
    }
}