/
DreamerOnMaybe
/
BrowserRPG
Обзор
Документация
Войти
/
DreamerOnMaybe
/
BrowserRPG
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
308 строк
6 KB
Павел Марфенко
upload files
22 янв 2026, 14:15
Верифицирован
22 янв 2026, 14:15
e5de2b6
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } li { list-style: none; } body { font-family: "Oswald", sans-serif; color: #fff; background-color: #000; overflow-x: hidden; } .background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('img/udun.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; filter: brightness(30%); z-index: -1; } main.main__window { margin: 20px 20px; padding: 20px; border: 2px solid white; border-radius: 8px; background-color: rgba(0, 0, 0, 0.5); color: white; font-size: 18px; display: flex; flex-direction: column; gap: 20px; } .wrapper { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; } /* === ХАРАКТЕРИСТИКИ === */ .characteristics { flex: 1 1 300px; border: 2px solid white; border-radius: 8px; padding: 15px; background-color: rgba(255, 255, 255, 0.1); } .characteristics h3 { font-size: 24px; margin-bottom: 10px; } .characteristics li { font-size: 20px; margin: 8px 0; } /* === БОЙ === */ #battle-controls { display: none; flex-direction: column; gap: 15px; padding: 15px; border: 2px solid #d62828; border-radius: 8px; background-color: rgba(139, 0, 0, 0.3); } #enemy-health-bar { width: 100%; height: 24px; background-color: #555; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); margin-bottom: 20px; } #enemy-health { height: 100%; width: 100%; background: #d62828; text-align: center; color: white; font-weight: bold; line-height: 24px; border-radius: 12px; transition: width 0.3s ease, background 0.3s ease; } #battle-controls button { padding: 12px; font-size: 18px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } #battle-controls button:hover { transform: translateY(-2px); } #attack-btn { background: #4361ee; color: white; box-shadow: 0 4px 8px rgba(67, 97, 238, 0.4); } #attack-btn:hover { background: #3a0ca3; box-shadow: 0 6px 12px rgba(67, 97, 238, 0.6); } #flee-btn { background: #f77f00; color: white; box-shadow: 0 4px 8px rgba(247, 127, 0, 0.4); } #flee-btn:hover { background: #d62828; box-shadow: 0 6px 12px rgba(214, 40, 47, 0.6); } /* === ЛОКАЦИИ === */ .location { flex: 1 1 100%; } .location h2 { margin-bottom: 10px; } #location-exits { display: flex; flex-direction: column; gap: 10px; } #location-exits button { padding: 12px; font-size: 20px; font-weight: 700; background: none; color: white; border: 2px solid #368d36; border-radius: 8px; cursor: pointer; transition: background 0.3s, color 0.3s; } #location-exits button:hover { background-color: #368d36; color: black; } /* === ЭКРАН СОБЫТИЙ === */ #log { flex: 1 1 100%; font-weight: 300; font-size: 18px; border: 2px solid white; border-radius: 8px; padding: 10px; max-height: 30vh; overflow-y: auto; background-color: rgba(0, 0, 0, 0.6); line-height: 1.5; } #log p { margin: 5px 0; padding: 6px 10px; border-radius: 4px; transition: opacity 0.3s; } .log-artifact { color: #4cc9f0; background-color: rgba(76, 201, 240, 0.15); border-left: 4px solid #4cc9f0; } .log-enemy { color: #f72585; background-color: rgba(247, 37, 133, 0.15); border-left: 4px solid #f72585; } /* === КНОПКИ АРТЕФАКТОВ === */ .artifact-button { display: block; width: 100%; padding: 12px; margin: 10px 0; background: linear-gradient(145deg, #3a0ca3, #4361ee); color: white; border: none; border-radius: 8px; font-size: 18px; font-weight: bold; cursor: pointer; transition: transform 0.2s; } .artifact-button:hover { transform: translateY(-2px); } .artifact-button:active { transform: translateY(0); } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: #111; padding: 30px; border: 2px solid white; border-radius: 12px; text-align: center; color: white; max-width: 400px; width: 90%; box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); animation: fadeIn 0.4s ease-out; } .modal-content h2 { margin-bottom: 10px; color: #f72585; } .modal-content p { margin-bottom: 20px; color: #aaa; font-size: 18px; } .modal-buttons { display: flex; gap: 15px; justify-content: center; } .modal-buttons button { padding: 12px 20px; font-size: 16px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; min-width: 130px; } #restart-btn { background: #4361ee; color: white; } #restart-btn:hover { background: #3a0ca3; } #exit-btn { background: #d62828; color: white; } #exit-btn:hover { background: #c1121f; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }