Changed around line 1
+ :root {
+ --primary-color: hsl(200, 50%, 50%);
+ --secondary-color: hsl(200, 70%, 70%);
+ --background-color: hsl(200, 10%, 10%);
+ --text-color: hsl(200, 10%, 90%);
+ }
+
+ body {
+ font-family: 'Arial', sans-serif;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ margin: 0;
+ padding: 20px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ min-height: 100vh;
+ }
+
+ header {
+ text-align: center;
+ margin-bottom: 20px;
+ }
+
+ h1 {
+ font-size: 2.5rem;
+ margin: 0;
+ }
+
+ #resetButton {
+ background-color: var(--primary-color);
+ color: var(--text-color);
+ border: none;
+ padding: 10px 20px;
+ border-radius: 5px;
+ cursor: pointer;
+ font-size: 1rem;
+ margin-top: 10px;
+ }
+
+ #resetButton:hover {
+ background-color: var(--secondary-color);
+ }
+
+ #puzzleContainer {
+ display: grid;
+ grid-template-columns: repeat(3, 100px);
+ grid-template-rows: repeat(3, 100px);
+ gap: 10px;
+ margin: 20px auto;
+ }
+
+ .puzzlePiece {
+ background-color: var(--primary-color);
+ color: var(--text-color);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 2rem;
+ border-radius: 10px;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+ }
+
+ .puzzlePiece:hover {
+ background-color: var(--secondary-color);
+ }
+
+ .puzzlePiece.empty {
+ background-color: transparent;
+ cursor: default;
+ }
+
+ #victoryMessage {
+ font-size: 1.5rem;
+ color: hsl(120, 50%, 50%);
+ margin-top: 20px;
+ display: none;
+ }
+
+ #victoryMessage.show {
+ display: block;
+ }
+
+ @media (max-width: 400px) {
+ #puzzleContainer {
+ grid-template-columns: repeat(3, 80px);
+ grid-template-rows: repeat(3, 80px);
+ }
+
+ .puzzlePiece {
+ font-size: 1.5rem;
+ }
+ }