-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
124 lines (108 loc) · 1.89 KB
/
style.css
File metadata and controls
124 lines (108 loc) · 1.89 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
#container {
height: 100vh;
display: flex;
flex-direction: column-reverse;
justify-content: space-around;
align-items: center;
padding: 20px;
}
.btn-group {
width: 100%;
max-width: 600px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
gap: 20px;
}
button:active {
background: gray;
}
button {
text-transform: uppercase;
cursor: pointer;
flex: 1;
background-color: white;
border: 1px solid gray;
border-radius: 6px;
padding: 8px;
}
.message,
.score {
text-align: center;
}
.score {
font-size: 9rem;
}
.message {
position: relative;
top: 50px;
}
#result {
width: 100%;
max-width: 600px;
border: 1px solid;
position: relative;
}
#result::before {
content: "computer";
font-size: 18px;
font-weight: 600;
letter-spacing: 2px;
position: absolute;
top: 45%;
left: 20px;
}
#result::after {
content: "you";
font-size: 18px;
font-weight: 600;
letter-spacing: 2px;
position: absolute;
top: 45%;
right: 20px;
}
.modal {
position: fixed;
inset: 0;
background-color: rgba(128, 128, 128, 0.384);
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
}
.modal-wrap {
background: white;
padding: 20px;
border-radius: 4px;
width: 80%;
max-width: 600px;
height: 40%;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
flex-direction: column;
}
.reset {
flex-grow: 0;
}
@media screen and (max-width:450px) {
#result::after {
top: 85%;
}
#result::before {
top: 5%;
}
.modal-wrap {
text-align: center;
width: 90%;
height: 60%;
}
}