-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
96 lines (85 loc) · 1.72 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
body {
min-height: 100vh;
background: linear-gradient(135deg, #1e3c72, #2a5298);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
}
h1 {
font-size: 3rem;
margin-bottom: 2rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.board {
display: grid;
grid-template-columns: repeat(3, 100px);
gap: 10px;
background: rgba(255,255,255,0.1);
padding: 20px;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.cell {
width: 100px;
height: 100px;
background: rgba(255,255,255,0.1);
border: none;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 48px;
cursor: pointer;
transition: all 0.3s ease;
}
.cell:hover {
background: rgba(255,255,255,0.2);
transform: scale(1.05);
}
.status {
text-align: center;
font-size: 1.5rem;
margin: 2rem 0;
padding: 1rem;
background: rgba(255,255,255,0.1);
border-radius: 10px;
width: 80%;
max-width: 400px;
}
.restart {
background: #4CAF50;
color: white;
border: none;
padding: 15px 30px;
font-size: 1.2rem;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.restart:hover {
background: #45a049;
transform: translateY(-2px);
}
@media (max-width: 480px) {
.board {
grid-template-columns: repeat(3, 80px);
gap: 8px;
}
.cell {
width: 80px;
height: 80px;
font-size: 36px;
}
h1 {
font-size: 2rem;
}
}