* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    margin: 0;
    text-align: center; 
}

.container {
    max-width: 70rem; 
    margin: 0 auto; 
    padding: 2rem; 
}

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

.word-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.word-item:hover {
    background: #f0f0f0;
    border-color: #c0c0c0;
}

h2 {
    text-align: center; 
    margin-top: 2rem; 
    color: #6b46d4; 
}

h3 {
    text-align: center; 
    margin-top: 1rem; 
}

section {
    margin-top: 2rem;
    text-align: center; 
}

.faq-answer {
    text-align: left; 
    margin-top: 0.5rem; 
}

#wordModal {
    display: none;
}

#wordModal.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.bg-black {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-white {
    background-color: white;
}

.text-purple-700 {
    color: #6b46d4; 
}

.hover\:bg-purple-700:hover {
    background-color: #4c51bf; 
}

#closeModal {
    background: #6b46d4;
    color: white;
    padding: 0.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

#closeModal:hover {
    background: #4c51bf;
}

input[type="text"] {
    width: 100%; 
    padding: 0.75rem; 
    border: 1px solid #ccc; 
    border-radius: 0.375rem; 
    transition: border-color 0.3s; 
}

input[type="text"]:focus {
    border-color: #6b46d4; 
    outline: none; 
}

footer {
    background-color: #4a5568; 
    color: white; 
    text-align: center; 
    padding: 1rem 0; 
}
.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
