body {
    font-family: sans-serif;
    background-color: #f0f8ff;
    margin: 20px;
    background-image: url('https://zero-two.1.obrh.uno/uploads/images/file-1754459580422-401821739.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    color: #333;
}

/* Estilos para la pantalla de carga */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://zero-two.1.obrh.uno/uploads/images/file-1754459580422-401821739.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.loader {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    display: flex;
    font-size: 2em;
    color: #fff;
    letter-spacing: 2px;
}

.loader-text span {
    display: inline-block;
    animation: snake 1.5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes snake {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Estilos para el panel superior */
.top-panel {
    position: absolute;
    top: 10%; /* Posición un poco más abajo */
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    cursor: grab;
    z-index: 1000;
    box-shadow: 0 0 15px 5px red;
    color: black;
    border-radius: 20px;
}

.top-panel.dragging {
    cursor: grabbing;
}

/* Estilos para la imagen circular */
.circular-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    position: relative;
    box-shadow: 0 0 10px red;
    animation: rotate 20s linear infinite;
}

.circular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animación de rotación */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para el texto */
.panel-text {
    font-size: 1.5em;
    color: white;
}

/* Estilos para la descripción en texto rojo */
.button-description {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Estilos para el botón de acción genérico */
.action-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.action-button:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Estilos para el botón de audio */
.audio-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.audio-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}
