style.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. /*Credit
  2. http://www.flaticon.com/free-icon/press-button_1402#term=click&page=1&position=18
  3. http://www.flaticon.com/free-icon/play-arrow_60813#term=right&page=1&position=21
  4. http://www.flaticon.com/free-icon/like_148836#term=heart&page=1&position=1
  5. https://www.freesound.org/people/jcallison/sounds/258269/
  6. https://www.freesound.org/people/shinephoenixstormcrow/sounds/337049/
  7. https://www.freesound.org/people/rhodesmas/sounds/342751/
  8. https://www.freesound.org/people/acclivity/sounds/18923/
  9. https://www.freesound.org/people/soundnimja/sounds/173320/
  10. https://www.freesound.org/people/distillerystudio/sounds/327736/
  11. https://www.freesound.org/people/original_sound/sounds/366103/
  12. */
  13. body {
  14. background: rgb(230, 230, 230);
  15. -webkit-user-select: none;
  16. -moz-user-select: none;
  17. -ms-user-select: none;
  18. -o-user-select: none;
  19. user-select: none;
  20. }
  21. /*ROUND BUTTON*/
  22. .round-button {
  23. /*transition: filter .5s;*/
  24. /*-webkit-transition: -webkit-filter .5s;*/
  25. width:85%;
  26. position: relative;
  27. top: 50%;
  28. left: 50%;
  29. transform: translate(-50%,-60%);
  30. -webkit-transform: translate(-50%,-60%);
  31. }
  32. .round-button-inside {
  33. width: 100%;
  34. height:0;
  35. padding-bottom: 100%;
  36. border-radius: 50%;
  37. border:10px solid #cfdcec;
  38. overflow:hidden;
  39. }
  40. .round-button a {
  41. display:block;
  42. float:left;
  43. width:100%;
  44. padding-top:50%;
  45. padding-bottom:50%;
  46. line-height:1em;
  47. margin-top:-0.5em;
  48. text-align:center;
  49. color:#e2eaf3;
  50. font-family:Verdana;
  51. font-size:5em;
  52. font-weight:bold;
  53. text-decoration:none;
  54. }
  55. /*Blue*/
  56. .blue .round-button-inside{
  57. background: #4679BD;
  58. box-shadow: 0 0 3px gray;
  59. }
  60. .blue .round-button-inside:hover {
  61. background: #4073B7;
  62. }
  63. /*Red*/
  64. .red .round-button-inside{
  65. background: #c34141;
  66. box-shadow: 0 0 3px gray;
  67. }
  68. .red .round-button-inside:hover {
  69. background: #be3b3b;
  70. }
  71. /*Green*/
  72. .green .round-button-inside{
  73. background: #46bd5a;
  74. box-shadow: 0 0 3px gray;
  75. }
  76. .green .round-button-inside:hover {
  77. background: #40b754;
  78. }
  79. /*TRIANGLE BUTTON*/
  80. .triangle-button {
  81. /*transition: filter .5s;*/
  82. /*-webkit-transition: -webkit-filter .5s;*/
  83. width:85%;
  84. position: relative;
  85. top: 50%;
  86. left: 50%;
  87. transform: translate(-50%,-60%);
  88. -webkit-transform: translate(-50%,-60%);
  89. }
  90. .triangle-button-inside {
  91. width: 100%;
  92. height:0;
  93. background-size:100%;
  94. padding-bottom: 100%;
  95. overflow:hidden;
  96. }
  97. .triangle-button a {
  98. display:block;
  99. float:left;
  100. width:100%;
  101. padding-top:50%;
  102. padding-bottom:50%;
  103. line-height:1em;
  104. margin-top:-0.5em;
  105. text-align:center;
  106. color:#e2eaf3;
  107. font-family:Verdana;
  108. font-size:5em;
  109. font-weight:bold;
  110. text-decoration:none;
  111. }
  112. /*Blue*/
  113. .blue .triangle-button-inside{
  114. background-image: url("img/blueright.png");
  115. }
  116. /*Red*/
  117. .red .triangle-button-inside{
  118. background-image: url("img/redright.png");
  119. }
  120. /*Green*/
  121. .green .triangle-button-inside{
  122. background-image: url("img/greenright.png");
  123. }
  124. /*Overlay*/
  125. .overlay{
  126. width: 100%;
  127. height: 100%;
  128. position: absolute;
  129. top: 0;
  130. bottom: 0;
  131. padding: 0;
  132. margin: 0;
  133. left: 0;
  134. right: 0;
  135. }
  136. .overlayText {
  137. text-align: center;
  138. color: rgb(224, 224, 224);
  139. font-family: Helvetica;
  140. font-size: 3em;
  141. }
  142. /*Loser*/
  143. .loser .button {
  144. filter: blur(10px);
  145. -webkit-filter: blur(10px);
  146. }
  147. .loser #loserOverlay{
  148. display: block;
  149. opacity: 1;
  150. }
  151. #loserOverlay {
  152. /*transition: opacity .4s;*/
  153. /*-webkit-transition: opacity .4s;*/
  154. background: rgba(0, 0, 0, 0.60);
  155. }
  156. #loserOverlay #loserText {
  157. position: relative;
  158. top: 7%;
  159. }
  160. #loserOverlay #loserGoToMenu {
  161. bottom: 1%;
  162. position: absolute;
  163. text-align: center;
  164. left: 50%;
  165. transform: translate(-50%, -50%);
  166. -webkit-transform: translate(-50%, -50%);
  167. }
  168. #loserOverlay #loserText #loserScore{
  169. font-size: .5em;
  170. margin-top: 10px;
  171. }
  172. #loserOverlay #loserText #loserScore a {
  173. font-weight: bold;
  174. font-size: 1.1em;
  175. }
  176. #loserOverlay #highScoreText {
  177. font-size: .4em;
  178. color: rgb(200,200,200);
  179. margin-top: 5px;
  180. }
  181. #loserOverlay{
  182. display: none;
  183. opacity: 0;
  184. }
  185. #heartRespawn {
  186. width: 100px;
  187. height: 100px;
  188. background-position-y: -20px;
  189. margin-top: 20px;
  190. left: 50%;
  191. position: relative;
  192. transform: translateX(-50%);
  193. -webkit-transform: translateX(-50%);
  194. margin-bottom: 20px;
  195. background-image: url(img/heart.png);
  196. background-size: 100px;
  197. background-repeat: no-repeat;
  198. }
  199. #loserOverlay #newScore.highscore{
  200. font-size: 0.7em;
  201. margin-top: 20px;
  202. color: rgba(255, 255, 255, 1);
  203. border: 1px solid white;
  204. padding: 10px;
  205. margin-left: 20px;
  206. margin-right: 20px;
  207. background: rgba(200,200,200,.2);
  208. overflow: hidden;
  209. position: relative;
  210. }
  211. @keyframes sheen {
  212. 100% {
  213. transform: rotateZ(60deg) translate(0, -7em);
  214. -webkit-transform: rotateZ(60deg) translate(0, -7em);
  215. }
  216. }
  217. @-webkit-keyframes sheen {
  218. 100% {
  219. transform: rotateZ(60deg) translate(0, -7em);
  220. -webkit-transform: rotateZ(60deg) translate(0, -7em);
  221. }
  222. }
  223. #newScore.highscore:after {
  224. animation: sheen 5s ease .5s infinite forwards;
  225. -webkit-animation: sheen 5s ease .5s infinite forwards;
  226. content: '';
  227. position: absolute;
  228. top: 0;
  229. right: 0;
  230. bottom: 0;
  231. left: 0;
  232. background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15) 35%, transparent);
  233. transform: rotateZ(60deg) translate(-1em, 7em);
  234. -webkit-transform: rotateZ(60deg) translate(-1em, 7em);
  235. }
  236. #loserOverlay #newScore.normalScore{
  237. font-size: 0.5em;
  238. margin-top: 20px;
  239. padding: 10px;
  240. margin-left: 40px;
  241. margin-right: 40px;
  242. background: rgba(200,200,200,.1);
  243. overflow: hidden;
  244. position: relative;
  245. }
  246. /*Menu*/
  247. .menu .button {
  248. filter: blur(20px);
  249. -webkit-filter: blur(20px);
  250. }
  251. .menu #menuOverlay{
  252. display: block;
  253. opacity: 1;
  254. }
  255. #menuOverlay #menuText {
  256. position: relative;
  257. top: 16%;
  258. text-align: center;
  259. color: rgb(224, 224, 224);
  260. font-family: Helvetica;
  261. font-size: 3em;
  262. }
  263. #menuOverlay{
  264. background: rgba(0, 0, 0, 0.30);
  265. }
  266. #menuOverlay{
  267. display: none;
  268. opacity: 0;
  269. }
  270. /*Settings*/
  271. .settings .button {
  272. filter: blur(20px);
  273. -webkit-filter: blur(20px);
  274. }
  275. .settings #settingsOverlay{
  276. display: block;
  277. opacity: 1;
  278. }
  279. #settingsOverlay #settingsText {
  280. position: relative;
  281. top: 20%;
  282. text-align: center;
  283. color: rgb(224, 224, 224);
  284. font-family: Helvetica;
  285. font-size: 3em;
  286. }
  287. #settingsOverlay{
  288. background: rgba(0, 0, 0, 0.30);
  289. }
  290. #settingsOverlay{
  291. display: none;
  292. opacity: 0;
  293. }
  294. #settingsOverlay #settingsGoToMenu {
  295. bottom: 1%;
  296. position: absolute;
  297. text-align: center;
  298. left: 50%;
  299. transform: translate(-50%, -50%);
  300. -webkit-transform: translate(-50%, -50%);
  301. }
  302. .offButton{
  303. text-decoration:line-through
  304. }
  305. /*Store*/
  306. .store .button {
  307. filter: blur(20px);
  308. -webkit-filter: blur(20px);
  309. }
  310. .store #storeOverlay{
  311. display: block;
  312. opacity: 1;
  313. }
  314. #storeOverlay .storeButton {
  315. position: relative;
  316. top: 55px;
  317. text-align: center;
  318. color: rgb(224, 224, 224);
  319. font-family: Helvetica;
  320. font-size: 1.7em;
  321. border: 2px solid white;
  322. margin-left: 20px;
  323. margin-right: 20px;
  324. margin-top: 15px !important;
  325. background: rgba(200,200,200,.1);
  326. transition: background 0.5s, color 0.5s, border 0.5s;
  327. -webkit-transition: background 0.5s, color 0.5s, border 0.5s;
  328. }
  329. #storeOverlay .storeButton.owned {
  330. border: 2px solid #d0d0d0 !important;
  331. color: rgb(112, 179, 152) !important;
  332. background: rgba(200,200,200,0.3) !important;
  333. }
  334. #storeOverlay .storeButton.disabled {
  335. border: 2px solid #d0d0d0 !important;
  336. color: rgba(200, 200, 200, .7) !important;
  337. background: rgba(200,200,200,0.3) !important;
  338. }
  339. #storeOverlay .storeButton.owned .title:after {
  340. content: " (bought)";
  341. font-size: .8em;
  342. opacity: .7;
  343. }
  344. #storeOverlay{
  345. background: rgba(0, 0, 0, 0.30);
  346. }
  347. #storeOverlay{
  348. display: none;
  349. opacity: 0;
  350. }
  351. #storeOverlay #storeGoToMenu, #storeOverlay #storeGoToGame, #storeOverlay #storeGoToLoser {
  352. bottom: 1%;
  353. position: absolute;
  354. text-align: center;
  355. left: 50%;
  356. transform: translate(-50%, -50%);
  357. -webkit-transform: translate(-50%, -50%);
  358. }
  359. .price {
  360. font-size: .8em;
  361. }
  362. /*Lives counter*/
  363. #lives{
  364. top:15px;
  365. right: 15px;
  366. position: fixed;
  367. z-index:1;
  368. }
  369. #livesCounter {
  370. color: rgb(180, 180, 180);
  371. font-family: Helvetica;
  372. font-size: 2.5em;
  373. display: inline-block;
  374. margin-right: 4px;
  375. transform: translateY(-5px);
  376. -webkit-transform: translateY(-5px);
  377. }
  378. #livesIcon {
  379. width: 40px;
  380. height: 40px;
  381. background-image: url("img/heart.png");
  382. background-position: 0px;
  383. background-size: 100%;
  384. display: inline-block;
  385. }
  386. /*Messages*/
  387. #message {
  388. color: rgba(88, 88, 88, .0);
  389. font-family: Helvetica;
  390. font-size: 1.5em;
  391. position: fixed;
  392. top: 13%;
  393. left: 50%;
  394. transform: translateX(-50%);
  395. -webkit-transform: translateX(-50%);
  396. transition: top 0.5s, color 0.5s;
  397. -webkit-transition: top 0.5s, color 0.5s;
  398. text-align: center;
  399. z-index:-1;
  400. }
  401. /*Credits*/
  402. .credits #creditsOverlay{
  403. display: block;
  404. opacity: 1;
  405. background: rgba(0, 0, 0, 0.30);
  406. }
  407. #creditsOverlay{
  408. display: none;
  409. }
  410. #creditsOverlay #creditsText {
  411. color: rgb(255,255,255);
  412. font-family: Helvetica;
  413. font-size: 1em;
  414. position: fixed;
  415. top: 13%;
  416. left: 50%;
  417. transform: translateX(-50%);
  418. -webkit-transform: translateX(-50%);
  419. transition: top 0.5s, color 0.5s;
  420. -webkit-transition: top 0.5s, color 0.5s;
  421. text-align: center;
  422. width: 90%;
  423. border: 2px solid whitesmoke;
  424. }
  425. #creditsOverlay #creditsText div{
  426. margin: 10px;
  427. }
  428. #creditsOverlay #creditsText a{
  429. color: aqua;
  430. }
  431. .credits .button {
  432. filter: blur(10px);
  433. -webkit-filter: blur(10px);
  434. }
  435. /*Splash screen*/
  436. .splash #splashScreen {
  437. display: block;
  438. opacity: 1;
  439. background: rgb(230,230,230);
  440. }
  441. #splashScreen{
  442. display: none;
  443. width: 100%;
  444. height: 100%;
  445. position: absolute;
  446. top: 0;
  447. bottom: 0;
  448. padding: 0;
  449. margin: 0;
  450. left: 0;
  451. right: 0;
  452. z-index:5;
  453. }
  454. #splashScreen img {
  455. top: 50%;
  456. width: 90%;
  457. position: fixed;
  458. transform: translate(-50%, -50%);
  459. -webkit-transform: translate(-50%, -50%);
  460. left: 50%;
  461. }