@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

body{
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Card */
.wrapper{
    width: 420px;
    max-width: 100%;
    background: #ffffff;
    padding: 35px 30px 40px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
}

/* Icon */
.joke-icon{
    font-size: 70px;
    color: #6366f1;
    margin-bottom: 15px;
}

/* Joke text */
#wrapper p,
#joke{
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin: 25px 0 30px;
    opacity: 1;
}

/* Fade animation */
.fade{
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}

@keyframes fadeIn{
    to{
        opacity: 1;
    }
}

/* Button */
button{
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79,70,229,0.4);
}

button:active{
    transform: scale(0.96);
}

/* Mobile spacing */
@media (max-width: 480px){
    body{
        align-items: flex-start;
        padding-top: 60px;
    }

    .wrapper{
        padding: 30px 22px 35px;
    }

    .joke-icon{
        font-size: 60px;
    }

    button{
        width: 100%;
    }
}
