-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
82 lines (69 loc) · 1.42 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
/* Reset some default styles for the page */
body, h1, h2, p, ul {
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0; /* Add this to reset body margin */
}
header {
background-color: hsl(210, 38%, 67%);
color: #fff;
text-align: center;
padding: 1rem 0;
}
header h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
header p {
font-size: 1rem;
}
main {
display: flex;
justify-content: space-between;
margin: 2rem;
}
#menu, #order {
background-color: #fff;
padding: 1rem;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
flex: 1;
}
#menu {
max-width: 60%;
overflow-y: auto;
}
#order {
max-width: 35%;
position: relative; /* Add this for position reference */
padding-bottom: 4em;
}
#menu h3, #order h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
#menu ul, #order ul {
list-style: none;
padding: 0;
}
#menu li, #order li {
margin-bottom: 0.5rem;
cursor: pointer;
transition: background-color 0.3s ease; /* Add this for the animation */
}
#order-total {
font-weight: bold;
}
footer {
text-align: center;
padding: 1rem 0;
background-color: #333;
color: #fff;
position: fixed; /* Add this to fix the footer at the bottom */
bottom: 0; /* Add this to position it at the bottom */
width: 100%; /* Add this to span the full width */
}