-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
172 lines (155 loc) · 3.34 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
header {
text-align: center;
margin: 2rem 0;
background-color: #3d4f90;
color: white;
font-family: Arial, sans-serif;
font-size: 2rem;
padding: 1rem;
}
body {
background: linear-gradient(to bottom right, #f0c27b, #4b1248);
animation: color-change 10s infinite;
}
main {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #FFA07A;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
}
/* Add additional styles as desired */
#start-btn {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 20px;
cursor: pointer;
border-radius: 5px;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
transition: all 0.3s ease-in-out;
}
#start-btn:hover {
background-color: #3e8e41;
transform: translateY(-2px);
box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.25);
}
@keyframes color-change {
0% {
background: linear-gradient(to bottom right, #f0c27b, #4b1248);
}
50% {
background: linear-gradient(to bottom right, #355c7d, #6c5b7b, #c06c84);
}
100% {
background: linear-gradient(to bottom right, #f0c27b, #4b1248);
}
}
/* Style for the cell */
.cell {
width: 20px;
height: 20px;
border: none;
}
/* Style for the wall */
.wall {
background-color: black;
}
.visited {
background-color: #FFA07A;}
/* Style for the start cell */
.start {
background-color: green;
}
/* Style for the end cell */
.end {
background-color: red;
}
#header-title{
display:flex;
flex-wrap:wrap;
justify-content: center;
color: aqua;
}
/* Style for the maze container */
#maze {
display: grid;
grid-template-columns: repeat(10, 1fr);
grid-template-rows: repeat(10, 1fr);
width: 60%;
height: 60%;
margin: 0 auto;
color: black;
padding: 50px;
}
#maze {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
background-color: #f8f8f8;
border: 8px solid #333;
padding: 70px;
color: black;
}
footer{
text-align: center;
margin:2rem 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 90;
padding: 1rem;
}
.popup {
position: relative;
display: inline-block;
cursor: pointer;
}
/* The actual popup (appears on top) */
.popup .popuptext {
visibility: hidden;
width: 160px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 8px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -80px;
}
/* Popup arrow */
.popup .popuptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
visibility: visible;
-webkit-animation: fadeIn 1s;
animation: fadeIn 1s
}
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity:1 ;}
}