Across

1. Study of ancient human history through material remains (10)

2. Ancient mound often created by human activity, found in many archaeological sites (5)

3. Underground chamber or burial place, often elaborately decorated in ancient cultures (6)

4. The period before written records (9)

5. A stone tool used by prehistoric humans (6)

6. Archaeological layer of soil or rock, revealing information about historical periods (8)

7. Egyptian king's tomb, famously discovered by Howard Carter in 1922 (9)

Down

1. Material from which prehistoric tools were often made, created by striking a rock (5)

2. Cultural artifact often found in archaeological sites, used for eating or drinking (5)

3. Study of human culture through the examination of artifacts and other physical remains (12)

4. Large, prehistoric stone structure, like those found at Stonehenge (9)

5. Ancient writing surface made from reeds, used by Egyptians (7)

6. Branch of archaeology focused on ancient animals and human interaction with them (10)

7. A written symbol or picture used in ancient Egyptian writing (8)

#crossword {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-direction: column;
    align-items: center;
}

#crossword-grid {
    border-collapse: collapse;
    margin-bottom: 20px;
}

#crossword-grid td {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    text-align: center;
}

#crossword-grid input[type="text"] {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 18px;
    border: none;
}

#clues {
    max-width: 400px;
}
<script>
    document.addEventListener('DOMContentLoaded', function() {
        const solution = {
            across: [
                { index: 0, word: 'ARCHAEOLOGY' },
                { index: 1, word: 'TELL' },
                { index: 2, word: 'CRYPT' },
                { index: 3, word: 'PREHISTORY' },
                { index: 4, word: 'CHISEL' },
                { index: 5, word: 'STRATIGRAPHY' },
                { index: 6, word: 'TUTANKHAMUN' },
            ],
            down: [
                { index: 0, word: 'FLINT' },
                { index: 1, word: 'BOWL' },
                { index: 2, word: 'ANTHROPOLOGY' },
                { index: 3, word: 'MEGALITH' },
                { index: 4, word: 'PAPYRUS' },
                { index: 5, word: 'ZOOARCHAEOLOGY' },
                { index: 6, word: 'HIEROGLYPH' },
            ]
        };

        function checkSolution() {
            solution.across.forEach((item, idx) => {
                const cells = document.querySelectorAll(`#crossword-grid input[data-across="${idx}"]`);
                const userWord = Array.from(cells).map(cell => cell.value.toUpperCase()).join('');
                if (userWord === item.word) {
                    cells.forEach(cell => cell.style.backgroundColor = '#b4e197');  // Correct answer
                } else {
                    cells.forEach(cell => cell.style.backgroundColor = '#e19797');  // Incorrect answer
                }
            });

            solution.down.forEach((item, idx) => {
                const cells = document.querySelectorAll(`#crossword-grid input[data-down="${idx}"]`);
                const userWord = Array.from(cells).map(cell => cell.value.toUpperCase()).join('');
                if (userWord === item.word) {
                    cells.forEach(cell => cell.style.backgroundColor = '#b4e197');  // Correct answer
                } else {
                    cells.forEach(cell => cell.style.backgroundColor = '#e19797');  // Incorrect answer
                }
            });
        }

        // Add event listener to each cell
        document.querySelectorAll('#crossword-grid input').forEach(input => {
            input.addEventListener('input', checkSolution);
        });
    });
</script>