/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styling */
body {
    font-family: 'Merriweather', serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Heading styling */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

/* Main content container */
main {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Controls (dropdowns) */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.controls div {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
}

select {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #3498db;
}

/* Word container */
#word-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 6px;
}

#generatedWord {
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 10px;
    text-align: center;
}

#pronunciation {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 10px;
    text-align: left; /* Changed from center to left */
}

#wordDefinition {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
/* Add to styles.css */
#definition-game-container {
    max-width: 600px;
    margin: 0 auto;
}

#definition-options label {
    display: block;
    margin: 0.5rem 0;
}

#game-message {
    color: #333;
    font-weight: bold;
}

/* Add to styles.css */
#mini-game-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    max-width: 300px;
    margin: 0 auto;
}

#mini-game-board div {
    border: 2px solid #ccc;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
}

#mini-game-input {
    text-transform: uppercase;
}

#otherForms,
#amalgamations,
#likedWords {
    list-style: none;
    padding-left: 20px;
}

#otherForms li,
#amalgamations li,
#likedWords li {
    margin-bottom: 5px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permutation,
.liked-word {
    cursor: pointer;
    color: #1e90ff;
    text-decoration: underline;
}

.permutation:hover,
.liked-word:hover {
    color: #1c86ee;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    color: #ff0000;
}

.like-btn.liked {
    color: #ff0000;
}

.like-btn:hover {
    color: #cc0000;
}

/* Buttons container */
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-generate {
    background-color: #3498db;
    color: #fff;
}

.btn-generate:hover {
    background-color: #2980b9;
}

.btn-copy {
    background-color: #2ecc71;
    color: #fff;
}

.btn-copy:hover {
    background-color: #27ae60;
}

.btn-play {
    background-color: #e67e22;
    color: #fff;
}

.btn-play:hover {
    background-color: #d35400;
}

.btn-clear {
    background-color: #e74c3c;
    color: #fff;
}

.btn-clear:hover {
    background-color: #c0392b;
}

/* Game-specific styles */
#gameArea {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

#score,
#question {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #34495e;
}

#answers {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#answers li {
    margin-bottom: 10px;
}

.answer-btn {
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.answer-btn:hover {
    background-color: #ecf0f1;
}

.answer-btn.correct {
    background-color: #2ecc71;
    color: #fff;
}

.answer-btn.incorrect {
    background-color: #e74c3c;
    color: #fff;
}

#feedback {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.feedback.correct {
    color: #2ecc71;
}

.feedback.incorrect {
    color: #e74c3c;
}

#loading-game {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Guess the Real Word game styles */
#game-play {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#choices-area {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#choices-area li {
    margin-bottom: 10px;
}

.real-word-btn {
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.real-word-btn:hover {
    background-color: #ecf0f1;
}

.real-word-btn.correct {
    background-color: #2ecc71;
    color: #fff;
}

.real-word-btn.incorrect {
    background-color: #e74c3c;
    color: #fff;
}

.real-word-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#feedback-area {
    margin-bottom: 20px;
}

#feedbackText {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#score-area {
    margin-bottom: 20px;
}

#game-over {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

/* Footer styling */
footer.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #ccc;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: Arial, sans-serif;
    min-height: 50px;
}

footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    gap: 10px;
}

footer .social-icons {
    display: flex;
    align-items: center;
}

footer .social-icons a {
    color: #ccc;
    margin: 0 5px;
    text-decoration: none;
    font-size: 16px;
}

footer .social-icons a:hover {
    color: #fff;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .controls {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    #generatedWord {
        font-size: 1.5rem;
    }
    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
