:root { --primary-color: #1a1a2e; --secondary-color: #16213e; --accent-color: #0f3460; --text-color: #e94560; --light-text: #f8f8f8; --error-color: #ff0000; --success-color: #00ff00; } body { font-family: 'Press Start 2P', cursive, sans-serif; background-color: var(--primary-color); color: var(--light-text); margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; } .container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px; } header { background-color: var(--secondary-color); padding: 20px 0; text-align: center; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } header h1 { margin: 0; color: var(--text-color); font-size: 2.5rem; text-transform: uppercase; letter-spacing: 3px; text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5); } nav { display: flex; justify-content: center; margin-top: 20px; } nav a { color: var(--light-text); text-decoration: none; margin: 0 15px; padding: 10px 15px; border: 2px solid var(--accent-color); border-radius: 5px; transition: all 0.3s ease; } nav a:hover { background-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } main { flex: 1; padding: 40px 0; } .game-container { background-color: var(--secondary-color); border-radius: 10px; padding: 30px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); margin-bottom: 30px; } .text-display { font-size: 1.5rem; line-height: 2; margin-bottom: 30px; padding: 20px; background-color: var(--primary-color); border-radius: 8px; border: 2px solid var(--accent-color); white-space: pre-wrap; } .text-display span { position: relative; } .text-display span.correct { color: var(--success-color); } .text-display span.incorrect { color: var(--error-color); text-decoration: underline; } .text-display span.current { background-color: var(--accent-color); } .input-area { width: 100%; margin-bottom: 20px; } .input-area textarea { width: 100%; padding: 15px; font-size: 1.2rem; background-color: var(--primary-color); color: var(--light-text); border: 2px solid var(--accent-color); border-radius: 8px; resize: none; font-family: 'Courier New', monospace; } .input-area textarea:focus { outline: none; border-color: var(--text-color); box-shadow: 0 0 10px rgba(233, 69, 96, 0.5); } .stats { display: flex; justify-content: space-around; margin-top: 20px; padding: 15px; background-color: var(--primary-color); border-radius: 8px; border: 2px solid var(--accent-color); } .stat-box { text-align: center; padding: 10px; } .stat-box h3 { margin: 0; color: var(--text-color); font-size: 1rem; } .stat-box p { font-size: 1.5rem; margin: 10px 0 0; } .btn { background-color: var(--accent-color); color: var(--light-text); border: none; padding: 12px 25px; font-size: 1rem; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; font-family: 'Press Start 2P', cursive, sans-serif; text-transform: uppercase; letter-spacing: 1px; } .btn:hover { background-color: var(--text-color); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .btn:active { transform: translateY(0); box-shadow: none; } .btn-primary { background-color: var(--text-color); } .btn-secondary { background-color: var(--accent-color); } .result-container { text-align: center; padding: 30px; background-color: var(--secondary-color); border-radius: 10px; display: none; } .result-container h2 { color: var(--text-color); margin-bottom: 20px; } .result-details { display: flex; justify-content: space-around; margin-bottom: 30px; } .result-box { text-align: center; padding: 15px; background-color: var(--primary-color); border-radius: 8px; width: 30%; } .result-box h3 { margin: 0; color: var(--text-color); } .result-box p { font-size: 2rem; margin: 10px 0 0; } .overseer { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 450px; background-image: url('/static/images/overseer.svg'); background-size: contain; background-repeat: no-repeat; display: none; z-index: 100; filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.7)); } .overseer.show { display: block; animation: overseerAppear 1.5s ease-in-out forwards; } @keyframes overseerAppear { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 70% { transform: translate(-50%, -50%) scale(1); } 85% { transform: translate(-50%, -50%) rotate(-5deg); } 100% { transform: translate(-50%, -50%) rotate(0deg); } } .gunshot { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 0, 0, 0.7); display: none; z-index: 99; animation: bloodFlash 0.5s ease-out; } @keyframes bloodFlash { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } } .blood-splatter { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 98; pointer-events: none; display: none; } .blood-splatter.show { display: block; } .blood-drop { position: absolute; background-color: #800; border-radius: 50%; animation: drip 2s ease-in infinite; } @keyframes drip { 0% { transform: translateY(0) scale(1); } 80% { transform: translateY(300px) scale(1.5); opacity: 1; } 100% { transform: translateY(350px) scale(1); opacity: 0; } } .muzzle-flash, .muzzle-flash-inner { opacity: 0; } .overseer.firing .muzzle-flash { opacity: 1; animation: flash 0.3s ease-out; } .overseer.firing .muzzle-flash-inner { opacity: 1; animation: flash 0.2s ease-out; } @keyframes flash { 0% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(0.8); } } .death-message { position: fixed; top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: #ff0000; text-shadow: 0 0 10px #000; z-index: 101; opacity: 0; font-family: 'Press Start 2P', cursive; text-transform: uppercase; display: none; } .death-message.show { display: block; animation: messageAppear 2s ease-in-out forwards; } @keyframes messageAppear { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } } .multiplayer-container { background-color: var(--secondary-color); border-radius: 10px; padding: 30px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); } .room-form { margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; } .room-form input { width: 100%; max-width: 400px; padding: 12px; margin-bottom: 15px; background-color: var(--primary-color); color: var(--light-text); border: 2px solid var(--accent-color); border-radius: 5px; font-family: 'Press Start 2P', cursive, sans-serif; } .players-list { margin-top: 30px; } .player-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; margin-bottom: 10px; background-color: var(--primary-color); border-radius: 5px; border-left: 5px solid var(--accent-color); } .player-name { font-weight: bold; color: var(--text-color); } .player-ready { color: var(--success-color); } .player-progress { width: 60%; height: 20px; background-color: var(--primary-color); border: 2px solid var(--accent-color); border-radius: 10px; overflow: hidden; } .progress-bar { height: 100%; background-color: var(--text-color); width: 0%; transition: width 0.3s ease; } .player-stats { display: flex; gap: 15px; } /* Стили для кнопки готовности */ .ready { background-color: var(--success-color); color: var(--light-text); } /* Стили для обратного отсчёта */ .countdown { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5rem; color: var(--text-color); z-index: 100; text-shadow: 0 0 10px rgba(233, 69, 96, 0.7); } .pulse { animation: pulse 1s ease-in-out; } @keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; } } .leaderboard-container { background-color: var(--secondary-color); border-radius: 10px; padding: 30px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); } .leaderboard-table { width: 100%; border-collapse: collapse; margin-top: 20px; } .leaderboard-table th, .leaderboard-table td { padding: 15px; text-align: left; border-bottom: 2px solid var(--accent-color); } .leaderboard-table th { background-color: var(--accent-color); color: var(--light-text); text-transform: uppercase; } .leaderboard-table tr:nth-child(even) { background-color: var(--primary-color); } .leaderboard-table tr:hover { background-color: var(--accent-color); } footer { background-color: var(--secondary-color); text-align: center; padding: 20px 0; margin-top: auto; } footer p { margin: 0; color: var(--light-text); font-size: 0.8rem; } @media (max-width: 768px) { header h1 { font-size: 1.8rem; } nav { flex-direction: column; align-items: center; } nav a { margin: 5px 0; width: 80%; text-align: center; } .text-display { font-size: 1.2rem; } .stats { flex-direction: column; } .stat-box { margin-bottom: 10px; } .result-details { flex-direction: column; align-items: center; } .result-box { width: 80%; margin-bottom: 15px; } }