body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.contenedor-general {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#container-registro {
    position: relative;
    max-width: 100%; 
    margin: 0px auto; /* Center horizontally and add some top margin */
}

#login-form {
    background-color: #ffffff;
    border: 2px solid #ccc;
    padding: 3px 5px 3px 5px;; /* Increase padding further */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
}
#login-form form {
    display: flex; /* Make the form a flex container */
    align-items: center; /* Vertically align items */
    gap: 10px; /* Add space between elements */
}

#login-form label,
#login-form input[type="email"],
#login-form input[type="password"],
#login-form input[type="submit"] {
    box-sizing: border-box;
}

#login-form input[type="email"],
#login-form input[type="password"] {
    width: 120px; /* Set a fixed width for inputs */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #f9f9f9; /* Add a light background color */
}

#login-form input[type="email"]:focus,
#login-form input[type="password"]:focus {
    outline: none;
    border-color: #3a91e7;
    box-shadow: 0 0 8px rgba(58, 145, 231, 0.6);
}


#login-form input[type="submit"],
#login-form a, #downloadMandalaBtn, 
.container-lusher, .container-lusher input[type="submit"] {
    background-color: #3a91e7!important;
    color: white;
    padding: 5px 10px; /* Adjust padding */
    border: none;
    border-radius: 5px; /* Use slightly rounded corners */
    font-size: 0.9rem; /* Adjust font size */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Remove underline from link */
    display: inline-block;
    text-align: center; /* Center text */
}

#login-form input[type="submit"]:hover,
#login-form a:hover, #downloadMandalaBtn, 
.container-lusher input[type="submit"]:hover,
.container-lusher a:hover {
    background-color: #116eb6!important;
}

.container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /*margin-top: 20px;*/
}

.titulo{
    margin: 0;
    padding: 0;
}
.palette {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    margin-top: 20px;
}

.colors {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    gap:2px;
}

.color {
    width: 40px;
    height: 40px;
    border: 1px solid #000;
    cursor: pointer;
	position: relative;
}

/* Visually indicate when a color button is disabled */
.color[style*="pointer-events: none"] {
    opacity: 0.3;
    cursor: not-allowed;
}


/* Estilo básico para el tooltip */
.color:hover::after {
    content: attr(title);  /* Mostrar el texto del título como el contenido del tooltip */
    position: absolute;
    bottom: 100%; /* Mostrarlo arriba del botón */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: none; /* No bloquear interacción */
}

/* Para el tooltip oculto inicialmente */
.color::after {
    content: '';
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: -1; /* Asegurarse de que no interrumpa la interacción */
}

.canvas-area {
    position: relative;
    margin-top: 20px;
}

#mandalaCanvas {
    border: 2px solid #ccc;
    background-color: #ffffff;
}

.carousel {
    margin-top: 20px;
    width: 80%;
    overflow-x: auto;
    white-space: nowrap;
	z-index: 1;
}

.carousel img {
    height: 100px;
    margin: 0 10px;
    cursor: pointer;
    border: 2px solid transparent;
}

.carousel img:hover,
.carousel img.selected {
    border: 2px solid #0078d7;
}

/* Visually indicate when the carousel is blocked */
.carousel[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}

#mandalaCarousel {
    display: flex; /* Asegúrate de que los elementos dentro del carrusel se muestren en fila */
	visibility: visible !important;
    justify-content: center;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.carousel.hidden {
    display: none;
}

/* Estilos generales para los controles del reproductor */
button {
    background-color: #3a91e7;
    color: white;
    padding: 10px 15px; /* Reducción de tamaño */
    border: none;
    border-radius: 50%;
    margin: 8px; /* Menor margen */
    font-size: 18px; /* Tamaño de fuente reducido */
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    width: 50px; /* Reducir el tamaño de los botones */
    height: 50px; /* Reducir el tamaño de los botones */
}

button:hover {
    background-color: #20679f;
}

button:focus {
    outline: none;
}

#customColorBtn, #applyColorBtn, #closeModalBtn{
    width: 65px;
    height: 30px;
    font-size: 0.8rem;
    border-radius: 15px;
    padding: 1px;
    margin: 0;
}

.container-musica{
    padding-top: 1rem;
    text-align: center;
    display: flex; /* Make the music container a flex container */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally within the column */
}
/* Botones de control tipo reproductor */
#prevBtn, #nextBtn {
    font-size: 20px;
    width: 50px; /* Reducir el tamaño de los botones */
    height: 50px; /* Reducir el tamaño de los botones */
}

#playPauseBtn {
    font-size: 14px; /* Reducir tamaño de icono */
    width: 70px; /* Ajuste del tamaño */
    height: 50px; /* Ajuste del tamaño */
    background-color: #4CAF50;
    border-radius: 50%;
}

#playPauseBtn:hover {
    background-color: #f18111;
}

/* Contenedor de los botones de control al lado derecho */
.botones-musica {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed absolute positioning */
    padding: 10px;
    width: 100%; /* Ensure it takes full width of flex container */
}

/* Estilo para el contenedor de la lista de música */
#musicList {
    max-height: 300px; /* Ajusta la altura según tu necesidad */
    width: 100%; /* Ensure it takes full width of flex container */
    overflow-y: auto; /* Añadir scroll vertical si la lista es demasiado larga */
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    list-style-type: none;
}

#musicList li {
    margin: 5px 0;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#musicList li:hover {
    background-color: #e0e0e0;
}

#musicList a {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
}

#container-musicolorsoft {
    background-color: #FFF;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 5px 25px 5px 25px;
    box-sizing: border-box;
    position: relative;
}

/* Texto con altura limitada */
.text-wrapper {
    max-height: 1.2rem; 
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
    line-height: 1rem;
    text-align: justify;
}

.text-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    /*background: linear-gradient(to bottom, rgba(240, 240, 240, 0), rgba(240, 240, 240, 1));*/
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.text-wrapper.expanded {
    max-height: 1000px;
    overflow: visible;
}

.text-wrapper.expanded::after {
    opacity: 0;
}

/* Estilo de la flecha */
.arrow-toggle {
    color:#3a91e7
}

.container-lusher {
    background: linear-gradient(135deg, #f0f2f5 0%, #e1e5ea 100%);
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 90%;
    margin: 1rem;
    padding: 10px;
    text-align: center;
}

.arrow-toggle:hover {
    color: #0056b3;
    cursor: pointer;
}

.container-pie{
    background-color: #f3ebf5;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;    
    margin: 15px;
    padding: 10px;
    line-height: 1rem;
    font-size: 0.9rem;
    text-align: justify;
}
.container-pie a {
    color: #6a237c;           /* Color verde por defecto */
    font-weight: bold;
    text-decoration: none;  /* Sin subrayado */
    transition: color 0.3s ease;
}

.container-pie a:hover {
    color: #78BF09;          /* Cambia a violeta al pasar el mouse */
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .palette {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .canvas-area {
        margin-top: 0;
        width: 100%!important; /* Make canvas take full width */
        height: auto!important; /* Adjust height automatically */
    }

    #mandalaCanvas {
        width: 98%!important; /* Make canvas take full width */
        height: auto!important; /* Adjust height automatically */
        display: block;     /* elimina espacio fantasma */
        max-width: 98%!important;    /* asegura que no se desborde */
        touch-action: none; /* evita zoom o scroll con dedos */
        box-sizing: border-box;
        margin: 0 auto;
    }

    .carousel {
        width: 95%; /* Increase carousel width */
        margin-top: 10px;
    }

    .carousel img {
        height: 80px; /* Reduce image height */
        margin: 0 5px; /* Reduce margin */
    }

    .container-musica {
        padding-top: 0.5rem;
    }

    .botones-musica {
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: center;
    }

    button {
        width: 40px; /* Further reduce button size */
        height: 40px; /* Further reduce button size */
        font-size: 16px; /* Adjust font size */
        margin: 5px; /* Adjust margin */
    }

    #playPauseBtn {
        width: 60px; /* Adjust play button size */
        height: 40px; /* Adjust play button size */
        font-size: 12px; /* Adjust font size */
    }

    #customColorBtn, #applyColorBtn, #closeModalBtn {
        width: 60px;
        height: 25px;
        font-size: 0.7rem;
    }

    #musicList {
        max-height: 200px; /* Reduce max height */
    }

    #musicList li {
        padding: 3px; /* Reduce padding */
        font-size: 0.7rem; /* Reduce font size */
    }

    #container-musicolorsoft {
        margin: 5px 10px; /* Adjust margin */
        padding: 3px; /* Adjust padding */
    }

    .container-lusher {
        width: 95%; /* Adjust width */
        margin: 0.5rem; /* Adjust margin */
        padding: 5px; /* Adjust padding */
    }

    .container-pie {
        margin: 10px; /* Adjust margin */
        padding: 5px; /* Adjust padding */
        font-size: 0.8rem; /* Adjust font size */
    }
    .colors {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap:2px;
    }

}
