-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
140 lines (136 loc) · 3.1 KB
/
index.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
@import url('https://fonts.googleapis.com/css2?family=Rubik+Glitch&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Doodle+Shadow&display=swap');
.Game_container{
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.title{
display: grid;
align-items: center;
justify-content: center;
}
.title img{
padding: 10px;
width: 600px;
height: 200px;
}
.computer{
padding-right: 250px;
display: grid;
}
.computer h1{
font-family: 'Rubik Glitch', system-ui;
font-weight: 100;
font-size: 2.3em;
}
.computer button,.user button{
cursor: pointer;
margin: 20px;
border: none;
animation-name: shake;
animation-duration: 0.5s;
animation-iteration-count: infinite;
animation-direction: alternate;
background: none;
}
.computer img,.user img{
height: 100px;
width: 100px;
}
.user{
padding-left: 250px;
display: grid;
}
.user h1{
font-family: 'Rubik Doodle Shadow', system-ui;
font-size: 2.3em;
margin-left: 50px
}
.user button:hover{
transition: 0.5s;
transform: scale(1.5);
animation: none;
}
.ans{
position: absolute;
height: 300px;
width: 470px;
background: rgb(0, 0, 0);
box-shadow: 5px 5px 15px 10px rgb(0, 0, 0);
border-radius: 12px;
margin-left: 30px;
display: flex;
}
.ans h1{
position: absolute;
margin-left: 130px;
margin-top: 80px;
font-weight: 900;
color: rgb(255, 255, 255);
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
@keyframes shake{
from{transform: translateY(10%);}
}
.comAns{
margin-top: 150px;
margin-left: 80px;
height: 100px;
width: 100px;
background: rgba(0, 0, 0, 0);
}
.userAns{
height: 100px;
width: 100px;
margin-top: 150px;
margin-left: 100px;
background: rgba(0, 0, 0, 0);
}
.comAns img,.userAns img{
height: 100px;
width: 100px;
display: none;
}
.ans h2{
margin-left: 20px;
position: absolute;
font-weight: 900;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: white;
&:nth-child(2){
margin-left: 160px;
color: rgb(118, 221, 118);
}
&:nth-child(3){
color: rgb(214, 96, 96);
margin-left: 260px;
}
&:nth-child(4){
color: rgb(76, 216, 216);
margin-left: 380px;
}
}
.reset button{
position: absolute;
left: 48%;
bottom: 170px;
height: 40px;
width: 100px;
background: none;
border: 3px solid white;
cursor: pointer;
font-weight: 900;
font-size: 1.2em;
color: rgb(255, 255, 255);
}
.me{
position: absolute;
color: black;
cursor: pointer;
left: 47%;
font-size: 1.5em;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}