| | body { |
| | font-family: 'Lilita One', cursive; |
| | display: flex; |
| | flex-direction: column; |
| | align-items: center; |
| | background-color: #a0e7e5; |
| | color: #004d40; |
| | padding: 15px; |
| | margin: 0; |
| | } |
| |
|
| | h1 { |
| | color: #ff6f61; |
| | text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1); |
| | margin-bottom: 5px; |
| | font-size: 2em; |
| | } |
| |
|
| | p#prompt { |
| | margin-bottom: 10px; |
| | font-size: 1em; |
| | text-align: center; |
| | } |
| |
|
| | |
| | #score-display { |
| | font-size: 1.2em; |
| | font-weight: bold; |
| | color: #1a237e; |
| | background-color: #e8eaf6; |
| | padding: 5px 15px; |
| | border-radius: 10px; |
| | margin-bottom: 10px; |
| | border: 2px solid #5c6bc0; |
| | } |
| |
|
| | #instructions { |
| | background-color: #fff3cd; |
| | padding: 8px 15px; |
| | border-radius: 15px; |
| | border: 3px dashed #f5a623; |
| | font-size: 1.1em; |
| | margin-bottom: 15px; |
| | text-align: center; |
| | box-shadow: 0 3px 5px rgba(0,0,0,0.1); |
| | } |
| |
|
| | #instructions strong { color: #d9534f; font-size: 1.1em; } |
| | #instructions #item-name { color: #00796b; font-style: italic; } |
| |
|
| |
|
| | |
| | #game-area { |
| | display: flex; |
| | align-items: flex-start; |
| | margin-bottom: 0; |
| | } |
| |
|
| | |
| | #y-axis-labels { |
| | display: flex; |
| | flex-direction: column-reverse; |
| | margin-right: 5px; |
| | padding-top: 0; |
| | flex-shrink: 0; |
| | |
| | } |
| |
|
| | |
| | #x-axis-container { |
| | display: flex; |
| | |
| | margin-top: 5px; |
| | } |
| |
|
| | |
| | #x-axis-labels { |
| | display: flex; |
| | margin-left: calc(20px + 5px); |
| | flex-shrink: 0; |
| | |
| | } |
| |
|
| | |
| | .axis-label { |
| | display: flex; |
| | justify-content: center; |
| | align-items: center; |
| | font-weight: bold; |
| | color: #5d4037; |
| | flex-shrink: 0; |
| | box-sizing: border-box; |
| | |
| | } |
| | .y-axis-label { width: 20px; } |
| | .x-axis-label { height: 20px; } |
| |
|
| |
|
| | |
| | #grid-container { |
| | |
| | border: 3px solid #8b4513; |
| | background-color: #fdf5e6; |
| | padding: 0; |
| | position: relative; |
| | box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2); |
| | |
| | flex-shrink: 0; |
| | } |
| |
|
| | |
| | .grid-cell { |
| | |
| | border: 1px solid #bcaaa4; |
| | box-sizing: border-box; |
| | cursor: pointer; |
| | display: flex; |
| | justify-content: center; |
| | align-items: center; |
| | font-size: 1.5em; |
| | color: black; |
| | position: relative; |
| | transition: background-color 0.2s ease; |
| | user-select: none; |
| | -webkit-user-select: none; |
| | -moz-user-select: none; |
| | overflow: hidden; |
| | } |
| | |
| | .grid-cell:empty { |
| | color: transparent; |
| | } |
| |
|
| | |
| | .grid-cell:hover:not(.found-item) { |
| | background-color: #d7ccc8; |
| | } |
| |
|
| | |
| | .grid-cell.just-found { |
| | background-color: #a5d6a7 !important; |
| | animation: pulse 0.5s; |
| | } |
| | |
| | .grid-cell.found-item { |
| | background-color: #c8e6c9; |
| | cursor: not-allowed; |
| | } |
| |
|
| | |
| | .grid-cell.incorrect { |
| | background-color: #ef9a9a !important; |
| | animation: shake 0.5s; |
| | } |
| |
|
| | |
| | @keyframes shake { |
| | 0%, 100% { transform: translateX(0); } |
| | 25% { transform: translateX(-4px); } |
| | 75% { transform: translateX(4px); } |
| | } |
| | @keyframes pulse { |
| | 0% { transform: scale(1); } |
| | 50% { transform: scale(1.1); } |
| | 100% { transform: scale(1); } |
| | } |
| |
|
| | |
| | #feedback { |
| | margin-top: 15px; |
| | font-size: 1.2em; |
| | font-weight: bold; |
| | min-height: 25px; |
| | text-align: center; |
| | } |
| | #feedback.correct-feedback { color: #2e7d32; } |
| | #feedback.incorrect-feedback { color: #c62828; } |