-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
101 lines (86 loc) · 2.15 KB
/
style.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
96
97
98
99
100
101
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Arial', sans-serif;
background: linear-gradient(to right, #ff758c, #ff7eb3);
color: #fff;
background-image: url("./images/back.jpg");
background-repeat: no-repeat;
background-size: cover;
}
.game-container {
text-align: center;
background: rgba(255, 255, 255, 0.1);
padding: 2em;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
}
h1 {
margin-bottom: 1em;
font-size: 2.5em;
}
#rock{
background-image: url("./images/rock.jpeg");
background-repeat: no-repeat;
background-size: cover;
color: black;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
#paper{
background-image: url("./images/paper1.jpeg");
background-repeat: no-repeat;
background-size: cover;
color: black;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
#scissors{
background-image: url("./images/s.png");
color: black;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
.choices {
display: flex;
justify-content: center;
margin: 1em 0;
}
.choice {
margin: 0 1em;
padding: 0.75em 1.5em;
font-size: 2em;
cursor: pointer;
border: none;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
color: #fff;
transition: background 0.3s, transform 0.3s;
display: flex;
align-items: center;
justify-content: center;
}
.choice:hover {
background: rgba(255, 255, 255, 0.5);
transform: scale(1.2);
}
.choice i {
pointer-events: none;
}
.result {
margin-top: 2em;
background: rgba(169, 132, 132, 0.2);
padding: 1em;
border-radius: 10px;
font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.result p {
font-size: 1.25em;
margin: 0.5em 0;
}
.result span {
font-weight: bold;
color: #ffeb3b;
text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}