
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

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

#result {
    width: 90%;
    max-width: 540px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
#container{
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    width: 700px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s ease;
}
#container:hover{
  transform: scale(1.03);
}

h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    margin-top: 10px;
    color: #333;
    text-align: center;
}

#topic {
    width: 90%;
    padding: 14px 20px;
    font-size: 1.3rem;
    border: 3px solid #ccc;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#topic:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

#generateBtn {
    width: 95%;
    padding: 14px;
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background-color: #4a90e2;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
#generateBtn:hover {
    background-color: #357ab8;
    transform: translateY(-2px);
}

#result {
    margin-top: 50px;
    width: 300%;
    text-align: center;
    margin-left: 40px;
    margin-bottom: 20px;
    border-radius: 20px;
}

#❓question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

#💡answer {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 600px) {
    #resulta {
        padding: 25px;
    }
    #❓question {
        font-size: 1.2rem;
    }
    #💡answer {
        font-size: 1rem;
    }
}