a munch adventure
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

552 lines
7.6 KiB

  1. html, body, .scene {
  2. min-height: 100%;
  3. height: 100%;
  4. color: #eee;
  5. background-color: #000;
  6. font-family: sans-serif;
  7. margin: 0px;
  8. }
  9. body {
  10. position: fixed;
  11. top: 0px;
  12. width: 100%;
  13. }
  14. .hidden-scene {
  15. display: none;
  16. }
  17. .hidden-modal {
  18. display: none;
  19. }
  20. a {
  21. color: #8888FF;
  22. text-decoration: none;
  23. }
  24. a:visited {
  25. color: #8888DD;
  26. }
  27. a:hover {
  28. color: #AAAAEE;
  29. }
  30. a:hover {
  31. text-shadow: 0px 0px 5px #eeeeff;
  32. text-decoration: none;
  33. }
  34. #pick.scene {
  35. text-align: center;
  36. display: flex;
  37. flex-direction: column;
  38. justify-content: center;
  39. align-items: center;
  40. }
  41. #pick-blurb {
  42. font-size: 24px;
  43. }
  44. #game-select {
  45. user-select: none;
  46. font-size: 32px;
  47. background-color: #111;
  48. color: #eee;
  49. border: 1px solid #333;
  50. width: 200px;
  51. height: 50px;
  52. }
  53. #start-button {
  54. display: none;
  55. user-select: none;
  56. width: 200px;
  57. height: 100px;
  58. background-color: #111;
  59. border: 1px solid #333;
  60. font-size: 48px;
  61. color: #eee;
  62. }
  63. #tags-header {
  64. font-size: 36px;
  65. }
  66. .tag {
  67. font-size: 24px;
  68. }
  69. .modal {
  70. position: fixed;
  71. z-index: 1;
  72. height: 100%;
  73. width: 100%;
  74. left: 0;
  75. top: 0;
  76. background-color: rgba(0,0,0,0.5);
  77. text-align: center;
  78. display: flex;
  79. justify-content: center;
  80. align-content: center;
  81. align-items: center;
  82. }
  83. .modal-content {
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: center;
  87. align-content: center;
  88. position: relative;
  89. flex-wrap: nowrap;
  90. text-align: center;
  91. width: 25%;
  92. padding: 100px;
  93. background-color: rgba(0, 0, 0, 0.9);
  94. }
  95. .menu-header {
  96. width: 100%;
  97. height: 75px;
  98. font-size: 48px;
  99. }
  100. .menu-button {
  101. width: 100%;
  102. height: 50px;
  103. background-color: #111;
  104. border: 1px solid #333;
  105. font-size: 24px;
  106. color: #eee;
  107. }
  108. @media (max-aspect-ratio: 1/1) {
  109. .modal-content {
  110. width: 75%;
  111. height: 75%;
  112. }
  113. .menu-button {
  114. height: 10%;
  115. font-size: 5vw;
  116. }
  117. }
  118. @media (min-aspect-ratio: 1/1) {
  119. #info-area {
  120. height: 60%;
  121. }
  122. #control-area {
  123. height: 40%;
  124. }
  125. }
  126. .menu-button:active {
  127. background-color: #222;
  128. }
  129. .menu-button:focus {
  130. outline: 0px;
  131. }
  132. .menu-slider {
  133. background: #555;
  134. width: 100%;
  135. height: 50px;
  136. }
  137. .menu-label {
  138. width: 100%;
  139. height: 25px;
  140. font-size: 36px;
  141. }
  142. #info-area {
  143. position: relative;
  144. display: flex;
  145. }
  146. @media (max-aspect-ratio: 1/1) {
  147. #info-area {
  148. height: 50%;
  149. }
  150. #control-area {
  151. height: 50%;
  152. flex-direction: column;
  153. }
  154. }
  155. @media (min-aspect-ratio: 1/1) {
  156. #info-area {
  157. height: 60%;
  158. }
  159. #control-area {
  160. height: 40%;
  161. }
  162. }
  163. #log {
  164. background: #000000;
  165. flex: 4;
  166. padding: 25px;
  167. font-size: 24px;
  168. max-width: 50%;
  169. overflow: auto;
  170. }
  171. #log > div:not(last-child) {
  172. color: #ddd;
  173. }
  174. #log > div:last-child {
  175. margin-top: 16pt;
  176. color: #fff;
  177. }
  178. .sidebar {
  179. background: rgba(255, 255, 255, 0.1);
  180. flex: 1;
  181. display: flex;
  182. flex-direction: column;
  183. font-size: 24px;
  184. }
  185. #game-menu {
  186. margin: 10px;
  187. background: rgba(255,255,255,0.07);
  188. flex: 2;
  189. }
  190. .game-menu-button {
  191. height: 100%;
  192. width: 100%;
  193. user-select: none;
  194. background-color: #111;
  195. border: 1px solid #333;
  196. font-size: 48px;
  197. color: #eee;
  198. }
  199. #world-info {
  200. margin: 10px 0px;
  201. padding: 10px;
  202. background: rgba(255,255,255,0.07);
  203. flex: 5;
  204. }
  205. #player-info {
  206. margin: 10px 0px;
  207. padding: 10px;
  208. background: rgba(255,255,255,0.07);
  209. flex: 5;
  210. }
  211. .stat-bar-holder {
  212. user-select: none;
  213. position: relative;
  214. width: 100%;
  215. height: 30px;
  216. background-color: rgba(0, 0, 0, 1);
  217. }
  218. .stat-bar-label {
  219. width: 100%;
  220. position: absolute;
  221. text-align: center;
  222. z-index: 1;
  223. text-shadow: 2px 2px 1px black,
  224. -2px 2px 1px black,
  225. 2px -2px 1px black,
  226. -2px -2px 1px black,
  227. 2px 0 1px black,
  228. -2px 0 1px black,
  229. 0 -2px 1px black,
  230. 0 -2px 1px black;
  231. }
  232. .stat-bar {
  233. position: absolute;
  234. width: 50%;
  235. height: 30px;
  236. }
  237. .info-header {
  238. font-size: 36px;
  239. text-align: center;
  240. }
  241. #control-area {
  242. display: flex;
  243. }
  244. @media (min-aspect-ratio: 1/1) {
  245. #actions {
  246. flex-wrap: wrap;
  247. }
  248. }
  249. #actions {
  250. position: relative;
  251. flex-direction: column;
  252. flex-wrap: wrap;
  253. align-items: center;
  254. display: flex;
  255. padding: 25px;
  256. font-size: 24px;
  257. background: rgba(255, 255, 255, 0.1);
  258. max-height: 100%;
  259. }
  260. .action-button {
  261. flex: 0 0 50px;
  262. width: 250px;
  263. background-color: #888;
  264. border-color: #ddd;
  265. color: #eee;
  266. margin: 5px;
  267. font-size: 16pt;
  268. border: 5px;
  269. border-style: outset;
  270. }
  271. .action-button:active {
  272. background-color: #666;
  273. border-color: #999;
  274. }
  275. .action-button.disabled {
  276. border-style: inset;
  277. border-color: #222;
  278. }
  279. .action-button.disabled:active {
  280. border-color: #222;
  281. }
  282. #desc {
  283. padding: 25px;
  284. font-size: 18px;
  285. background: rgba(255, 255, 255, 0.15);
  286. }
  287. @media (min-aspect-ratio: 1/1) {
  288. #desc {
  289. flex: 0.5;
  290. }
  291. #actions {
  292. flex: 0.5;
  293. }
  294. #moves {
  295. max-width: 600pt;
  296. }
  297. }
  298. @media (max-aspect-ratio: 1/1) {
  299. #desc {
  300. flex: 0.3;
  301. }
  302. #actions {
  303. flex: 0.5;
  304. }
  305. }
  306. #moves {
  307. padding: 25px;
  308. position: relative;
  309. background: rgba(255, 255, 255, 0.1);
  310. flex: 1;
  311. }
  312. #move-holder {
  313. width: 90%;
  314. height: 90%;
  315. position: absolute;
  316. top: 5%;
  317. left: 50%;
  318. transform: translate(-50%, 0);
  319. display: grid;
  320. grid-template-columns: auto auto auto;
  321. grid-template-rows: auto auto auto auto;
  322. column-gap: 8pt;
  323. row-gap: 8pt;
  324. }
  325. .move-button {
  326. user-select: none;
  327. background-color: #888;
  328. color: #eee;
  329. border-radius: 5px;
  330. border-style: outset;
  331. border-color: #999;
  332. font-size: 24px;
  333. }
  334. .move-button:active {
  335. background-color: #666;
  336. border-color: #333;
  337. }
  338. .move-button.disabled {
  339. border-style: inset;
  340. border-color: #222;
  341. }
  342. .move-button.disabled:active {
  343. border-style: inset;
  344. border-color: #222;
  345. }
  346. #move-up-left {
  347. grid-column-start: 1;
  348. }
  349. #move-up {
  350. grid-column-start: 2;
  351. }
  352. #move-up-right {
  353. grid-column-start: 3;
  354. }
  355. #move-left {
  356. grid-column-start: 1;
  357. }
  358. #move-right {
  359. grid-column-start: 3;
  360. }
  361. #move-down-left {
  362. grid-column-start: 1;
  363. }
  364. #move-down {
  365. grid-column-start: 2;
  366. }
  367. #move-down-right {
  368. grid-column-start: 3;
  369. }
  370. #move-ascend {
  371. grid-column-start: 1;
  372. }
  373. #move-descend {
  374. grid-column-start: 3;
  375. }
  376. .move-button:focus {
  377. outline: 0px;
  378. }
  379. .disabled {
  380. background-color: #444;
  381. }
  382. .disabled:active {
  383. background-color: #444;
  384. }
  385. .disabled:focus {
  386. outline: none;
  387. }
  388. .missing,
  389. .disabled.missing {
  390. background-color: #333;
  391. color: #aaa;
  392. }
  393. #area-name {
  394. margin: 10px 0px;
  395. padding: 10px;
  396. background: rgba(255,255,255,0.07);
  397. font-size: 36px;
  398. }
  399. #area-desc {
  400. margin: 10px 0px;
  401. padding: 10px;
  402. background: rgba(255,255,255,0.07);
  403. }
  404. #area-info {
  405. margin: 10px 0px;
  406. padding: 10px;
  407. background: rgba(255,255,255,0.07);
  408. flex: 5;
  409. }
  410. #log::-webkit-scrollbar {
  411. width: 3px;
  412. height: 2px;
  413. }
  414. #log::-webkit-scrollbar-button {
  415. width: 0px;
  416. height: 0px;
  417. }
  418. #log::-webkit-scrollbar-thumb {
  419. background: #e1e1e1;
  420. border: 0px none #ffffff;
  421. border-radius: 50px;
  422. }
  423. #log::-webkit-scrollbar-thumb:hover {
  424. background: #ffffff;
  425. }
  426. #log::-webkit-scrollbar-thumb:active {
  427. background: #000000;
  428. }
  429. #log::-webkit-scrollbar-track {
  430. background: #666666;
  431. border: 0px none #ffffff;
  432. border-radius: 50px;
  433. }
  434. #log::-webkit-scrollbar-track:hover {
  435. background: #666666;
  436. }
  437. #log::-webkit-scrollbar-track:active {
  438. background: #333333;
  439. }
  440. #log::-webkit-scrollbar-corner {
  441. background: transparent;
  442. }
  443. #story-info {
  444. display: grid;
  445. align-items: center;
  446. grid-template-columns: repeat(1, minmax(240px, 1fr));
  447. }
  448. .tooltip {
  449. position: relative;
  450. }
  451. .tooltip::before {
  452. content: attr(data-tooltip);
  453. position: absolute;
  454. display: none;
  455. background: gray;
  456. left: 50%;
  457. top: 0%;
  458. transform: translate(48pt, -100%);
  459. padding: 5pt;
  460. color: #eee;
  461. border-radius: 5pt;
  462. pointer-events: none;
  463. }
  464. .tooltip:hover::before {
  465. display: inline-block;
  466. }