/* Base styles */
body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Set a max-width for larger screens */
    margin: 40px auto;
    text-align: center;
}

h1.text-center, h2, h3 {
    text-align: center;
    color: #ff9800; /* Vibrant orange for h1 and default for h2, h3 */
    margin-bottom: 30px; /* Default margin for all headings */
}

h1.text-center {
    margin-bottom: 40px; /* Additional margin for h1 */
    text-shadow: 1px 1px 0px #fff;
}

h3 {
    color: #66bb6a; /* Soft green */
}

/* Button styles */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin: 5px 0;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    width: 100%;
}

.btn:hover {
    opacity: 0.8;
}

.btn-outline-primary {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-primary {
    background-color: #42a5f5;
    border-color: #0056b3;
    color: white;
}

/* Results and quiz styles */
.results-container {
    margin-top: 20px;
}

.result-item {
    background-color: #fafafa;
    border-left: 5px solid;
    padding: 10px;
    margin-bottom: 10px;
}

.correct-answer {
    border-color: #66bb6a;
}

.incorrect-answer {
    border-color: #ef5350;
}

.question, .user-answer, .correct-message, .text-success, .incorrect-message, .text-danger {
    font-weight: bold;
}

.user-answer {
    margin-bottom: 0;
}

.correct-message, .text-success {
    color: #66bb6a;
}

.incorrect-message, .text-danger {
    color: #ef5350;
}

.score-highlight {
    font-size: 2em;
    color: #ff9800;
    text-shadow: 2px 2px #fff;
    margin: 20px 0;
}

/* Card styles */
.card-header, .card-body, .card, .word-grid, .word-card, .start-button {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.word-card {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.start-button {
    margin-top: 30px;
}

/* Quiz form styles */
#quizForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-input-group {
    margin-top: 30px;
    margin-bottom: 30px;
}

.word-input {
    flex-grow: 1;
    margin-right: 10px; /* Add some spacing */
}

.listen-again-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
}

.btn-success {
    margin-top: 20px; /* Align button vertically */
}

.hidden {
    display: none;
}

/* Submit button styles */
.submit-results-btn {
    background-color: #ffc107; /* Bootstrap warning color */
    border-color: #ffc107;
    color: #ffffff;
}

.submit-results-btn:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* Congratulations message styles */
#congratulations {
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
