* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

header {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #4CAF50;
}

header h1 {
    color: #4CAF50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

main {
    padding: 2rem;
}

.tool-section {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-container {
    margin-bottom: 1.5rem;
}

.input-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.input-container input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: monospace;
}

.input-container input:focus {
    outline: none;
    border-color: #45a049;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.hint {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #555;
}

.filter-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
}

.filter-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.buttons-container button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.buttons-container button:hover {
    background: #45a049;
}

.clear-btn {
    background: #f44336 !important;
}

.clear-btn:hover {
    background: #da190b !important;
}

.results-container {
    margin-top: 2rem;
}

.results-container h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#word-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 5px;
}

.word-length-group {
    margin-bottom: 2rem;
}

.word-length-group h3 {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.word-item {
    background: white;
    border: 1px solid #ddd;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.word-item .word-text {
    color: #333;
    font-size: 1.1rem;
}

.word-item .word-points {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.9rem;
}

.content-section {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-section h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #555;
}

.content-section ol, .content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

.content-section a {
    color: #4CAF50;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .input-container input {
        font-size: 1.2rem;
    }
    
    .buttons-container {
        flex-direction: column;
    }
    
    .buttons-container button {
        width: 100%;
    }
    
    .words-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}