-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
140 lines (124 loc) · 2.87 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
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
/* Set the background color to black for the entire page */
body {
background-color: black;
}
/* Center align the main heading text */
h1 {
text-align: center;
}
/* Flexbox layout for child elements, centers items, and allows wrapping */
.container {
display: flex;
justify-content: center;
text-align: center;
gap: 10px;
max-width: 100%;
margin: 0 auto;
flex-wrap: wrap;
position: relative;
}
/* Styles for the individual boxes, including size and border */
.box {
display: flex;
justify-content: center;
align-items: center;
border: 1px solid black;
height: 100px;
width: 100px;
font-size: 50px;
cursor: pointer;
border-radius: 15px;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Hover effects for the boxes */
.box:hover {
background-color: #53331F;
color: white;
opacity: 0.9;
box-shadow: #D4B8B1 0px 0px 0px 3px;
}
/* Styles for information boxes with padding and margin */
.info_box {
flex-grow: 1;
justify-content: center;
align-items: center;
border: 1px solid black;
margin-top: 20px;
padding: 10px;
border-radius: 15px;
}
/* Hover effects for information boxes */
.info_box:hover {
background-color: #866C69;
box-shadow: #D4B8B1 0px 0px 0px 3px;
color: white;
opacity: 0.9;
}
/* Center align message text */
.msg {
text-align: center;
}
/* Main styling for the game container with gradient background and animation */
.big {
border: 1px solid black;
max-width: 700px;
height: 400px;
margin: auto;
align-items: center;
justify-content: center;
position: relative;
border-radius: 20px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
background: linear-gradient(45deg, #D4B8B1, #866C69, #CD8C8C, #53331F);
background-size: 300% 300%;
animation: color 12s ease-in-out infinite;
padding: 20px;
margin-top: 8rem;
}
/* Keyframes for background color animation */
@keyframes color {
0% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0 50%;
}
}
/* Hover effect for the main game container */
.big:hover {
box-shadow: #D4B8B1 0px 22px 70px 4px;
}
/* Media queries for responsiveness on tablets */
@media (max-width: 768px) {
.box {
height: 80px;
width: 80px;
font-size: 40px;
}
.info_box {
padding: 5px;
font-size: 14px;
}
.container {
gap: 5px;
}
}
/* Media queries for responsiveness on mobile devices */
@media (max-width: 480px) {
.box {
height: 60px;
width: 60px;
font-size: 30px;
}
.info_box {
padding: 5px;
font-size: 12px;
}
.container {
gap: 3px;
}
}