*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    background:#050816;

    position:relative;

    padding:20px;
}

/* NEON GLOW BACKGROUND */

body::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    background:#ff00ff;

    border-radius:50%;

    top:-150px;
    left:-150px;

    filter:blur(140px);

    opacity:0.5;

    animation:moveGlow1 8s infinite alternate;
}

body::after{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    background:#00ffff;

    border-radius:50%;

    bottom:-150px;
    right:-150px;

    filter:blur(140px);

    opacity:0.5;

    animation:moveGlow2 8s infinite alternate;
}

/* ANIMATED LINES */

.line{

    position:absolute;

    width:300px;
    height:4px;

    background:linear-gradient(to right,#ff00ff,#00ffff);

    box-shadow:
        0 0 10px #ff00ff,
        0 0 20px #00ffff;

    animation:moveLine 6s linear infinite;
}

.line1{
    top:20%;
    left:-20%;
}

.line2{
    bottom:20%;
    right:-20%;
}

/* MAIN CONTAINER */

.container{

    width:90%;
    max-width:700px;

    padding:35px;

    border-radius:25px;

    background:rgba(10,10,25,0.7);

    backdrop-filter:blur(12px);

    border:2px solid rgba(255,255,255,0.1);

    box-shadow:
        0 0 15px #ff00ff,
        0 0 30px #00ffff;

    color:white;

    position:relative;

    z-index:10;
}

/* TOP BAR */

.top-bar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:30px;
}

h1{
    font-size:42px;
}

/* JOKE BOX */

.joke-box{

    min-height:160px;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px;

    border-radius:20px;

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.1);

    box-shadow:
        inset 0 0 10px rgba(255,255,255,0.1),
        0 0 20px rgba(0,255,255,0.2);

    margin-bottom:30px;
}

#joke{

    font-size:24px;

    line-height:1.7;
}

/* BUTTONS */

.buttons{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:30px;
}

button{

    padding:12px 22px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    transition:0.3s;

    color:white;
}

button:hover{

    transform:translateY(-4px) scale(1.05);
}

/* INDIVIDUAL BUTTON COLORS */

#generateBtn{

    background:#00c3ff;

    box-shadow:
        0 0 10px #00c3ff,
        0 0 25px #00c3ff;
}

#copyBtn{

    background:#00ff99;

    box-shadow:
        0 0 10px #00ff99,
        0 0 25px #00ff99;
}

#voiceBtn{

    background:#8b5cf6;

    box-shadow:
        0 0 10px #8b5cf6,
        0 0 25px #8b5cf6;
}

#favBtn{

    background:#ff0080;

    box-shadow:
        0 0 10px #ff0080,
        0 0 25px #ff0080;
}


#themeBtn{

    background:white;

    color:black;
}

/* FAVORITES */

.favorites h2{

    margin-bottom:15px;
}

#favList{

    list-style:none;
}

#favList li{

    background:rgba(255,255,255,0.05);

    padding:15px;

    border-radius:12px;

    margin-bottom:10px;

    border:1px solid rgba(255,255,255,0.1);
}

/* LIGHT MODE */

.light-mode{

    background:linear-gradient(135deg,#f5f7fa,#c3cfe2);
}

.light-mode .container{

    background:white;

    color:black;

    box-shadow:none;
}

.light-mode .joke-box{

    background:#f1f1f1;
}

.light-mode #favList li{

    background:#f1f1f1;
}

/* ANIMATIONS */

@keyframes moveGlow1{

    from{
        transform:translate(0,0);
    }

    to{
        transform:translate(80px,80px);
    }
}

@keyframes moveGlow2{

    from{
        transform:translate(0,0);
    }

    to{
        transform:translate(-80px,-80px);
    }
}

@keyframes moveLine{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(120vw);
    }
}

/* RESPONSIVE */

@media(max-width:700px){

    h1{
        font-size:30px;
    }

    #joke{
        font-size:20px;
    }

    .buttons{
        justify-content:center;
    }
}