/* Center the Word Generator Box */
#word-generator {
    text-align: center;
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
}

#word-generator:hover {
    transform: scale(1.02);
}

/* Category Dropdown */
#word-category {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#word-category:hover {
    background: #ebebeb;
}

/* Generate Button */
#generate-word {
    background: #28a745; /* Green color */
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    display: block;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#generate-word:hover {
    background: #218838;
    transform: scale(1.05);
}

#generate-word:active {
    transform: scale(0.95);
}

/* Word Display Styling */
#generated-word {
    margin-top: 25px;
    font-size: 30px;
    font-weight: bold;
    color: #007bff; /* Blue color */
    background: rgba(0, 123, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

/* Slide-in Effect */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 600px) {
    #word-generator {
        max-width: 90%;
        padding: 20px;
    }

    #generate-word {
        font-size: 18px;
        padding: 12px;
    }

    #generated-word {
        font-size: 26px;
    }
}
