-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (82 loc) · 1.74 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #1f4037, #99f2c8);
color: #fff;
}
.game-container {
text-align: center;
background: #2c3e50;
padding: 40px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
max-width: 400px;
width: 100%;
}
h1 {
font-size: 48px;
margin-bottom: 25px;
letter-spacing: 1px;
}
.choices {
display: flex;
justify-content: space-around;
margin: 30px 0;
}
.choice {
background: #27ae60;
border: none;
border-radius: 50%;
padding: 20px;
font-size: 48px;
color: white;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
}
.choice:hover {
transform: scale(1.15);
background-color: #2ecc71;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.choice:active {
transform: scale(0.95);
background-color: #1e8449;
}
.result {
margin-top: 20px;
}
.result h2 {
font-size: 26px;
margin-bottom: 10px;
color: #f1c40f;
letter-spacing: 1px;
}
.score {
font-size: 20px;
margin-top: 10px;
}
.score span {
font-weight: bold;
color: #ecf0f1;
}
#result-text {
font-size: 24px;
margin-bottom: 15px;
text-transform: uppercase;
display: inline;
padding: 0.5rem;
border-radius: 0.5rem;
}