-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
116 lines (97 loc) · 1.72 KB
/
index.css
File metadata and controls
116 lines (97 loc) · 1.72 KB
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
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
padding: 20px;
}
.main-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.info-box {
flex: 1;
width: auto;
margin-right: 20px;
padding: 15px;
background-color: #f7f7f7;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.info-box h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.algorithm-info {
margin-bottom: 20px;
}
.algorithm-info h3 {
color: #444;
margin-bottom: 10px;
}
.algorithm-info p {
color: #555;
line-height: 1.6;
font-size: 0.95em;
}
.controls-grid-container {
gap: 5px;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
}
#grid {
display: flex;
flex-wrap: wrap;
width: 320px;
margin: 20px auto;
}
.cell {
width: 20px;
height: 20px;
border: 1px solid black;
transition: background-color 0.3s;
}
.visited {
background-color: blue;
}
.start {
background-color: green;
}
.end {
background-color: red;
}
.path {
background-color: rgb(235, 5, 9);
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
}
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
max-width: 500px;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.close-btn {
position: absolute;
right: 10px;
top: 5px;
font-size: 24px;
cursor: pointer;
}