This repository has been archived on 2025-12-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
word/style.css
2025-12-15 22:33:12 +01:00

473 lines
7.4 KiB
CSS

/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
/* App Container */
.app-container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
/* Header */
.app-header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 20px 30px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.app-header h1 {
color: #4a5568;
font-size: 2rem;
font-weight: 700;
}
.header-controls {
display: flex;
gap: 15px;
}
/* Buttons */
.btn {
padding: 12px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
}
.btn-primary {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #e2e8f0;
color: #4a5568;
}
.btn-secondary:hover {
background: #cbd5e0;
}
.btn-success {
background: linear-gradient(135deg, #48bb78, #38a169);
color: white;
}
.btn-warning {
background: linear-gradient(135deg, #ed8936, #dd6b20);
color: white;
}
.btn-danger {
background: linear-gradient(135deg, #f56565, #e53e3e);
color: white;
}
.btn-help {
background: linear-gradient(135deg, #4299e1, #3182ce);
color: white;
padding: 8px 15px;
font-size: 0.9rem;
}
/* Main Content */
.main-content {
display: grid;
grid-template-columns: 1fr 350px;
gap: 30px;
align-items: start;
}
/* Puzzle Container */
.puzzle-container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
/* Crossword Grid */
.crossword-grid {
display: grid;
gap: 2px;
background: #2d3748;
padding: 10px;
border-radius: 10px;
width: fit-content;
margin: 0 auto;
}
.grid-cell {
width: 40px;
height: 40px;
border: 2px solid #e2e8f0;
background: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 18px;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
}
.grid-cell:hover {
background: #f7fafc;
border-color: #4299e1;
}
.grid-cell.active {
background: #ebf8ff;
border-color: #3182ce;
box-shadow: 0 0 10px rgba(66, 153, 225, 0.3);
}
.grid-cell.correct {
background: #c6f6d5;
border-color: #48bb78;
}
.grid-cell.incorrect {
background: #fed7d7;
border-color: #f56565;
}
/* Clue Cell Styles */
.clue-cell {
background: linear-gradient(135deg, #4a5568, #2d3748);
color: white;
font-size: 8px;
font-weight: 600;
text-align: center;
padding: 2px;
line-height: 1.2;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
.clue-cell.horizontal {
border-right: 3px solid #4299e1;
}
.clue-cell.vertical {
border-bottom: 3px solid #4299e1;
}
.clue-text {
font-size: 7px;
line-height: 1.1;
word-wrap: break-word;
text-align: left;
}
.arrow {
position: absolute;
font-size: 12px;
color: #4299e1;
font-weight: bold;
}
.arrow-right {
right: 2px;
top: 50%;
transform: translateY(-50%);
}
.arrow-down {
bottom: 2px;
left: 50%;
transform: translateX(-50%);
}
/* Input Cell Styles */
.input-cell {
background: white;
border: 2px solid #cbd5e0;
}
.input-cell input {
width: 100%;
height: 100%;
border: none;
background: transparent;
text-align: center;
font-weight: bold;
font-size: 18px;
color: #2d3748;
text-transform: uppercase;
}
.input-cell input:focus {
outline: none;
background: #ebf8ff;
}
/* Blocked Cell */
.blocked-cell {
background: #2d3748;
border: 2px solid #2d3748;
}
/* Sidebar */
.sidebar {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Solver Tools */
.solver-tools, .game-controls {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.solver-tools h3 {
color: #4a5568;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.solver-section {
margin-bottom: 20px;
}
.solver-section h4 {
color: #2d3748;
margin-bottom: 10px;
font-size: 1rem;
}
.solver-section input {
width: 100%;
padding: 10px;
border: 2px solid #e2e8f0;
border-radius: 6px;
margin-bottom: 10px;
font-size: 14px;
}
.solver-section input:focus {
outline: none;
border-color: #4299e1;
}
.solver-results {
max-height: 100px;
overflow-y: auto;
background: #f7fafc;
border-radius: 6px;
padding: 10px;
margin-top: 10px;
}
.solver-result {
padding: 5px 0;
cursor: pointer;
border-bottom: 1px solid #e2e8f0;
}
.solver-result:hover {
background: #ebf8ff;
}
.solver-result:last-child {
border-bottom: none;
}
/* Progress Section */
.progress-section h4 {
color: #2d3748;
margin-bottom: 10px;
}
.progress-bar {
width: 100%;
height: 10px;
background: #e2e8f0;
border-radius: 5px;
overflow: hidden;
margin-bottom: 10px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #48bb78, #38a169);
width: 0%;
transition: width 0.3s ease;
}
#progressText {
font-size: 14px;
color: #4a5568;
font-weight: 600;
}
/* Game Controls */
.game-controls {
display: flex;
flex-direction: column;
gap: 12px;
}
.game-controls .btn {
width: 100%;
justify-content: center;
}
/* Modal */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: white;
margin: 15% auto;
padding: 30px;
border-radius: 15px;
width: 80%;
max-width: 500px;
position: relative;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover {
color: #000;
}
.settings-group {
margin-bottom: 20px;
}
.settings-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.settings-group select {
width: 100%;
padding: 10px;
border: 2px solid #e2e8f0;
border-radius: 6px;
}
/* Responsive Design */
@media (max-width: 1024px) {
.main-content {
grid-template-columns: 1fr;
}
.sidebar {
order: -1;
}
}
@media (max-width: 768px) {
.app-header {
flex-direction: column;
gap: 15px;
text-align: center;
}
.header-controls {
justify-content: center;
}
.grid-cell {
width: 35px;
height: 35px;
font-size: 16px;
}
.clue-text {
font-size: 6px;
}
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.crossword-grid {
animation: fadeIn 0.5s ease-out;
}
/* Success Animation */
@keyframes success {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
.correct {
animation: success 0.3s ease;
}
/* Loading Animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #4299e1;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}