style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. *,
  2. *:before,
  3. *:after {
  4. box-sizing: border-box;
  5. }
  6. body {
  7. margin: 0;
  8. background-color: darkgreen;
  9. overflow: hidden;
  10. position: relative;
  11. cursor: none;
  12. position: relative;
  13. }
  14. .header {
  15. height: 10vh;
  16. display: flex;
  17. justify-content: end;
  18. justify-items: center;
  19. color:white;
  20. padding: 20px 30px;
  21. font-size: 30px;
  22. font-weight: bolder;
  23. user-select: none;
  24. }
  25. #score {
  26. color:red;
  27. padding: 0 20px;
  28. user-select: none;
  29. }
  30. .playing_field {
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. flex-wrap: wrap;
  35. height: calc(90vh);
  36. visibility: hidden;
  37. }
  38. .rectangle {
  39. width: calc((100% / 3) - 20px);
  40. margin: 10px;
  41. height: calc(90vh / 2 - 20px);
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. visibility: inherit;
  46. }
  47. .beaverHome {
  48. width: 50%;
  49. aspect-ratio: 1;
  50. background-color: orange;
  51. border-radius: 50%;
  52. position: relative;
  53. overflow: hidden;
  54. visibility: inherit;
  55. }
  56. .beaver {
  57. width: 100%;
  58. height: 100%;
  59. /*background-color: brown;*/
  60. background-image: url(putin.png);
  61. background-position: center;
  62. background-size: cover;
  63. background-repeat: no-repeat;
  64. position: absolute;
  65. top: -50%;
  66. left: 50%;
  67. transform: translate(-50% , -50%);
  68. transition: 0.5s;
  69. visibility: inherit;
  70. }
  71. .cursor {
  72. width: 100px;
  73. height: 100px;
  74. position: absolute;
  75. background-image: url('aim.png');
  76. background-size: cover;
  77. top: 0px;
  78. left: 0px;
  79. transform: translate(-50% , -50%);
  80. pointer-events: none;
  81. }
  82. #buttonStart{
  83. max-width: 200px;
  84. height: 100px;
  85. position: absolute;
  86. top: 50%;
  87. left: 50%;
  88. transform: translate(-50%, -50%);
  89. transition: 0.2s;
  90. background-color: #006400;
  91. display: flex;
  92. align-items: center;
  93. text-align: center;
  94. padding: 10px;
  95. border-radius: 10px;
  96. color: white;
  97. font-size: 30px;
  98. font-weight:500;
  99. letter-spacing: 2px;
  100. user-select: none;
  101. font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  102. box-shadow: 0 4px 22px rgba(0,0,0, 0.25), inset 0 3px 0 rgba(255,255,255, 0.2), 0 3px 0 rgba(0,0,0, 0.1), inset 0 0 22px rgba(0,0,0, 0.1);
  103. }
  104. #buttonStart img {
  105. width: 30%;
  106. margin-right: 10px;
  107. }