style.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. *,
  2. *::before,
  3. *::after {
  4. box-sizing: border-box;
  5. }
  6. body {
  7. background-color: rgb(26, 104, 26);
  8. }
  9. .wrapper {
  10. overflow: hidden;
  11. position: relative;
  12. width: 100%;
  13. }
  14. .start-and-score {
  15. text-align: center;
  16. }
  17. .score,
  18. .button {
  19. color: #fff;
  20. }
  21. .button {
  22. border: none;
  23. background-color: rgb(11, 63, 11);
  24. padding: 8px 18px;
  25. border-radius: 6px;
  26. font-weight: 600;
  27. cursor: pointer;
  28. }
  29. button[disabled] {
  30. cursor: default;
  31. opacity: 0.5;
  32. }
  33. .play-ground {
  34. width: 600px;
  35. height: 600px;
  36. display: flex;
  37. flex-wrap: wrap;
  38. margin: 0 auto;
  39. }
  40. .section {
  41. width: calc(100% / 3);
  42. text-align: center;
  43. position: relative;
  44. overflow: hidden;
  45. }
  46. .mole,
  47. .drit,
  48. .boom {
  49. position: absolute;
  50. left: 50%;
  51. transform: translateX(-50%);
  52. }
  53. .mole {
  54. max-width: 35%;
  55. width: 100%;
  56. top: 75%;
  57. transition: all 0.5s;
  58. }
  59. .drit {
  60. max-width: 65%;
  61. z-index: 1;
  62. bottom: 0;
  63. }
  64. .active {
  65. top: 50%;
  66. }
  67. .boom {
  68. width: 30%;
  69. height: 30%;
  70. bottom: 20%;
  71. transform: translateX(-50%) scale(0);
  72. transition: all 0.3s;
  73. }
  74. .boom-for-mole {
  75. transform: translateX(-50%) scale(100%);
  76. }
  77. .leaderboard {
  78. display: none;
  79. position: absolute;
  80. left: 50%;
  81. top: 50%;
  82. transform: translate(-50%, -50%);
  83. background-color: rgb(26, 104, 26);
  84. color: #fff;
  85. padding: 10px;
  86. z-index: 3;
  87. border-radius: 6px;
  88. }
  89. .overlay {
  90. position: fixed;
  91. display: none;
  92. width: 100%;
  93. height: 100%;
  94. top: 0;
  95. left: 0;
  96. right: 0;
  97. bottom: 0;
  98. background-color: rgba(0, 0, 0, 0.5);
  99. z-index: 2;
  100. cursor: pointer;
  101. }