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

body {
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.background-blobs {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: move 10s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(-50%, -50%);
    }

    to {
        transform: translate(50%, 50%);
    }
}

.joke-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

#jokeContainer {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.joke-text {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

#btn {
    width: 100%;
    padding: 16px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

#btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

#btn:active {
    transform: scale(0.98);
}

footer {
    margin-top: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .joke-card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .joke-text {
        font-size: 1.1rem;
    }
}
@media (max-height: 500px) {
    body { align-items: flex-start; }
    .joke-card { margin-top: 20px; }
}