* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.blob:nth-child(1) {
    width: 400px;
    height: 400px;
    background: #ff6b6b;
    left: -100px;
    top: -100px;
}

.blob:nth-child(2) {
    width: 350px;
    height: 350px;
    background: #4ecdc4;
    right: -50px;
    bottom: -50px;
    animation-delay: -5s;
}

.blob:nth-child(3) {
    width: 300px;
    height: 300px;
    background: #9b59b6;
    right: 30%;
    top: 20%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1)
    }
    
    25% {
        transform: translate(100px, 50px) rotate(90deg) scale(1.1)
    }
    
    50% {
        transform: translate(50px, 100px) rotate(180deg) scale(0.9)
    }
    
    75% {
        transform: translate(-50px, 50px) rotate(270deg) scale(1.2)
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    background: #ffffff1a;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #ffffff1a;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    background: #ffffff1a;
    color: #fff;
    border: 1px solid #ffffff1a;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

button:hover {
    background: #ffffff33;
    transform: translateY(-2px);
}

.palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.color-card {
    background: #ffffff1a;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid #ffffff1a;
    animation: cardAppear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.color-display {
    height: 150px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-info {
    padding: 1rem;
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-value {
    background: #0000003d;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    cursor: pointer;
    transition: 0.3s ease;
}

.color-value:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #000000cc;
    padding: 1rem 2rem;
    border-radius: 8px;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    opacity: 1;
}

.spacebar-hint {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #00000080;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .palette {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* nvm i hte it */