-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.css
104 lines (85 loc) · 1.49 KB
/
app.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
/* toggle class */
.winner {
color: green;
}
.loser {
color: red;
}
/* Main styling */
body {
align-items: center;
height: 100vh;
}
.main {
display: flex;
width: 50%;
height: 400px;
margin: auto auto;
margin-top: 20px;
flex-direction: column;
border: solid 5px black;
border-radius: 10%;
}
.score {
text-align: center;
font-size: 64px;
}
.instruction {
text-align: center;
font-size: 2em;
font-family: Arial, Helvetica, sans-serif;
border-bottom: solid 5px black;
}
.button-section {
display: flex;
justify-content: flex-start;
margin-top: 20px;
}
.button {
width: calc(100%/3);
height: 100%;
font-size: 1.2em;
border: none;
}
.button.p1 {
background-color: red;
}
.button.p1:hover {
box-shadow: 0 0.5em 0.5em -0.4em red;
transform: translateY(-0.1em);
}
.button.p2 {
background-color: #2cd82c;
}
.button.p2:hover {
box-shadow: 0 0.5em 0.5em -0.4em #2cd82c;
transform: translateY(-0.1em);
}
.button.reset {
background-color: #b2a5a5;
}
.button.reset:hover {
box-shadow: 0 0.5em 0.5em -0.4em #b2a5a5;
transform: translateY(-0.1em);
}
.maxscore {
text-align: center;
}
.maxscore label {
font-size: 1.5em;
font-weight: bold;
}
#maxscore-select {
width: 10%;
height: 30px;
background-color: #a9f1d9;
font-size: 0.7em;
}
@media(max-width: 600px) {
.main {
width: 90%;
}
.button-section {
margin-top: 10px;
}
}