-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
83 lines (71 loc) · 1.78 KB
/
index.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
/* styles.css */
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* Prevent scrolling */
}
body {
font-family: 'Arial', sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
}
#game-container {
display: grid;
gap: 1px; /* Space between squares */
}
.square {
transition: background-color 0.3s;
box-sizing: border-box; /* Include border in the width and height */
display: flex;
align-items: center;
justify-content: center;
}
#win-message {
margin-top: 20px;
font-size: 24px;
color: #28a745;
text-align: center;
}
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}
.modal-content {
background-color: #fefefe;
padding: 20px;
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
text-align: center;
/* Centering the modal correctly */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.modal-buttons {
margin-top: 20px;
}
.modal-buttons button {
margin: 0 10px;
padding: 10px 20px;
}
/* https://isotropic.co/tool/hex-color-to-css-filter/ */
.green-filter {
filter: invert(87%) sepia(25%) saturate(612%) hue-rotate(61deg) brightness(90%) contrast(85%);
}
.red-filter {
filter: invert(64%) sepia(45%) saturate(851%) hue-rotate(310deg) brightness(103%) contrast(101%);
}
.blue-filter {
filter: invert(70%) sepia(48%) saturate(5255%) hue-rotate(208deg) brightness(104%) contrast(101%);
}