@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes particle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--x-offset)) scale(0);
        opacity: 0;
    }
}

@keyframes spark {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(var(--rotation));
    }
    20%, 80% {
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(calc(var(--rotation) + 20deg));
    }
}

@keyframes powerPulse {
    0% {
        box-shadow: 0 0 30px #fff,
                    0 0 60px #fff,
                    0 0 90px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 50px #fff,
                    0 0 100px #fff,
                    0 0 150px rgba(255, 255, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 30px #fff,
                    0 0 60px #fff,
                    0 0 90px rgba(255, 255, 255, 0.6);
    }
}

@keyframes energyRing {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.2;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.5;
    }
}

#northern-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease;
}

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

body {
    background-color: black;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.circle-container {
    position: relative;
    z-index: 2;
}

.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.5s ease;
    animation: powerPulse 2s ease-in-out infinite;
    border: none;
    outline: none;
}

/* Remove the pulsing circles */
.circle::before,
.circle::after {
    display: none;
}

/* Particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes particle1 { 
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, calc(-50% - 150px)) scale(0); }
}

@keyframes particle2 { 
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(calc(-50% + 150px), calc(-50% - 50px)) scale(0); }
}

@keyframes particle3 { 
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(calc(-50% - 150px), calc(-50% - 50px)) scale(0); }
}

@keyframes particle4 { 
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(calc(-50% + 100px), calc(-50% + 100px)) scale(0); }
}

@keyframes particle5 { 
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(calc(-50% - 100px), calc(-50% + 100px)) scale(0); }
}

.particle:nth-child(1) { animation: particle1 2s ease-out infinite; }
.particle:nth-child(2) { animation: particle2 2s ease-out infinite 0.2s; }
.particle:nth-child(3) { animation: particle3 2s ease-out infinite 0.4s; }
.particle:nth-child(4) { animation: particle4 2s ease-out infinite 0.6s; }
.particle:nth-child(5) { animation: particle5 2s ease-out infinite 0.8s; }

/* Electric sparks */
.spark {
    position: absolute;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform-origin: center;
    box-shadow: 0 0 15px #fff;
}

@keyframes sparkRotate {
    0% { transform: translate(-50%, -50%) rotate(var(--rotation)) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) rotate(calc(var(--rotation) + 20deg)) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(calc(var(--rotation) + 40deg)) scale(0.8); opacity: 0; }
}

.spark:nth-child(1) { --rotation: 0deg; animation: sparkRotate 1.5s ease-in-out infinite; }
.spark:nth-child(2) { --rotation: 72deg; animation: sparkRotate 1.5s ease-in-out infinite 0.3s; }
.spark:nth-child(3) { --rotation: 144deg; animation: sparkRotate 1.5s ease-in-out infinite 0.6s; }
.spark:nth-child(4) { --rotation: 216deg; animation: sparkRotate 1.5s ease-in-out infinite 0.9s; }
.spark:nth-child(5) { --rotation: 288deg; animation: sparkRotate 1.5s ease-in-out infinite 1.2s; }

.circle.active .particle,
.circle.active .spark {
    display: none;
}

.face {
    font-size: 48px;
    color: black;
    transition: opacity 0.5s ease;
    position: absolute;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

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

.circle.active .face {
    opacity: 0;
}

.circle.active .image-container {
    opacity: 1;
    visibility: visible;
}

#border-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.upload-container {
    margin-bottom: 2rem;
}

.upload-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #6c5ce7;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #5b4bc4;
}

.player-container {
    width: 100%;
}

#audio-player {
    width: 100%;
    margin-bottom: 1rem;
}

#visualizer {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 1.0);
    border-radius: 8px;
} 