-
Notifications
You must be signed in to change notification settings - Fork 0
/
TicGame.css
168 lines (144 loc) · 3.6 KB
/
TicGame.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* Set font for the entire document */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #e7dbdb;
}
/* Center align content in sections */
section {
text-align: center;
}
.gam--title {
font-family: Arial;
font-size: 60px;
animation: fadeIn 2.5s;
margin-bottom: 13rem;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
/* Styling for individual cells */
.cell {
font-family: "Permanent Marker", cursive;
width: 100px;
height: 100px;
border: 2px solid #ecd7ba;
cursor: pointer;
line-height: 100px;
font-size: 60px;
}
/* Styling for the game title */
.game--title {
font-size: 50px;
color: #1f1f1f;
margin: 50px auto;
opacity: .8;
}
/* Styling for the game container */
.game--container {
display: grid;
grid-template-columns: repeat(3, auto);
width: 306px;
margin: 10px auto;
background-color: #252121;
color: #04c0b2;
}
/* Styling for game status messages */
.game--status {
font-size: 50px;
color: #1ed86c;
margin: 20px auto;
}
/* Styling for game restart button */
.game--restart {
width: 200px;
border-radius: 5px;
height: 50px;
font-size: 25px;
color: #000000;
}
.game--restart{
border: 4px solid rgb(238, 233, 233) ;
box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
border-radius: 1rem;
}
/* Styling for hover effect on game restart button */
.game--restart:hover {
background-color: #3fad0b;
}
body {
margin: auto;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
overflow: auto;
background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%);
animation: gradient 15s ease infinite;
background-size: 400% 400%;
background-attachment: fixed;
}
@keyframes gradient {
0% {
background-position: 0% 0%;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0% 0%;
}
}
.wave {
background: rgb(255 255 255 / 25%);
border-radius: 1000% 1000% 0 0;
position: fixed;
width: 200%;
height: 12em;
animation: wave 10s -3s linear infinite;
transform: translate3d(0, 0, 0);
opacity: 0.8;
bottom: 0;
left: 0;
z-index: -1;
}
.gam--title{
margin-top:-0.001rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: solid 2px rgb(94, 87, 87);
padding: 2rem;
/* border-radius: 1.1rem; */
/* font-size: 1.2rem; */
background-color: #b9c4c2;
transition: 0.5s;
border-bottom-left-radius: 11rem;
border-bottom-right-radius: 11rem;
box-shadow: rgba(6, 141, 13, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
/* max-width: 50%; */
}
.game--title{
width: 18rem;
height:3rem;
margin-top:-0.001rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: solid 2px rgb(135, 144, 148);
padding: 3rem;
border-radius: 1rem;
/* font-size: 1.2rem; */
background-color: #b9c4c2;
transition: 0.5s;
box-shadow: rgba(236, 241, 236, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
/* max-width: 50%; */
}
body {
/* font-family: Arial;
font-size: 50px; */
animation: fadeIn 1.5s;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}