-
Notifications
You must be signed in to change notification settings - Fork 0
/
connect4.css
147 lines (122 loc) · 2.28 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
142
143
144
145
146
147
body {
background-color: rgb(3, 0, 0);
color: #008F11;
}
#flex-box{
display: flex;
flex-wrap:wrap;
/* justify-content: space-around; */
align-items:center;
align-content:space-around;
align-items: center;
margin:0 auto;
/* width:80%; */
}
.hidden{
visibility:hidden;
height:100px;
}
#title {
width: 100%;
padding-top: 4em;
padding-bottom: .2em;
text-align: center;
/* background-color:tomato; */
font-size: 2.8rem;
font-family: 'Press Start 2P', cursive;
perspective: 500px;
}
#start-menu {
width: 100%;
text-align: center;
flex-wrap:wrap;
/* justify-content: space-around; */
/* align-items:center;
/* align-content:space-around; */
/* align-items: center; */
}
button{
font-family: 'Press Start 2P', cursive;
border:none;
border-radius: 10px;
background-color:#008F11;;
height:2em;
width:500px;
margin-bottom:40px;
font-size: 1em ;
color:white;
}
#start-menu button:hover {
background-color: rgb(216, 216, 216);
border-style:none;
}
#game{
/* width: 50%;
height:80%; */
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
/* justify-content: space-between; */
}
/* game board table */
#board td {
width: 50px;
height: 50px;
border: solid 2px rgb(55, 136, 1);
border-radius: 10%;
margin:10px;
}
/* pieces are div within game table cells: draw as colored circles */
.piece {
/* TODO: make into circles */
border-radius: 50%;
margin: 0 auto;
width: 80%;
height: 80%;
}
.piece.p1{
background-color:rgb(2, 56, 231);
}
.piece.p2{
background-color: rgb(120, 211, 2);
}
/* TODO: make pieces red/blue, depending on player 1/2 piece */
/* column-top is table row of clickable areas for each column */
#column-top td {
border: dashed 2px rgb(211, 211, 211);
border-radius: 50%;
}
#column-top td:hover {
background-color: rgb(216, 216, 216);
border-style:none;
}
@media (max-width: 1200px) {
#title{
font-size: 3.4rem;
}
button{
height:2.4em;
width:620px;
font-size:2em;
}
#board td {
width: 90px;
height: 90px;
}
}
#really {
visibility: hidden;
position:relative;
width:500px;
padding-top:150px;
/* top:100px; */
left: 100px;
}
#whatThe {
visibility: hidden;
position:absolute;
width: 380px ;
left: 250px;
top:-10px;
}