1+ * {
2+ margin : 0 ;
3+ padding : 0 ;
4+ box-sizing : border-box;
5+ font-family : Arial, Helvetica, sans-serif;
6+ }
7+ html , body {
8+ width : 100vw ;
9+ height : 100vh ;
10+ }
11+ # main {
12+ width : 100% ;
13+ height : 100% ;
14+ background-color : rgb (160 , 194 , 255 );
15+ display : flex;
16+ justify-content : center;
17+ align-items : center;
18+ }
19+ .panel {
20+ width : 80% ;
21+ height : 80% ;
22+ background-color : # fff ;
23+ border-radius : 10px ;
24+ box-shadow : 0 0 10px # 000 ;
25+ overflow : hidden;
26+ }
27+ .panel-top {
28+ width : 100% ;
29+ height : 4rem ;
30+ padding : 0 30% ;
31+ gap : 10px ;
32+ background-color : rgb (20 , 60 , 136 );
33+ font-weight : 600 ;
34+ display : flex;
35+ justify-content : space-between;
36+ align-items : center;
37+ }
38+ .pt-elem {
39+ width : fit-content;
40+ color : # fff ;
41+ gap : 15px ;
42+ display : flex;
43+ align-items : center;
44+ }
45+ .value {
46+ padding : 5px 10px ;
47+ background-color : # fff ;
48+ color : rgb (20 , 55 , 120 );
49+ font-size : 20px ;
50+ font-weight : 600 ;
51+ border-radius : 5px ;
52+ }
53+ .panel-bottom {
54+ width : 100% ;
55+ height : calc (100% - 4rem );
56+ padding : 20px ;
57+ gap : 10px ;
58+ display : inline-flex;
59+ flex-wrap : wrap;
60+ justify-content : center;
61+ align-items : center;
62+ }
63+ # game-over {
64+ padding : 10px 20px ;
65+ background-color : rgba (210 , 210 , 210 , 0.5 );
66+ color : rgb (20 , 55 , 120 );
67+ border-radius : 10px ;
68+ }
69+ .bubble {
70+ width : 40px ;
71+ height : 40px ;
72+ background-color : rgb (42 , 102 , 214 );
73+ color : # fff ;
74+ font-size : 1rem ;
75+ font-weight : 500 ;
76+ border-radius : 50% ;
77+ cursor : pointer;
78+ display : flex;
79+ justify-content : center;
80+ align-items : center;
81+ transition : all ease 0.3s ;
82+ & : hover {
83+ background-color : rgb (20 , 55 , 120 );
84+ transform : translateY (-2px );
85+ animation : bubble 0.7s linear alternate infinite;
86+ }
87+ }
88+ @keyframes bubble {
89+ 0% {
90+ scale : 0.95 ;
91+ }
92+ 100% {
93+ scale : 1.05 ;
94+ }
95+ }
0 commit comments