-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
82 lines (70 loc) · 1.4 KB
/
style.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
/* .container{
margin-left:20rem;
margin-top:15rem;
}
.col{
height:70px;
width:70px;
border:1px solid black;
}
.row{
display:flex;
} */
/* General reset for better cross-browser compatibility */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4);
font-family: Arial, sans-serif;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.title {
font-size: 2.5rem;
margin-bottom: 20px;
color: #333;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 10px;
width: 90vw;
max-width: 400px;
aspect-ratio: 1; /* Ensures the grid is always square */
}
.col {
display: flex;
justify-content: center;
align-items: center;
background-color:rgba(192, 233, 244, 0.3);
border: 2px solid #000;
font-size: 2rem;
cursor: pointer;
user-select: none;
transition: background-color 0.3s ease;
}
.col:hover {
background-color: #f9f9f9;
}
@media (max-width: 600px) {
.col {
font-size: 1.5rem;
}
}
@media (max-width: 400px) {
.col {
font-size: 1rem;
}
}