/* General Page Styling */
body {
    font-family: 'Segoe UI Light', sans-serif;
    background: linear-gradient(to bottom, #ffffff, #e0f7ff);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Animated Gradient Waves */
body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 212, 255, 0.5));
    opacity: 0.8;
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 50% 20px;
    animation: waveAnimation 6s infinite alternate ease-in-out;
}

@keyframes waveAnimation {
    0% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(-5px);
    }
}

/* Word Display */
/* Word Container */


.category {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
}
/* Word Container */
#adjectives {
    display: flex;
    flex-wrap: wrap; /* Allows words to wrap into new rows */
    justify-content: center;
    gap: 20px;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}




/* Refresh Button */
#refresh-btn {
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.refresh-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.word-check-active .refresh-btn {
    display: none;
}


@keyframes fadeInWords {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Individual Word Box */
.adjective-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    animation: fadeInWords 0.5s ease-in-out forwards;
    min-width: 120px;
    flex: 1 1 150px; /* Allows flexibility in sizing while maintaining structure */
}

.adjective-container:hover {
    transform: scale(1.05);
}

.category {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
}

.word {
    font-size: 22px;
    font-weight: bold;
    text-transform: capitalize;
    color: #333;
}



.category {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
}

.word {
    font-size: 22px;
    font-weight: bold;
    text-transform: capitalize;
    color: #333;
}

/* Quiz System */
.quiz-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: 20px auto;
    animation: fadeIn 0.5s ease-in-out;
}

.quiz-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.quiz-input {
    width: 80%;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.quiz-input.correct {
    border-color: green;
}

.quiz-input.wrong {
    border-color: red;
}

.quiz-btn {
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.quiz-btn.quit {
    background: linear-gradient(90deg, #ff4b5c, #ff757f);
}

.quiz-btn:hover {
    opacity: 0.8;
}

.quiz-error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.quiz-progress {
    font-size: 14px;
    margin-top: 10px;
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide Elements */
.hidden {
    display: none;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
