* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    overflow: hidden;
    height: 100vh;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#info {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#info h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff1744, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

#info p {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.8;
    text-align: center;
}

#controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#controls button {
    background: linear-gradient(45deg, #ff1744, #ff6b9d);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

#controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

#controls button:active {
    transform: translateY(0);
}

#controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

#controls label:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff1744;
    cursor: pointer;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#info {
    animation: fadeInUp 0.8s ease-out;
}

/* Efectos de partículas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 23, 68, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 23, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive design */
@media (max-width: 768px) {
    #info {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px;
    }
    
    #info h1 {
        font-size: 1.3em;
    }
    
    #controls {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #controls button {
        flex: 1;
        min-width: 120px;
    }
}

/* Efectos de hover para el canvas */
#canvas {
    cursor: grab;
}

#canvas:active {
    cursor: grabbing;
}

/* Estilos para el texto de información adicional */
.heart-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    opacity: 0.7;
    max-width: 250px;
}

.heart-info h3 {
    color: #ff1744;
    margin-bottom: 5px;
}

.heart-info p {
    margin-bottom: 3px;
}
