-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathttt.css
125 lines (105 loc) · 2.02 KB
/
ttt.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
* {
padding: 0;
margin: 0;
font-family: 'Itim', cursive;
}
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
animation: transitionIn 2s;
}
@keyframes transitionIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: rotateX(0);
}
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.background {
height: 100vh;
padding-top: 1px;
}
.title {
color: white;
text-align: center;
font-size: 40px;
margin-top: 10%;
}
.display {
color: white;
font-size: 25px;
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
}
.hide {
display: none;
}
.container {
margin: 0 auto;
display: grid;
grid-template-columns: 33% 33% 33%;
grid-template-rows: 33% 33% 33%;
max-width: 300px;
background: #000;
}
.tile {
border: 1px solid white;
min-width: 100px;
min-height: 100px;
display: flex;
justify-content: center;
align-items: center;
font-size: 50px;
cursor: pointer;
}
.playerX {
color: #09C372;
}
.playerO {
color: #498AFB;
}
.controls {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 1em;
}
.controls button {
color: white;
padding: 8px;
border-radius: 8px;
border: none;
font-size: 20px;
margin-left: 1em;
cursor: pointer;
}
.restart {
background-color: #498AFB;
}
#reset {
background-color: #FF3860;
}
h1 {
color: #f5f0e1;
text-decoration: underline;
font-family: 'Brush Script MT', cursive, sans-serif;
color: rgb(44, 80, 201);
text-decoration: underline;
}