-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (71 loc) · 1.33 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
:root {
--first-color: #FF204E;
--second-color: #A0153E;
--third-color: #5D0E41;
--fourth-color: #00224D;
}
#game-board {
display: grid;
grid-template-columns: repeat(3, 15vw);
grid-template-rows: repeat(3, 20vh);
}
#game-board div {
display: grid;
place-items: center;
background-color: var(--third-color);
font-size: 10vh;
text-align: center;
border: 1px solid black;
cursor: pointer;
transition: 0.7s;
}
body {
background-color: var(--first-color);
display: flex;
flex-direction: column;
gap: 2rem;
align-items: center;
justify-content: center;
color: var(--fourth-color);
font-size: 2rem;
}
label {
display: flex;
gap: 20px;
letter-spacing: 1rem;
}
#playerNames {
display: flex;
flex-direction: column;
gap: 1rem;
}
button {
padding: 1rem;
font-size: 1rem;
background-color: var(--second-color);
border: 0;
margin: 1rem;
border-radius: 2%;
transition: 0.5s;
cursor: pointer;
}
button:hover,
#game-board div:hover {
opacity: 50%;
color: #ffff;
transition: 0.5s;
}
#game-board div:hover {
transition: 0.7s;
}
input {
border: 0;
text-align: center;
background-color: var(--second-color);
font-size: 1rem;
}
input:hover {
border: 0;
opacity: 50%;
background-color: #ffff;
}