-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
98 lines (85 loc) · 1.65 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
/* Good practice when using a lot of custom controls */
* {
margin: 0;
padding: 0;
}
#title {
font-size: 60px;
color: white;
}
.myGame {
height: 1500px;
background-image: url("assets_game/111.webp");
background-size: cover;
background-repeat: no-repeat;
}
body {
background-color: wheat;
text-align: center;
}
.container {
height: 70vh;
display: flex;
justify-content: center;
align-items: center;
}
.card {
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}
.game {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 1rem;
}
.box {
height: 100px;
width: 100px;
border-radius: 1rem;
border: 2px solid black;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.8);
font-size: 2rem;
color: rgb(239, 4, 161);
background-color: whitesmoke;
display: flex;
justify-content: center;
align-items: center;
transition: transform 0.2s, background-color 0.2s;
}
.box:hover {
transform: scale(1.1);
background-color: lightgray;
}
#reset-btn,
#new-btn {
padding: 1rem;
font-size: 1.25rem;
background-color: black;
color: white;
border-radius: 1rem;
border: none;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}
#reset-btn:hover,
#new-btn:hover {
background-color: darkgray;
transform: scale(1.1);
}
#msg {
color: white;
font-size: 50px;
}
.msg-container {
height: 110vmin;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 2rem;
}
.hide {
display: none;
}