base.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
  2. body {
  3. width: 100%;
  4. height: 100%;
  5. position: absolute;
  6. background: #000000;
  7. margin: 0;
  8. padding: 0;
  9. overscroll-behavior: none;
  10. }
  11. .container {
  12. width: 100%;
  13. height: 100%;
  14. position: relative;
  15. }
  16. .ui {
  17. width: 100%;
  18. height: 100%;
  19. position: absolute;
  20. top: 0;
  21. left: 0;
  22. font-family: 'Press Start 2P', cursive;
  23. }
  24. @keyframes game-over-anim {
  25. from {
  26. opacity: 0.0;
  27. }
  28. to {
  29. opacity: 1.0;
  30. }
  31. }
  32. .game-over-layout {
  33. opacity: 0.0;
  34. visibility: hidden;
  35. height: 100%;
  36. width: 100%;
  37. background: rgba(0, 0, 0, 0.75);
  38. display: flex;
  39. flex-direction: row;
  40. justify-content: center;
  41. align-items: center;
  42. z-index: 1;
  43. }
  44. .game-over-layout.active {
  45. opacity: 1.0;
  46. visibility: visible;
  47. transition: opacity 0.5s ease-in-out;
  48. }
  49. .game-over-text {
  50. font-size: 5em;
  51. color: white;
  52. text-shadow: 8px 8px black;
  53. }
  54. .score-text {
  55. font-size: 3em;
  56. color: white;
  57. padding: 2em;
  58. text-shadow: 5px 5px black;
  59. }
  60. .score-layout {
  61. display: flex;
  62. flex-direction: row;
  63. justify-content: flex-end;
  64. align-items: flex-end;
  65. }
  66. .game-menu-layout {
  67. width: 100%;
  68. height: 100%;
  69. background: white;
  70. display: flex;
  71. flex-direction: row;
  72. justify-content: center;
  73. align-items: flex-start;
  74. font-family: 'Segoe UI', Tahoma, sans-serif;
  75. }
  76. .game-menu-window {
  77. display: flex;
  78. flex-direction: column;
  79. justify-content: center;
  80. width: 400px;
  81. }
  82. .game-menu-window > img {
  83. width: 64px;
  84. height: 64px;
  85. padding-top: 100px;
  86. image-rendering: pixelated;
  87. }
  88. .game-menu-window > h1 {
  89. font-size: 1.6em;
  90. line-height: 1.25em;
  91. font-weight: 500;
  92. color: rgb(32, 33, 36);
  93. }
  94. .game-menu-window > p, li {
  95. margin: 0;
  96. font-size: 1em;
  97. line-height: 1.55em;
  98. color: rgb(95, 99, 104);
  99. }
  100. .game-menu-window > #error {
  101. margin: 0;
  102. font-size: 0.8em;
  103. line-height: 1.55em;
  104. color: rgb(95, 99, 104);
  105. margin-top: 12px;
  106. }