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/public/tablet.css
2025-12-16 14:57:51 +01:00

443 lines
7.1 KiB
CSS

/* Tablet-Optimized Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
height: 100vh;
overflow: hidden;
}
.tablet-container {
width: 100vw;
height: 100vh;
background: white;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Header */
.tablet-header {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
padding: 12px 20px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
flex-shrink: 0;
}
.menu-btn {
background: rgba(255,255,255,0.2);
border: none;
color: white;
width: 44px;
height: 44px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
cursor: pointer;
transition: all 0.2s;
}
.menu-btn:hover {
background: rgba(255,255,255,0.3);
}
.header-center {
text-align: center;
}
.header-center h1 {
font-size: 22px;
font-weight: 700;
margin-bottom: 2px;
}
.level {
font-size: 14px;
font-weight: 600;
opacity: 0.9;
}
.header-right {
display: flex;
gap: 12px;
}
.stat {
display: flex;
align-items: center;
gap: 6px;
background: rgba(255,255,255,0.2);
padding: 8px 14px;
border-radius: 20px;
font-weight: 600;
font-size: 16px;
}
/* Main Content - Side by Side Layout */
.main-content {
flex: 1;
display: flex;
overflow: hidden;
background: #f8f9fa;
}
/* Grid Area (Left) */
.grid-area {
flex: 1;
display: flex;
flex-direction: column;
padding: 15px;
overflow: hidden;
}
.progress-bar-container {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
flex-shrink: 0;
}
.progress-bar {
flex: 1;
height: 10px;
background: #e9ecef;
border-radius: 5px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #48bb78, #38a169);
width: 0%;
transition: width 0.3s ease;
}
.progress-text {
font-size: 14px;
font-weight: 600;
color: #4a5568;
min-width: 50px;
}
.grid-section {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: white;
border-radius: 12px;
padding: 15px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.grid-wrapper {
display: grid;
background: #a0aec0;
padding: 6px;
border-radius: 8px;
gap: 2px;
}
.grid-cell {
background: white;
border: 1px solid #cbd5e0;
display: flex;
align-items: center;
justify-content: center;
position: relative;
font-weight: bold;
}
.grid-cell.clue-cell {
background: linear-gradient(135deg, #4a5568, #2d3748);
color: white;
padding: 3px;
font-size: 9px;
font-weight: 600;
line-height: 1.2;
text-align: left;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
overflow: hidden;
pointer-events: none;
}
.clue-text {
font-size: 9px;
line-height: 1.2;
word-wrap: break-word;
width: 100%;
}
.arrow {
position: absolute;
color: #4299e1;
font-weight: bold;
font-size: 16px;
}
.arrow-right {
right: 3px;
top: 50%;
transform: translateY(-50%);
}
.grid-cell.blocked-cell {
background: #2d3748;
border-color: #2d3748;
}
.grid-cell.input-cell {
background: white;
transition: all 0.2s;
}
.grid-cell.input-cell:hover {
background: #f7fafc;
border-color: #4299e1;
}
.grid-cell.input-cell.active {
background: #ebf8ff;
border-color: #3182ce;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}
.grid-cell.correct {
background: #c6f6d5;
border-color: #48bb78;
}
.grid-cell.incorrect {
background: #fed7d7;
border-color: #f56565;
}
.grid-cell input {
width: 100%;
height: 100%;
border: none;
background: transparent;
text-align: center;
font-weight: bold;
color: #2d3748;
text-transform: uppercase;
font-size: inherit;
outline: none;
}
/* Controls Sidebar (Right) */
.controls-sidebar {
width: 180px;
background: white;
padding: 15px;
display: flex;
flex-direction: column;
gap: 12px;
border-left: 1px solid #e9ecef;
flex-shrink: 0;
}
.control-btn {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border: none;
border-radius: 12px;
padding: 16px 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: all 0.3s;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.control-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.control-btn:active {
transform: translateY(0);
}
.control-btn i {
font-size: 24px;
}
.control-btn.primary {
background: linear-gradient(135deg, #48bb78, #38a169);
}
.control-btn.hint {
background: linear-gradient(135deg, #ed8936, #dd6b20);
}
/* Side Menu */
.side-menu {
position: fixed;
top: 0;
left: -280px;
width: 280px;
height: 100vh;
background: white;
box-shadow: 2px 0 15px rgba(0,0,0,0.2);
transition: left 0.3s ease;
z-index: 1000;
}
.side-menu.active {
left: 0;
}
.menu-header {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.close-menu {
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
}
.menu-items {
padding: 15px 0;
}
.menu-item {
display: flex;
align-items: center;
gap: 15px;
padding: 15px 20px;
border: none;
background: none;
width: 100%;
text-align: left;
cursor: pointer;
font-size: 16px;
transition: background 0.2s;
}
.menu-item:hover {
background: #f8f9fa;
}
.menu-item i {
width: 20px;
color: #4facfe;
}
/* Modals */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
z-index: 2000;
justify-content: center;
align-items: center;
padding: 20px;
}
.modal.active {
display: flex;
}
.modal-content {
background: white;
border-radius: 20px;
padding: 30px;
text-align: center;
max-width: 400px;
width: 100%;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.success-icon {
font-size: 64px;
color: #48bb78;
margin-bottom: 16px;
}
.modal-content h2 {
color: #2d3748;
margin-bottom: 10px;
font-size: 24px;
}
.modal-content h3 {
color: #2d3748;
margin-bottom: 16px;
font-size: 20px;
}
.modal-content p {
color: #4a5568;
margin-bottom: 20px;
font-size: 16px;
}
.modal-btns {
display: flex;
gap: 10px;
margin-top: 20px;
}
.btn-primary {
background: linear-gradient(135deg, #48bb78, #38a169);
color: white;
border: none;
border-radius: 10px;
padding: 14px 24px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
flex: 1;
transition: transform 0.2s;
}
.btn-secondary {
background: #e2e8f0;
color: #4a5568;
border: none;
border-radius: 10px;
padding: 14px 24px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
flex: 1;
transition: transform 0.2s;
}
.btn-primary:hover,
.btn-secondary:hover {
transform: scale(1.02);
}