Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
140 lines (126 loc) · 2.63 KB
/
Copy pathstyle.css
File metadata and controls
140 lines (126 loc) · 2.63 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
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
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling with background */
body {
font-family: Arial, sans-serif;
background-image: url('bgimage.png');
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
color: #333;
padding: 20px;
}
/* Main heading style */
h1 {
color: #0b141e;
font-family: Georgia, 'Algeria', Times, serif;
font-weight: bolder;
font-size: 3.5rem;
text-align: center;
margin-bottom: 30px;
padding: 10px;
background-color: rgba(251, 232, 255, 0.8);
width: 100%;
text-shadow:
2px 2px 0 #c9da10,
-2px 2px 0 #c9da10,
2px -2px 0 #c9da10,
-2px -2px 0 #c9da10;
}
/* Search Container styling */
.search-container {
background-color: rgba(216, 214, 249, 0.8);
width: 90%;
max-width: 500px;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
margin-bottom: 20px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
/* Search section styling */
.search-section {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
width: 100%;
}
.search-section input,
.search-section button {
padding: 10px;
font-size: 1rem;
border-radius: 5px;
}
.search-section input {
width: 70%;
border: 2px solid #0056b3;
outline: none;
}
.search-section button {
background-color: #0056b3;
color: #fff;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
/* Information Container styling */
.info-container {
background-color: rgba(255, 255, 255, 0.9);
width: 90%;
max-width: 500px;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
text-align: center;
display: none;
opacity: 0;
transition: opacity 0.5s ease;
}
.info-container.show {
display: block;
opacity: 1;
}
.protein-title {
font-size: 1.5rem;
font-weight: bold;
color: #0056b3;
margin-bottom: 10px;
}
.protein-info {
font-size: 1.2rem;
color: #555;
margin-bottom: 8px;
}
/* Footer styling */
footer {
text-align: center;
font-weight: 700;
padding: 5px;
background-color: rgba(251, 232, 255, 0.8);
width: 100%;
margin-top: auto;
}
/* Responsiveness */
@media (max-width: 600px) {
h1 {
font-size: 2.5rem;
}
.search-section {
flex-direction: column;
gap: 15px;
}
.search-section input {
width: 100%;
}
}