-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnect4.css
141 lines (114 loc) · 2.39 KB
/
connect4.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
/* General Styles */
.container{
display: grid;
justify-content: center;
grid-template-columns: 207px repeat(auto-fit, minmax(500px, 500px)) 215px;
grid-template-rows: 0;
grid-gap: 80px;
}
body{
background: url('./bg.jpeg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
/* Menu Styles */
.menu{
background: rgba(0,0,0,0.2);
border-radius: 20px;
border: 5px solid black;
}
h2, h3, h4, span, #p1, #p2, #p1Icon, #p2Icon, #restart, #submit, #hInput, #wInput{
font-family: 'Black Ops One', cursive;
}
h2{
text-decoration: underline;
padding-left: 23px;
}
h3{
margin-left: 30px;
}
#restart, #update, #reset{
width: 195px;
height: 50px;
font-size: 20px;
font-family: 'Black Ops One', cursive;
}
#update{
margin-top: 20px;
}
/* Players */
.players{
background: rgba(255, 0, 0, 0.3);
border-radius: 20px;
border: 5px solid black;
}
#p1Icon, #p2Icon, #p1, #p2{
margin-left: 10px;
}
#p1Icon, #p2Icon{
font-size: 20px;
}
#p1, #p2{
font-size: 35px;
transform: translateY(-20px);
}
#scores{
transform: translateX(-7px);
}
/* Title styles */
#title{
padding-top: 5vh;
font-family: 'Black Ops One', cursive;
font-size: 65px;
margin-left: 35%;
}
.blink-text{
color: #000;
font-weight: bolder;
font-size: 2rem;
animation: blinkingText 1.1s infinite;
}
@keyframes blinkingText{
0% { color: #10c018;}
25% { color: #fffb00;}
50% { color: #ef0a1a;}
75% { color: #000000;}
100% { color: #04a1d5;}
}
/* game board table */
#board td {
width: 50px;
height: 50px;
border: solid 1px #666;
background-color: white;
border-radius: 50%;
}
#board{
background: rgba(238, 238, 238, 0.3);
}
.piece {
margin: 5px;
width: 80%;
height: 80%;
border-radius: 50%;
}
.p1{
background: red;
}
.p2{
background: black;
}
/* column-top is table row of clickable areas for each column */
#column-top td {
border: dashed 5px black;
background-color: rgb(215, 241, 129);
}
#column-top td:hover {
background-color: gold;
}
/* Misc */
.stopClicks{
pointer-events: none;
}