-
Notifications
You must be signed in to change notification settings - Fork 0
/
PRODIGY_WD_03.css
76 lines (67 loc) · 1.38 KB
/
PRODIGY_WD_03.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
body {
font-family: Arial, sans-serif;
background-image: url(Preview+Image.jpg);
backdrop-filter: blur(8px);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
}
h1 {
font-family: monospace;
font-size: 3em;
animation: color-change 1s infinite;
}
@keyframes color-change {
0% { color: rgb(245, 103, 103); }
25% { color: rgb(245, 243, 103); }
50% { color: rgb(116, 236, 116); }
75% { color: rgb(103, 236, 245); }
100% { color: rgb(107, 107, 223); }
}
.board {
display: grid;
grid-template-columns: repeat(3, 100px);
gap: 5px;
margin-top: 20px;
}
.cell {
width: 100px;
height: 100px;
background-color: transparent;
border: 3px solid #eeeeee;
display: flex;
justify-content: center;
align-items: center;
font-size: 2rem;
cursor: pointer;
}
.cell:hover {
background-color: #f21111;
}
.x::after {
content: 'X';
color: #f0f0f0;
}
.o::after {
content: 'O';
color: #f0f0f0;
}
button {
margin-top: 20px;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
}
button:hover {
background-color: #0056b3;
}