training-academy/styles.css

2931 lines
55 KiB
CSS

/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.game-container {
background: white;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
width: 95%;
max-width: 1400px; /* Increased from 800px for larger screens */
min-width: 780px; /* Ensure minimum usable width */
min-height: 600px;
overflow: hidden;
margin: 10px auto; /* Center and add some margin */
}
/* Header */
.game-header {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white;
padding: 20px;
text-align: center;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.game-header h1 {
font-size: 2em;
margin: 0;
}
.tagline {
font-size: 1.2em;
color: #666;
font-style: italic;
margin: 10px 0 20px 0;
opacity: 0.9;
}
/* Compact Timer (top-right corner) */
.timer-compact {
position: absolute;
top: 10px;
right: 80px;
display: flex;
align-items: center;
gap: 5px;
font-size: 0.9em;
background: rgba(0, 0, 0, 0.1);
padding: 5px 10px;
border-radius: 15px;
backdrop-filter: blur(5px);
}
.timer {
font-weight: bold;
font-family: 'Courier New', monospace;
}
.timer-status {
font-size: 0.8em;
opacity: 0.8;
}
/* Compact Music Controls (expandable on hover) */
.music-controls-compact {
position: absolute;
top: 10px;
right: 20px;
}
.music-icon-btn {
background: rgba(0, 0, 0, 0.1);
border: none;
color: white;
font-size: 1.5em;
padding: 8px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(5px);
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
}
.music-icon-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1);
}
/* Expandable Music Panel */
.music-panel-expanded {
position: absolute;
top: 55px;
right: 0;
background: rgba(255, 255, 255, 0.95);
color: #333;
border-radius: 10px;
padding: 15px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s ease;
min-width: 200px;
z-index: 1000;
}
.music-controls-compact:hover .music-panel-expanded {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.music-row {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 10px;
}
.music-row:last-child {
margin-bottom: 0;
}
.music-btn-small {
background: #007bff;
border: none;
color: white;
font-size: 1em;
padding: 6px 10px;
border-radius: 5px;
cursor: pointer;
transition: all 0.2s ease;
min-width: 35px;
}
.music-btn-small:hover {
background: #0056b3;
transform: scale(1.05);
}
.track-dropdown-compact {
background: white;
border: 1px solid #ddd;
border-radius: 5px;
padding: 5px 8px;
font-size: 0.9em;
width: 100%;
cursor: pointer;
}
.volume-control-compact {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
}
.volume-icon {
font-size: 1em;
}
.volume-slider-compact {
flex: 1;
height: 4px;
background: #ddd;
border-radius: 2px;
outline: none;
cursor: pointer;
}
.volume-slider-compact::-webkit-slider-thumb {
appearance: none;
width: 16px;
height: 16px;
background: #007bff;
border-radius: 50%;
cursor: pointer;
}
.volume-percent {
font-size: 0.8em;
min-width: 30px;
text-align: center;
}
.music-status-compact {
text-align: center;
font-size: 0.8em;
color: #666;
font-style: italic;
}
/* Data Management Controls */
.data-controls {
display: flex;
gap: 10px;
margin: 10px 0;
flex-wrap: wrap;
justify-content: center;
}
.data-btn, .btn-secondary {
background: rgba(255, 255, 255, 0.2);
border: 2px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9em;
transition: all 0.3s ease;
}
.data-btn:hover, .btn-secondary:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
/* Statistics Modal */
.modal {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
}
.modal-content {
background: var(--card-bg);
margin: 5% auto;
padding: 0;
border-radius: 16px;
width: 90%;
max-width: 800px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 30px;
border-bottom: 2px solid var(--primary-color);
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: white;
border-radius: 16px 16px 0 0;
}
.modal-header h2 {
margin: 0;
font-size: 1.5em;
}
.close {
font-size: 28px;
font-weight: bold;
cursor: pointer;
opacity: 0.8;
transition: opacity 0.3s ease;
}
.close:hover {
opacity: 1;
transform: scale(1.1);
}
.modal-body {
padding: 30px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 20px;
text-align: center;
transition: all 0.3s ease;
}
.stat-card:hover {
border-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.stat-card h3 {
margin: 0 0 10px 0;
font-size: 1em;
color: var(--text-color);
opacity: 0.8;
}
.stat-value {
font-size: 2.5em;
font-weight: bold;
color: var(--primary-color);
line-height: 1;
}
.stats-actions {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}
.btn-warning {
background: #ff6b35;
border-color: #ff6b35;
}
.btn-warning:hover {
background: #e55a2e;
}
/* Notification System */
.notification {
position: fixed;
top: 20px;
right: 20px;
background: var(--card-bg);
border: 2px solid var(--primary-color);
color: var(--text-color);
padding: 15px 20px;
border-radius: 8px;
font-weight: 500;
transform: translateX(400px);
opacity: 0;
transition: all 0.3s ease;
z-index: 1001;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.notification.show {
transform: translateX(0);
opacity: 1;
}
.notification.success {
border-color: #28a745;
background: rgba(40, 167, 69, 0.1);
}
.notification.error {
border-color: #dc3545;
background: rgba(220, 53, 69, 0.1);
}
.notification.info {
border-color: var(--primary-color);
background: rgba(var(--primary-color-rgb), 0.1);
}
/* Streak Bonus Notification */
.streak-bonus-notification {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
opacity: 0;
background: linear-gradient(135deg, #ff6b35, #f7931e);
color: white;
padding: 20px;
border-radius: 15px;
text-align: center;
box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
z-index: 1002;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.2);
}
.streak-bonus-notification.show {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
.streak-bonus-content {
display: flex;
align-items: center;
gap: 15px;
}
.streak-icon {
font-size: 2.5em;
animation: fireFlicker 1s ease-in-out infinite alternate;
}
.streak-text {
text-align: left;
}
.streak-title {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 5px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.streak-bonus {
font-size: 1em;
opacity: 0.9;
font-weight: 500;
}
@keyframes fireFlicker {
0% { transform: rotate(-2deg) scale(1); }
100% { transform: rotate(2deg) scale(1.05); }
}
/* Streak Milestone Styling */
.streak-stat.streak-milestone {
background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
border-radius: 8px;
padding: 5px 8px;
border: 1px solid rgba(255, 107, 53, 0.3);
animation: streakGlow 2s ease-in-out infinite alternate;
}
@keyframes streakGlow {
0% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.3); }
100% { box-shadow: 0 0 15px rgba(255, 107, 53, 0.5); }
}
.audio-bar:nth-child(4) { animation-delay: 0.6s; }
.audio-bar:nth-child(5) { animation-delay: 0.8s; }
@keyframes audioWave {
0%, 100% { height: 4px; }
50% { height: 16px; }
}
/* Desktop Application Styles */
.desktop-mode .upload-controls {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 10px;
}
.desktop-mode .upload-controls .btn {
flex: 1;
min-width: 180px;
}
.desktop-only {
display: none;
}
.desktop-mode .desktop-only {
display: inline-block;
}
.desktop-feature {
display: none;
}
.desktop-mode .desktop-feature {
display: inline;
}
.web-feature {
display: inline;
}
.desktop-mode .web-feature {
display: none;
}
/* Enhanced button styling for desktop */
.desktop-mode .btn {
padding: 12px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 6px;
transition: all 0.2s ease;
}
.desktop-mode .btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.desktop-mode .btn-primary {
background: linear-gradient(135deg, #007bff, #0056b3);
border: none;
color: white;
}
.desktop-mode .btn-warning {
background: linear-gradient(135deg, #ffc107, #e0a800);
border: none;
color: #212529;
}
/* Desktop-specific upload section */
.desktop-mode .upload-section h3 {
color: var(--primary-color);
margin-bottom: 15px;
font-size: 18px;
display: flex;
align-items: center;
gap: 8px;
}
.desktop-mode .upload-info {
font-size: 13px;
color: var(--text-secondary);
font-style: italic;
margin-top: 8px;
}
/* Responsive design for music controls */
@media (max-width: 768px) {
.game-header {
flex-direction: column;
gap: 15px;
}
.game-header h1 {
font-size: 1.6em;
}
.timer-container {
position: static;
transform: none;
}
.music-controls {
justify-content: center;
gap: 10px;
}
.track-dropdown {
min-width: 120px;
font-size: 0.8em;
}
.volume-control {
padding: 4px 8px;
}
.volume-slider {
width: 60px;
}
.music-status {
display: none; /* Hide on mobile to save space */
}
}
@media (max-width: 480px) {
.music-controls {
flex-wrap: wrap;
justify-content: center;
}
.track-dropdown {
order: 3;
flex-basis: 100%;
margin-top: 5px;
}
}
.timer {
font-family: 'Courier New', monospace;
font-size: 1.5em;
font-weight: bold;
}
.timer-status {
font-size: 0.9em;
opacity: 0.8;
}
/* Screen management */
.screen {
display: none;
padding: 20px;
text-align: center;
min-height: 500px;
}
.screen.active {
display: block;
}
/* Start screen */
#start-screen h2 {
color: #333;
margin-bottom: 15px;
}
#start-screen p {
color: #666;
margin-bottom: 25px;
font-size: 1.1em;
}
/* Theme Selector */
.theme-selector {
margin-bottom: 25px;
}
.theme-label {
display: block;
margin-bottom: 10px;
font-size: 1.1em;
font-weight: 600;
color: #333;
}
.theme-dropdown {
padding: 10px 15px;
font-size: 1em;
border: 2px solid #ddd;
border-radius: 8px;
background: white;
cursor: pointer;
min-width: 200px;
transition: border-color 0.3s ease;
}
.theme-dropdown:hover {
border-color: #007bff;
}
.theme-dropdown:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
/* Task Management Screen */
#task-management-screen h2 {
color: #333;
margin-bottom: 25px;
}
.task-editor-section {
background: #f8f9fa;
border-radius: 10px;
padding: 20px;
margin-bottom: 25px;
}
.task-editor-section h3 {
color: #333;
margin-bottom: 15px;
font-size: 1.2em;
}
.task-input-group {
margin-bottom: 15px;
}
.task-input-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #555;
}
.task-input-group textarea,
.task-input-group select {
width: 100%;
padding: 10px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 1em;
transition: border-color 0.3s ease;
}
.task-input-group textarea:focus,
.task-input-group select:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.task-list-section {
margin-bottom: 25px;
}
.task-list-section h3 {
color: #333;
margin-bottom: 15px;
font-size: 1.2em;
}
.task-tabs {
display: flex;
margin-bottom: 15px;
border-bottom: 2px solid #ddd;
}
.tab-btn {
padding: 10px 20px;
border: none;
background: none;
cursor: pointer;
font-size: 1em;
font-weight: 600;
color: #666;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
}
.tab-btn.active {
color: #007bff;
border-bottom-color: #007bff;
}
.tab-btn:hover {
color: #007bff;
}
.task-list {
display: none;
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 6px;
background: white;
}
.task-list.active {
display: block;
}
.task-item {
padding: 15px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.task-item:last-child {
border-bottom: none;
}
.task-text-display {
flex: 1;
margin-right: 15px;
line-height: 1.4;
}
.task-difficulty-display {
font-size: 0.85em;
color: #666;
margin: 5px 15px 5px 0;
font-weight: bold;
}
.task-actions {
display: flex;
gap: 8px;
}
.btn-small {
padding: 5px 10px;
font-size: 0.85em;
min-width: auto;
}
.management-buttons {
display: flex;
gap: 15px;
justify-content: center;
}
.empty-list {
padding: 40px;
text-align: center;
color: #666;
font-style: italic;
}
/* Task container */
.task-container {
background: #f8f9fa;
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
}
.task-type {
margin-bottom: 15px;
}
#task-type-indicator {
background: #28a745;
color: white;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9em;
font-weight: bold;
}
#task-type-indicator.consequence {
background: #dc3545;
}
.task-image-container {
margin-bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
min-height: max(200px, 25vh); /* Dynamic minimum height based on viewport */
max-height: 85vh; /* Allow container to take up most of screen */
width: 100%; /* Full width for centering */
}
.task-image {
/* Hybrid responsive sizing - scales with viewport but has reasonable limits */
max-width: min(90vw, 1200px); /* 90% of viewport width, capped at 1200px */
max-height: min(70vh, 800px); /* 70% of viewport height, capped at 800px */
min-height: max(200px, 20vh); /* Minimum 200px or 20% of viewport height */
min-width: 250px; /* Prevent images from being too narrow */
/* Maintain aspect ratio and image quality */
width: auto;
height: auto;
object-fit: contain; /* Preserve aspect ratio, fit within bounds */
/* Visual enhancements */
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease; /* Smooth transitions when resizing */
object-fit: cover;
}
.task-text-container {
margin-bottom: 25px;
}
.task-text {
color: #333;
font-size: 1.2em;
line-height: 1.4;
}
/* Task difficulty and points display */
.task-difficulty {
background: rgba(255, 255, 255, 0.8);
padding: 8px 16px;
border-radius: 20px;
font-size: 0.9em;
font-weight: bold;
margin-bottom: 15px;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.task-points {
background: #ffd700;
color: #333;
padding: 6px 12px;
border-radius: 15px;
font-size: 0.8em;
font-weight: bold;
margin-left: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* Buttons */
.action-buttons {
display: flex;
gap: 15px;
justify-content: center;
margin-bottom: 20px;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 6px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
min-width: 100px;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary {
background: #007bff;
color: white;
}
.btn-primary:hover {
background: #0056b3;
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #1e7e34;
}
.btn-warning {
background: #ffc107;
color: #212529;
}
.btn-warning:hover {
background: #e0a800;
}
.btn-info {
background: #17a2b8;
color: white;
}
.btn-info:hover {
background: #117a8b;
}
.btn-danger {
background: #dc3545;
color: white;
position: relative;
}
.btn-danger:hover {
background: #c82333;
}
.btn-danger:disabled {
background: #6c757d;
color: #ffffff;
opacity: 0.65;
cursor: not-allowed;
}
.btn-danger:disabled:hover {
background: #6c757d;
transform: none;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Options Menu Styles */
.options-section {
margin-top: 20px;
position: relative;
}
.btn-tertiary {
background: #6c757d;
color: white;
margin-bottom: 10px;
}
.btn-tertiary:hover {
background: #545b62;
}
.options-menu {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 20px;
margin-top: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.option-item {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #e9ecef;
}
.option-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.option-label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: #495057;
}
.theme-dropdown {
width: 100%;
padding: 8px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
font-size: 0.95em;
}
.data-controls, .other-controls {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.btn-option {
background: #e9ecef;
color: #495057;
padding: 8px 16px;
font-size: 0.9em;
min-width: auto;
}
.btn-option:hover {
background: #dee2e6;
transform: translateY(-1px);
}
.main-actions {
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 20px;
}
.main-actions .btn {
width: 100%;
max-width: 300px;
margin: 0 auto;
}
/* Game Mode Selection */
.game-mode-selection {
background: #f8f9fa;
border-radius: 10px;
padding: 20px;
margin: 20px 0;
border: 2px solid #e0e0e0;
}
.game-mode-selection h3 {
color: #333;
margin-bottom: 15px;
text-align: center;
font-size: 1.2em;
}
.game-mode-options {
display: flex;
flex-direction: column;
gap: 15px;
}
.game-mode-option {
position: relative;
}
.game-mode-option input[type="radio"] {
position: absolute;
opacity: 0;
cursor: pointer;
}
.game-mode-option label {
display: block;
background: white;
border: 2px solid #ddd;
border-radius: 8px;
padding: 15px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.game-mode-option label:hover {
border-color: #4facfe;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}
.game-mode-option input[type="radio"]:checked + label {
border-color: #4facfe;
background: linear-gradient(135deg, #4facfe22, #00f2fe11);
box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}
.game-mode-option label strong {
color: #333;
font-size: 1.1em;
display: block;
margin-bottom: 5px;
}
.game-mode-option label p {
color: #666;
font-size: 0.9em;
margin: 0;
line-height: 1.4;
}
.mode-config {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.mode-config label {
font-size: 0.9em;
color: #555;
font-weight: 500;
}
.mode-config select {
margin-left: 10px;
padding: 5px 10px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
font-size: 0.9em;
}
.custom-time-input,
.custom-score-input {
margin-left: 10px;
padding: 5px 10px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
font-size: 0.9em;
width: 80px;
display: none;
}
.custom-time-input:focus,
.custom-score-input:focus {
border-color: #007bff;
outline: none;
box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
}
.mercy-cost {
display: block;
font-size: 0.8em;
opacity: 0.9;
font-weight: bold;
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #545b62;
}
/* Loading indicator styles */
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.btn:disabled:hover {
transform: none;
box-shadow: none;
}
.btn-loading {
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.6; }
100% { opacity: 1; }
}
/* Game stats */
.game-stats {
display: flex;
justify-content: space-around;
background: #e9ecef;
padding: 15px;
border-radius: 8px;
}
.stat {
text-align: center;
}
#score {
color: #ffd700;
font-weight: bold;
font-size: 1.3em;
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
background: rgba(255, 215, 0, 0.1);
padding: 4px 8px;
border-radius: 6px;
border: 1px solid rgba(255, 215, 0, 0.3);
}
.stat-label {
display: block;
font-size: 0.9em;
color: #666;
margin-bottom: 5px;
}
.stat-value {
display: block;
font-size: 1.5em;
font-weight: bold;
color: #333;
}
/* Paused screen */
#paused-screen h2 {
color: #333;
margin-bottom: 15px;
}
#paused-screen p {
color: #666;
margin-bottom: 25px;
}
#paused-screen .btn {
margin: 0 10px;
}
/* Game over screen */
#game-over-screen h2 {
color: #333;
margin-bottom: 20px;
}
.final-stats {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
margin-bottom: 25px;
}
.final-stats p {
margin-bottom: 10px;
font-size: 1.1em;
color: #333;
}
.final-stats span {
font-weight: bold;
color: #007bff;
}
/* Responsive design */
@media (max-width: 480px) {
.game-container {
width: 98%;
}
.task-image-container {
min-height: 250px;
}
.task-image {
max-width: 95%;
max-height: 250px;
min-height: 200px;
}
.action-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 200px;
}
.game-stats {
flex-direction: column;
gap: 10px;
}
.timer-container {
flex-direction: column;
gap: 5px;
}
.screen {
padding: 15px;
}
}
/* THEME SYSTEM */
/* Ocean Theme (Default) - Already defined above */
/* Sunset Theme */
body.theme-sunset {
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
}
.theme-sunset .game-header {
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}
.theme-sunset .btn-primary { background: #ff6b35; }
.theme-sunset .btn-primary:hover { background: #e55a2b; }
.theme-sunset .btn-success { background: #ff8c00; }
.theme-sunset .btn-success:hover { background: #e67e00; }
/* Forest Theme */
body.theme-forest {
background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}
.theme-forest .game-header {
background: linear-gradient(135deg, #2d5016 0%, #a8e6cf 100%);
}
.theme-forest .btn-primary { background: #2d5016; }
.theme-forest .btn-primary:hover { background: #1e3510; }
.theme-forest .btn-success { background: #4caf50; }
.theme-forest .btn-success:hover { background: #45a049; }
/* Midnight Theme */
body.theme-midnight {
background: linear-gradient(135deg, #0c0c0c 0%, #434343 100%);
}
.theme-midnight .game-container {
background: #1a1a1a;
color: white;
}
.theme-midnight .game-header {
background: linear-gradient(135deg, #000000 0%, #434343 100%);
}
.theme-midnight .task-container {
background: #2a2a2a;
color: white;
}
.theme-midnight .task-text {
color: white;
}
.theme-midnight .game-stats {
background: #2a2a2a;
}
.theme-midnight .btn-primary { background: #6c757d; }
.theme-midnight .btn-primary:hover { background: #545b62; }
/* Pastel Theme */
body.theme-pastel {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.theme-pastel .game-header {
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}
.theme-pastel .btn-primary { background: #ff9a9e; }
.theme-pastel .btn-primary:hover { background: #ff8a8e; }
.theme-pastel .btn-success { background: #a8e6cf; }
.theme-pastel .btn-success:hover { background: #98d6bf; }
.theme-pastel .btn-warning { background: #ffd3a5; color: #333; }
.theme-pastel .btn-warning:hover { background: #ffc385; }
/* Neon Theme */
body.theme-neon {
background: linear-gradient(135deg, #0f0f0f 0%, #2a0845 100%);
}
.theme-neon .game-container {
background: #1a1a1a;
color: #00ff00;
border: 2px solid #00ff00;
box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}
.theme-neon .game-header {
background: linear-gradient(135deg, #000000 0%, #ff006e 100%);
border-bottom: 2px solid #00ff00;
}
.theme-neon .task-container {
background: #0a0a0a;
color: #00ff00;
border: 1px solid #00ff00;
}
.theme-neon .task-text {
color: #00ff00;
}
.theme-neon .btn-primary {
background: #ff006e;
border: 2px solid #00ff00;
box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}
.theme-neon .btn-success {
background: #00ff00;
color: black;
box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
/* Autumn Theme */
body.theme-autumn {
background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
}
.theme-autumn .game-header {
background: linear-gradient(135deg, #cd853f 0%, #a0522d 100%);
}
.theme-autumn .btn-primary { background: #8b4513; }
.theme-autumn .btn-primary:hover { background: #7a3f12; }
.theme-autumn .btn-success { background: #daa520; }
.theme-autumn .btn-success:hover { background: #b8941b; }
.theme-autumn .btn-warning { background: #ff8c00; }
.theme-autumn .btn-warning:hover { background: #e67e00; }
/* Monochrome Theme */
body.theme-monochrome {
background: linear-gradient(135deg, #000000 0%, #434343 100%);
}
.theme-monochrome .game-container {
background: white;
border: 3px solid black;
}
.theme-monochrome .game-header {
background: black;
border-bottom: 3px solid white;
}
.theme-monochrome .task-container {
background: #f8f8f8;
border: 2px solid black;
}
.theme-monochrome .btn-primary {
background: black;
color: white;
border: 2px solid black;
}
.theme-monochrome .btn-primary:hover {
background: white;
color: black;
}
.theme-monochrome .btn-success {
background: white;
color: black;
border: 2px solid black;
}
.theme-monochrome .btn-success:hover {
background: black;
color: white;
}
/* Help Menu Styles */
.help-section {
margin-bottom: 25px;
}
.help-section h3 {
color: #333;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2px solid #e9ecef;
font-size: 1.1em;
}
.shortcut-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.shortcut-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: #f8f9fa;
border-radius: 6px;
border-left: 4px solid #007bff;
}
.shortcut-key {
background: #343a40;
color: white;
padding: 4px 12px;
border-radius: 4px;
font-family: monospace;
font-weight: bold;
font-size: 0.9em;
min-width: 60px;
text-align: center;
}
.shortcut-action {
flex: 1;
margin-left: 15px;
color: #555;
font-weight: 500;
}
.help-tips {
background: #e3f2fd;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #2196f3;
margin: 0;
}
.help-tips li {
margin-bottom: 8px;
color: #1565c0;
line-height: 1.4;
}
.help-tips li:last-child {
margin-bottom: 0;
}
/* Image Management Styles */
.upload-section {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
border: 2px dashed #dee2e6;
}
.upload-controls {
display: flex;
align-items: center;
gap: 15px;
}
.upload-info {
font-size: 0.9em;
color: #6c757d;
font-style: italic;
}
.gallery-section {
margin-bottom: 30px;
}
.gallery-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 15px;
}
.gallery-controls {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.image-count {
font-size: 0.9em;
color: #6c757d;
font-weight: 500;
}
.image-gallery {
display: none; /* Hide galleries by default */
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
max-height: 400px;
overflow-y: auto;
padding: 10px;
border: 1px solid #dee2e6;
border-radius: 8px;
}
.image-gallery.active {
display: grid; /* Show active gallery as grid */
}
.image-item {
position: relative;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.image-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.image-item.selected {
border: 3px solid #007bff;
transform: scale(0.95);
}
.image-preview {
width: 100%;
height: 150px;
object-fit: cover;
cursor: pointer;
}
.image-info {
padding: 10px;
background: white;
}
.image-name {
font-size: 0.8em;
color: #333;
margin-bottom: 5px;
word-break: break-word;
}
.image-controls {
display: flex;
justify-content: space-between;
align-items: center;
}
.image-checkbox {
margin: 0;
}
.image-status {
font-size: 0.7em;
padding: 2px 6px;
border-radius: 4px;
font-weight: bold;
}
.image-enabled {
background: #d4edda;
color: #155724;
}
.image-disabled {
background: #f8d7da;
color: #721c24;
}
.loading, .no-images {
text-align: center;
padding: 40px;
color: #6c757d;
font-style: italic;
}
.no-images {
background: #f8f9fa;
border-radius: 8px;
border: 2px dashed #dee2e6;
}
/* Audio Management Styles */
.audio-tabs {
display: flex;
margin-bottom: 15px;
border-bottom: 2px solid #dee2e6;
}
.audio-tabs .tab-btn {
flex: 1;
padding: 12px 16px;
border: none;
background: #f8f9fa;
color: #6c757d;
cursor: pointer;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
font-weight: 600;
}
.audio-tabs .tab-btn:hover {
background: #e9ecef;
color: #495057;
}
.audio-tabs .tab-btn.active {
background: white;
color: #007bff;
border-bottom-color: #007bff;
}
.audio-count {
font-size: 0.9em;
color: #6c757d;
font-weight: 500;
}
.audio-gallery {
display: none; /* Hide galleries by default */
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 15px;
max-height: 400px;
overflow-y: auto;
padding: 10px;
border: 1px solid #dee2e6;
border-radius: 8px;
}
.audio-gallery.active {
display: grid; /* Show active gallery as grid */
}
.audio-item {
position: relative;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
padding: 15px;
}
.audio-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.audio-item.selected {
border: 3px solid #007bff;
transform: scale(0.98);
background: #f8f9ff;
}
.audio-icon {
font-size: 2.5em;
text-align: center;
margin-bottom: 10px;
color: #007bff;
}
.audio-title {
font-size: 0.9em;
color: #333;
margin-bottom: 8px;
font-weight: 600;
word-break: break-word;
text-align: center;
}
.audio-filename {
font-size: 0.7em;
color: #6c757d;
margin-bottom: 10px;
text-align: center;
word-break: break-word;
}
.audio-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.audio-preview-btn {
background: #28a745;
color: white;
border: none;
padding: 4px 8px;
border-radius: 4px;
cursor: pointer;
font-size: 0.8em;
transition: background 0.3s ease;
}
.audio-preview-btn:hover {
background: #218838;
}
.audio-checkbox {
margin: 0;
}
.audio-status {
font-size: 0.7em;
padding: 2px 6px;
border-radius: 4px;
font-weight: bold;
}
.audio-enabled {
background: #d4edda;
color: #155724;
}
.audio-disabled {
background: #f8d7da;
color: #721c24;
}
.audio-preview-section {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
}
.audio-preview-section h4 {
margin-bottom: 15px;
color: #333;
}
.preview-controls {
display: flex;
flex-direction: column;
gap: 10px;
}
.preview-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.preview-info span {
font-size: 0.9em;
color: #6c757d;
font-weight: 500;
}
.no-audio {
text-align: center;
padding: 40px;
color: #6c757d;
font-style: italic;
background: #f8f9fa;
border-radius: 8px;
border: 2px dashed #dee2e6;
}
/* Audio category icons */
.audio-item[data-category="background"] .audio-icon::before {
content: "🎵";
}
.audio-item[data-category="ambient"] .audio-icon::before {
content: "🌿";
}
.audio-item[data-category="effects"] .audio-icon::before {
content: "🔊";
}
/* ===========================
RESPONSIVE DESIGN ENHANCEMENTS
=========================== */
/* Large screens - take advantage of extra space */
@media (min-width: 1200px) {
.game-container {
width: 90%;
max-width: 1400px;
}
.game-header h1 {
font-size: 2.2em;
}
/* Make better use of horizontal space */
.main-actions {
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
}
.main-actions .btn {
width: auto;
min-width: 200px;
max-width: 250px;
margin: 0;
}
/* Multi-column layouts for management screens */
.image-gallery, .audio-gallery {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
}
/* Game mode selection in columns */
.game-mode-options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
}
/* Medium screens - balanced layout */
@media (min-width: 900px) and (max-width: 1199px) {
.game-container {
width: 95%;
}
.main-actions {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 15px;
}
.main-actions .btn {
width: auto;
min-width: 180px;
max-width: 220px;
margin: 0;
}
}
/* Small screens - compact layout */
@media (max-width: 899px) {
.game-container {
width: 98%;
margin: 5px auto;
border-radius: 10px;
min-width: 760px; /* Ensure minimum usability */
}
.game-header {
padding: 15px;
}
.game-header h1 {
font-size: 1.8em;
}
.main-actions {
flex-direction: column;
gap: 12px;
}
.main-actions .btn {
width: 100%;
max-width: 280px;
}
/* Compact game mode selection */
.game-mode-selection {
padding: 15px;
}
.game-mode-option label {
padding: 12px;
}
/* Adjust image and audio galleries */
.image-gallery, .audio-gallery {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 10px;
}
}
/* Handle very wide screens */
@media (min-width: 1600px) {
.game-container {
max-width: 1600px;
}
.game-content {
padding: 30px;
}
/* Use more columns for galleries on wide screens */
.image-gallery, .audio-gallery {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
}
}
/* Ensure game screen task display scales well */
@media (min-width: 1400px) {
.task-display {
max-width: 900px;
margin: 0 auto;
}
.task-image {
max-height: min(75vh, 900px); /* Much larger images on very large screens */
max-width: min(85vw, 1400px); /* Can be much wider on large screens */
}
.task-image-container {
min-height: max(300px, 35vh); /* Taller container for larger images */
}
}
@media (min-width: 1000px) and (max-width: 1399px) {
.task-display {
max-width: 700px;
margin: 0 auto;
}
.task-image {
max-height: min(65vh, 700px); /* Bigger images for medium-large screens */
max-width: min(88vw, 1000px); /* More width utilization */
}
}
/* Compact sizing for smaller windows */
@media (max-width: 999px) {
.task-image {
max-height: min(55vh, 500px); /* Still quite large on compact screens */
max-width: min(92vw, 600px); /* Take up most of the width */
min-height: max(180px, 18vh); /* Smaller minimum height */
}
.task-image-container {
min-height: max(180px, 20vh); /* Compact container */
margin-bottom: 15px;
}
}
/* Very small windows - still allow decent image size */
@media (max-width: 800px) {
.task-image {
max-height: min(50vh, 400px); /* Half the viewport height on small windows */
max-width: min(95vw, 500px); /* Nearly full width */
min-height: max(150px, 15vh); /* Smaller minimum */
min-width: 200px; /* Smaller minimum width */
}
.task-image-container {
min-height: max(150px, 18vh);
margin-bottom: 10px;
}
}
/* High DPI / Retina display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
.game-container {
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.btn {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
}
/* ===========================
DYNAMIC WINDOW SIZE CLASSES
=========================== */
/* Extra fine-tuning based on JavaScript window size detection */
.game-container.window-xl .task-image {
max-width: min(85vw, 1500px); /* Huge images on ultra-wide screens */
max-height: min(80vh, 1000px); /* Take up most of the vertical space */
min-height: max(400px, 30vh); /* Large minimum size */
}
.game-container.window-large .task-image {
max-width: min(88vw, 1200px); /* Very large images */
max-height: min(75vh, 800px); /* Most of the screen height */
min-height: max(300px, 25vh); /* Good minimum size */
}
.game-container.window-medium .task-image {
max-width: min(90vw, 800px); /* Large images on medium screens */
max-height: min(65vh, 600px); /* Good portion of screen height */
min-height: max(250px, 22vh); /* Reasonable minimum */
}
.game-container.window-small .task-image {
max-width: min(95vw, 500px); /* Nearly full width on small screens */
max-height: min(55vh, 400px); /* More than half the screen height */
min-height: max(200px, 20vh); /* Decent minimum size */
min-width: 180px;
}
/* Smooth transitions between window size changes */
.task-image {
transition: max-width 0.3s ease, max-height 0.3s ease, min-height 0.3s ease;
}
.task-image-container {
transition: min-height 0.3s ease;
}
/* ===========================
FLASH MESSAGE SYSTEM
=========================== */
/* Flash message overlay */
.flash-message-overlay {
position: fixed;
display: none;
pointer-events: none; /* Don't block clicks */
font-family: 'Arial', sans-serif;
user-select: none; /* Prevent text selection */
opacity: 0;
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
/* Flash message animations */
@keyframes flashBounceIn {
0% {
opacity: 0;
transform: scale(0.3) translate(-50%, -50%);
}
50% {
opacity: 1;
transform: scale(1.05) translate(-50%, -50%);
}
70% {
transform: scale(0.9) translate(-50%, -50%);
}
100% {
opacity: 1;
transform: scale(1) translate(-50%, -50%);
}
}
@keyframes flashPulseIn {
0% {
opacity: 0;
transform: scale(1) translate(-50%, -50%);
}
20% {
opacity: 0.8;
transform: scale(1.1) translate(-50%, -50%);
}
40% {
opacity: 1;
transform: scale(0.95) translate(-50%, -50%);
}
60% {
opacity: 1;
transform: scale(1.05) translate(-50%, -50%);
}
80% {
opacity: 1;
transform: scale(0.98) translate(-50%, -50%);
}
100% {
opacity: 1;
transform: scale(1) translate(-50%, -50%);
}
}
@keyframes flashFadeOut {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(0.95);
}
}
/* Flash message responsive styles */
@media (max-width: 768px) {
.flash-message-overlay {
max-width: 90% !important;
padding: 15px 20px !important;
font-size: 18px !important;
}
}
@media (max-width: 480px) {
.flash-message-overlay {
max-width: 95% !important;
padding: 12px 16px !important;
font-size: 16px !important;
border-radius: 10px !important;
}
}
/* ===========================
ANNOYANCE MANAGEMENT SCREEN
=========================== */
/* Tab Navigation */
.annoyance-tabs {
display: flex;
gap: 2px;
margin-bottom: 20px;
background: #e9ecef;
border-radius: 8px;
padding: 4px;
}
.annoyance-tab {
flex: 1;
background: transparent;
border: none;
padding: 12px 16px;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s ease;
color: #666;
}
.annoyance-tab:hover {
background: #dee2e6;
color: #333;
}
.annoyance-tab.active {
background: #007bff;
color: white;
box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}
/* Tab Content */
.annoyance-tab-content {
display: none;
}
.annoyance-tab-content.active {
display: block;
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Section Styling */
.annoyance-section {
background: #f8f9fa;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #e9ecef;
}
.header-controls {
display: flex;
align-items: center;
gap: 15px;
}
/* Message Editor */
.message-editor {
background: white;
border: 2px solid #007bff;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}
.editor-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #e9ecef;
}
.editor-header h4 {
margin: 0;
color: #007bff;
}
.editor-form {
display: flex;
flex-direction: column;
gap: 15px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.form-group label {
font-weight: 600;
color: #333;
}
.form-group textarea {
padding: 12px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 14px;
resize: vertical;
min-height: 80px;
transition: border-color 0.2s;
}
.form-group textarea:focus {
border-color: #007bff;
outline: none;
}
.form-group select {
padding: 10px 12px;
border: 2px solid #ddd;
border-radius: 6px;
background: white;
font-size: 14px;
cursor: pointer;
transition: border-color 0.2s;
}
.form-group select:focus {
border-color: #007bff;
outline: none;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.char-counter {
font-size: 12px;
color: #666;
text-align: right;
}
.char-counter.warning {
color: #ffc107;
}
.char-counter.error {
color: #dc3545;
}
.editor-actions {
display: flex;
gap: 10px;
justify-content: flex-start;
}
/* Message List */
.message-list-section {
background: white;
border-radius: 8px;
overflow: hidden;
}
.list-header {
background: #f8f9fa;
padding: 15px 20px;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.list-filters {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
.list-filters label {
font-size: 14px;
color: #666;
display: flex;
align-items: center;
gap: 5px;
}
.list-filters select {
padding: 6px 10px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
font-size: 13px;
}
.list-stats {
font-size: 14px;
color: #666;
font-weight: 500;
}
.message-list {
max-height: 400px;
overflow-y: auto;
}
.message-item {
display: flex;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #f1f3f4;
transition: background-color 0.2s;
}
.message-item:hover {
background-color: #f8f9fa;
}
.message-item.disabled {
opacity: 0.6;
background-color: #f8f9fa;
}
.message-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 5px;
}
.message-text {
font-size: 14px;
color: #333;
line-height: 1.4;
}
.message-meta {
display: flex;
gap: 15px;
font-size: 12px;
color: #666;
}
.message-category {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 8px;
background: #e9ecef;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
}
.message-category.motivational { background: #d4edda; color: #155724; }
.message-category.encouraging { background: #d1ecf1; color: #0c5460; }
.message-category.achievement { background: #fff3cd; color: #856404; }
.message-category.persistence { background: #f8d7da; color: #721c24; }
.message-category.custom { background: #e2e3e5; color: #383d41; }
.message-actions {
display: flex;
gap: 8px;
align-items: center;
}
.message-toggle {
width: 40px;
height: 20px;
background: #ccc;
border-radius: 10px;
position: relative;
cursor: pointer;
transition: background-color 0.3s;
}
.message-toggle.enabled {
background: #28a745;
}
.message-toggle::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
transition: transform 0.3s;
}
.message-toggle.enabled::after {
transform: translateX(20px);
}
/* Control Layouts */
.control-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.control-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.control-group label {
font-weight: 600;
color: #333;
display: flex;
align-items: center;
gap: 8px;
}
.control-group input[type="range"] {
width: 100%;
height: 6px;
border-radius: 3px;
background: #ddd;
outline: none;
opacity: 0.7;
transition: opacity 0.2s;
cursor: pointer;
}
.control-group input[type="range"]:hover {
opacity: 1;
}
.control-group input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #007bff;
cursor: pointer;
transition: background 0.2s;
}
.control-group input[type="range"]::-webkit-slider-thumb:hover {
background: #0056b3;
}
.control-group input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.control-group input[type="color"] {
width: 60px;
height: 40px;
border: 2px solid #ddd;
border-radius: 6px;
cursor: pointer;
transition: border-color 0.2s;
}
.control-group input[type="color"]:focus {
border-color: #007bff;
outline: none;
}
.help-text {
font-size: 12px;
color: #666;
font-style: italic;
margin-top: 2px;
}
.help-text.danger {
color: #dc3545;
}
/* Import/Export Sections */
.control-section {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 15px;
border: 1px solid #e9ecef;
}
.control-section h4 {
margin: 0 0 15px 0;
color: #333;
font-size: 16px;
}
.export-options, .import-options, .reset-options {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 10px;
}
.import-mode {
margin-top: 10px;
}
.radio-group {
display: flex;
gap: 15px;
margin-top: 5px;
}
.radio-group label {
display: flex;
align-items: center;
gap: 5px;
font-size: 14px;
cursor: pointer;
}
/* Responsive Design */
@media (max-width: 768px) {
.annoyance-tabs {
flex-direction: column;
}
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.form-row, .control-row {
grid-template-columns: 1fr;
gap: 10px;
}
.list-header {
flex-direction: column;
align-items: flex-start;
}
.message-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.message-actions {
align-self: stretch;
justify-content: space-between;
}
.export-options, .import-options, .reset-options {
flex-direction: column;
}
.annoyance-section {
padding: 15px;
}
}
/* ======================================
Punishment Popup System Styles
====================================== */
/* Background blur for punishment popups */
.punishment-popup-blur {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(3px);
z-index: 9999;
pointer-events: none;
}
/* Individual punishment popup */
.punishment-popup {
position: fixed;
z-index: 10000;
background: white;
border: 3px solid #dc3545;
border-radius: 10px;
box-shadow: 0 8px 32px rgba(220, 53, 69, 0.4);
overflow: hidden;
display: flex;
flex-direction: column;
font-family: var(--font-family);
min-width: 200px;
min-height: 150px;
max-width: 500px;
max-height: 400px;
}
/* Popup header with timer and title */
.punishment-popup-header {
background: #dc3545;
color: white;
padding: 8px 12px;
font-size: 12px;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
}
.punishment-popup-timer {
background: rgba(255, 255, 255, 0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: monospace;
font-size: 11px;
min-width: 30px;
text-align: center;
}
/* Image container within popup */
.punishment-popup img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 5px;
}
/* Popup Images Tab specific styles */
.range-inputs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin-top: 10px;
}
.range-inputs > div {
display: flex;
flex-direction: column;
gap: 5px;
}
.range-inputs input[type="number"] {
padding: 8px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
background: white;
color: #333;
}
.range-inputs input[type="number"]:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.warning-text {
background: #fff3cd;
color: #856404;
padding: 10px;
border: 1px solid #ffeaa7;
border-radius: 5px;
margin-top: 10px;
font-size: 14px;
font-weight: 500;
}
.test-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 10px;
}
.test-buttons .btn {
flex: 1;
min-width: 120px;
padding: 10px 15px;
font-size: 14px;
font-weight: 500;
border: none;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
text-align: center;
}
.test-buttons .btn-info {
background: #17a2b8;
color: white;
}
.test-buttons .btn-info:hover {
background: #138496;
transform: translateY(-1px);
}
.test-buttons .btn-primary {
background: #007bff;
color: white;
}
.test-buttons .btn-primary:hover {
background: #0056b3;
transform: translateY(-1px);
}
.test-buttons .btn-danger {
background: #dc3545;
color: white;
}
.test-buttons .btn-danger:hover {
background: #c82333;
transform: translateY(-1px);
}
.info-display {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #007bff;
margin-top: 10px;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.info-item:last-child {
border-bottom: none;
}
.info-label {
font-weight: 500;
color: #495057;
}
.info-item span:last-child {
font-weight: bold;
color: #007bff;
background: rgba(0, 123, 255, 0.1);
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
min-width: 30px;
text-align: center;
}
/* Responsive styles for popup images tab */
@media (max-width: 768px) {
.range-inputs {
grid-template-columns: 1fr;
gap: 10px;
}
.test-buttons {
flex-direction: column;
}
.test-buttons .btn {
min-width: 100%;
}
.punishment-popup {
max-width: 90vw;
max-height: 80vh;
}
.info-item {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.info-item span:last-child {
align-self: flex-end;
}
}
/* Animation for popup appearance */
@keyframes popupFadeIn {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes popupFadeOut {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(0.9);
}
}
.punishment-popup {
animation: popupFadeIn 0.3s ease-out;
}
.punishment-popup.fade-out {
animation: popupFadeOut 0.3s ease-in;
}