|
1 | 1 | * {
|
2 |
| - font-family: Arial, Helvetica, sans-serif; |
3 |
| - background-color: #fef6e4; |
4 |
| - color: #001858; |
5 |
| - margin-left: 6px; |
| 2 | + box-sizing: border-box; |
| 3 | + margin: 0; |
| 4 | + padding: 0; |
| 5 | + font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
6 | 6 | }
|
7 | 7 |
|
8 |
| -label { |
9 |
| - font-weight: bold; |
| 8 | +body { |
| 9 | + max-width: 640px; |
| 10 | + background-color: #ffffff; |
| 11 | + color: #333333; |
| 12 | + line-height: 1.6; |
| 13 | + padding: 20px; |
| 14 | + margin: auto; |
10 | 15 | }
|
11 | 16 |
|
12 |
| -select { |
13 |
| - border: 2px solid #001858; |
14 |
| - border-radius: 4px; |
15 |
| - margin-left: 21px; |
16 |
| - height: 1.5rem; |
| 17 | +h1, h2, h3 { |
| 18 | + color: #007BFF; |
17 | 19 | }
|
18 | 20 |
|
19 |
| -#search-container { |
20 |
| - margin-top: 12px; |
| 21 | +h1 { |
| 22 | + text-align: center; |
| 23 | + margin-bottom: 40px; |
21 | 24 | }
|
22 | 25 |
|
23 |
| -#search-container input[type="text"] { |
24 |
| - width: 180px; |
25 |
| - border: 2px solid #001858; |
26 |
| - border-radius: 4px; |
| 26 | +#ingredients-label { |
| 27 | + color: #0056B3; |
27 | 28 | }
|
28 | 29 |
|
29 |
| -::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ |
30 |
| - color: #f582ae; |
31 |
| - opacity: 1; /* Firefox */ |
| 30 | +#filter-container, #search-container { |
| 31 | + display: flex; |
| 32 | + align-items: center; |
| 33 | + justify-content: space-between; |
| 34 | + margin-bottom: 20px; |
32 | 35 | }
|
33 | 36 |
|
34 |
| -:-ms-input-placeholder { /* Internet Explorer 10-11 */ |
35 |
| - color: #f582ae; |
| 37 | +select, input[type="text"], button { |
| 38 | + font-size: 1rem; |
| 39 | + padding: 8px 10px; |
| 40 | + border: 1px solid #007BFF; |
| 41 | + border-radius: 10px; |
| 42 | + box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1); |
| 43 | + width: 100%; |
| 44 | + margin: 0 10px 0 1px; |
36 | 45 | }
|
37 | 46 |
|
38 |
| -::-ms-input-placeholder { /* Microsoft Edge */ |
39 |
| - color: #f582ae; |
| 47 | +#generate-meal-button { |
| 48 | + width: unset; |
| 49 | + padding: 8px; |
| 50 | + margin-top: 10px; |
40 | 51 | }
|
41 | 52 |
|
42 |
| -h1 { |
43 |
| - color: #f582ae; |
| 53 | +label { |
| 54 | + font-weight: 600; |
| 55 | + min-width: 70px; |
| 56 | + margin-right: 1px; |
| 57 | + margin-bottom: 15px; |
| 58 | +} |
| 59 | + |
| 60 | +select:hover, input[type="text"]:hover, button:hover { |
| 61 | + border-color: #0056b3; |
| 62 | + box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2); |
44 | 63 | }
|
45 | 64 |
|
46 | 65 | button {
|
47 |
| - padding: 4px 8px; |
48 |
| - background-color: #f582ae; |
49 |
| - border-radius: 8px; |
50 |
| - border: 2px solid #001858; |
| 66 | + background-color: #007bff; |
| 67 | + color: white; |
| 68 | + cursor: pointer; |
| 69 | + transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; |
51 | 70 | }
|
52 | 71 |
|
53 |
| -#generate-meal-button { |
54 |
| - font-size: large; |
| 72 | +button:hover { |
| 73 | + background-color: #0056b3; |
55 | 74 | }
|
56 | 75 |
|
57 |
| -@media only screen and (max-width: 600px) { |
58 |
| - h1 { |
59 |
| - text-align: center; |
60 |
| - } |
| 76 | +button:active { |
| 77 | + background-color: #004085; |
| 78 | +} |
| 79 | + |
| 80 | +ul { |
| 81 | + list-style: none; |
| 82 | + padding-left: 0; |
| 83 | + margin-top: 20px; |
| 84 | + border-left: 3px solid #007BFF; |
| 85 | + padding-left: 20px; |
| 86 | + background-color: #f8f9fa; |
| 87 | + box-shadow: 2px 2px 8px rgba(0, 123, 255, 0.1); |
| 88 | + max-height: 300px; |
| 89 | + overflow-y: auto; |
| 90 | +} |
| 91 | + |
| 92 | +li { |
| 93 | + padding: 10px 0; |
| 94 | + border-bottom: 1px solid #e1e5ea; |
| 95 | + margin-bottom: 6px; |
| 96 | + transition: background-color 0.3s; |
| 97 | +} |
| 98 | + |
| 99 | +li:last-child { |
| 100 | + border-bottom: none; |
| 101 | +} |
| 102 | + |
| 103 | +li:hover { |
| 104 | + background-color: #e9ecef; |
| 105 | +} |
| 106 | + |
| 107 | +#content-wrapper { |
| 108 | + display: flex; |
| 109 | + flex-direction: column; |
| 110 | + justify-content: space-between; |
| 111 | + min-height: 50vh; |
| 112 | +} |
| 113 | + |
| 114 | +#meal-name { |
| 115 | + min-height: 100px; |
| 116 | + line-height: normal; |
| 117 | + overflow: visible; |
| 118 | + white-space: normal; |
| 119 | +} |
61 | 120 |
|
62 |
| - #generate-meal-button { |
63 |
| - margin: 0 auto; |
64 |
| - display: block; |
| 121 | +@media (max-width: 480px) { |
| 122 | + ul { |
| 123 | + max-height: 150px; |
65 | 124 | }
|
66 | 125 | }
|
0 commit comments