JSFiddle - React, Tailwind, and code Playground
by dledle2
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Advanced Word Search Generator v05 Fixed</title>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<style>
body { font-family: Arial, sans-serif; padding: 20px; background: #f0f0f0; }
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.control-group { display: flex; flex-direction: column; gap: 5px; padding: 10px; background: white; border-radius: 5px; }
#exportContainer { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 20px 0; position: relative; }
.grid { display: grid; gap: 0; background: white; position: relative; }
.cell { display: flex; justify-content: center; align-items: center; box-sizing: border-box; position: relative; }
.error { color: red; margin: 10px 0; padding: 10px; border: 1px solid red; display: none; }
.visible { display: block; }
button { padding: 10px; margin: 5px 0; cursor: pointer; background: #4CAF50; color: white; border: none; border-radius: 4px; }
button:hover { background: #45a049; }
input, select { padding: 5px; border: 1px solid #ddd; border-radius: 4px; }
.word-list-box { border: 2px solid #333; padding: 15px; border-radius: 8px; background: #f9f9f9; width: fit-content; }
.word-list { display: grid; gap: 5px; margin-top: 10px; }
.word-list-item { padding: 3px 0; text-align: center; }
h3 { margin: 0 0 10px 0; text-align: center; }
.direction-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.direction-group { background: #f8f8f8; padding: 10px; border-radius: 5px; }
.solution-cell { background-color: #e6e6fa; border-radius: 50%; box-shadow: 0 0 2px 1px #9370db; }
.word-highlight {
position: absolute;
border: 3px solid #9370db;
/* The inline style will override the...