/* ============================================
   CSS POWER LAB - "Wow, CSS can do THIS?!"
   style.css (upgraded)
============================================ */

/* THE UGLY VERSION (before the magic) */
body {
    font-family: Times New Roman;
    background:#fafafa;
    color:#111;
}


/* ============================================
   THE CSS MAGIC (when you click the button)
   The `.css-on` class is added by script.js
============================================ */

.css-on {
    background:
    radial-gradient(circle at 15% 15%, #667eea44, transparent 45%),
    radial-gradient(circle at 85% 80%, #764ba244, transparent 45%),
    linear-gradient(135deg, #667eea, #764ba2);

    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;

    font-family:'Segoe UI', Arial, sans-serif;
    color:#fff;
    background-attachment:fixed;
    animation:bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift{
    0%{ background-size:100% 100%; }
    100%{ background-size:150% 150%; }
}

.css-on .container {
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(4px);
    color:#1a1a2e;
    padding:42px 40px;
    width:500px;
    max-width:92vw;
    border-radius:28px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.4),
        0 0 0 4px rgba(255,255,255,0.15);
    animation:pop 0.8s cubic-bezier(.2,1.4,.5,1);
}

.css-on h1 {
    text-align:center;
    font-size:48px;
    background:
    linear-gradient(90deg, #ff0080, #ff9500, #00ffff);
    color:transparent;
    background-clip:text;
    -webkit-background-clip:text;
    filter:drop-shadow(0 3px 3px rgba(0,0,0,0.2));
    animation:hue 6s linear infinite;
}

@keyframes hue{
    0%{ filter:drop-shadow(0 3px 3px rgba(0,0,0,0.2)) hue-rotate(0deg); }
    100%{ filter:drop-shadow(0 3px 3px rgba(0,0,0,0.2)) hue-rotate(360deg); }
}

.css-on h4 {
    text-align:center;
    font-size:44px;
    background:
    linear-gradient(90deg, #021088, #ff03ea);
    color:transparent;
    background-clip:text;
    -webkit-background-clip:text;
    margin:2px 0;
}

.css-on h2{
    text-align:center;
    font-size:26px;
    color:#5b21b6;
    margin-top:24px;
}

.css-on p{
    text-align:center;
    line-height:1.5;
}

.css-on .card {
    margin-top:20px;
    padding:22px;
    border-radius:18px;
    background:linear-gradient(145deg,#fafbff,#ece9ff);
    border:2px solid #e6e0ff;
    transition:transform .3s, box-shadow .3s, border-color .3s;
    box-shadow:0 4px 14px rgba(90,60,200,0.08);
}

.css-on .card:hover {
    transform:translateY(-10px) scale(1.03) rotate(-0.5deg);
    border-color:#a78bfa;
    box-shadow:0 20px 45px rgba(90,60,200,0.25);
}

.css-on .card h3{
    color:#5b21b6;
    font-size:20px;
}

.css-on button {
    width:100%;
    padding:16px;
    margin-top:26px;
    border:none;
    border-radius:50px;
    background:
    linear-gradient(90deg, #ff512f, #dd2476, #7a1f96);
    background-size:200% auto;
    color:#fff;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    animation:gradientMove 3s ease-in-out infinite;
    transition:transform .2s, box-shadow .2s;
}

@keyframes gradientMove{
    0%{ background-position:0% center; }
    50%{ background-position:100% center; }
    100%{ background-position:0% center; }
}

.css-on button:hover {
    transform:scale(1.06);
    box-shadow:0 0 30px rgba(233,36,118,0.6);
}

.css-on button:active{
    transform:scale(.96);
}

@keyframes pop {
    from {
        transform:scale(0.5) translateY(20px);
        opacity:0;
    }
    to {
        transform:scale(1) translateY(0);
        opacity:1;
    }
}
