File size: 3,773 Bytes
86463fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
173
174
175
176
177
178
179
180
181
182
183
body {
    font-family: 'Roboto', sans-serif;
    background-color: transparent;
}

.stApp {
    max-width: 100%;
    margin: 0;
    padding: 2rem;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reportview-container {
    background-color: transparent;
}

.reportview-container .main {
    background-color: transparent;
}

.reportview-container .main .block-container {
    background-color: transparent;
}

.stNavigation {
    background-color: transparent !important;
}

.stNavigation .css-218ufz, 
.stNavigation .css-f0ifqm, 
.stNavigation .css-jc4t97 {
    background-color: transparent !important;
}

/* Word-by-word animation for "Welcome to Health & Nutrition Analyzer" */
.animated-text {
    opacity: 0;
    animation: fade-in 1s ease-in-out forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text span {
    display: inline-block;
    animation: slide-in 0.5s ease-in-out forwards;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive styles for mobile only */
@media (max-width: 767px) {
    .stApp {
        padding: 1rem;
    }

    .home-container h1.animated-text {
        font-size: 2.3rem !important;
    }

    .home-container .subtext {
        font-size: 1rem !important;
    }

    .stButton > button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

h1, h2, h3 {
    color: #4CAF50;
}

.stButton > button {
    background-color: transparent;
    color: white;
    border: 3px solid #4CAF50;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 900;
    transition: all 0.3s ease;
}

/* Hover styles for buttons: text turns black, border turns lime */
.stButton > button:hover {
    background-color: transparent;
    color: lime;
    border: 6px solid lime;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(74, 128, 35, 0.1);
}

/* Translation box, edit profile toggle, upload image box */
.stSelectbox > div > div > select,
.stCheckbox > label,
.stFileUploader > div {
    background-color: black !important;
    color: #45a049 !important;
}

/* Register section specific styles */
[data-testid="stNumberInput"] > div > div > input,
[data-testid="stSelectbox"] > div > div > select,
.stButton > button[kind="primaryFormSubmit"] {
    background-color: #45a049 !important;
    color: #000 !important;
}

/* Black spinner */
.stSpinner > div > div {
    border-top-color: black !important;
}

/* Add this to center-align elements on the home page */
.home-container {
    text-align: center;
}

/* Add this for the heading shadow effect */
h1.animated-text {
    text-shadow: 2px 2px 5px black;
}

/* Center-align subtext and buttons in the home page */
.home-container .subtext,
.stButton {
    text-align: center;
}

/* Add 3D effect to the heading in the home page */
h1.animated-text {
    text-shadow: 2px 2px 5px black, 0 0 25px #174919, 0 0 5px #00ff08;
}

/* Increase size of heading in the home page */
.home-container h1.animated-text {
    font-size: 4.5rem;
}

/* Increase size of subtext in the home page */
.home-container .subtext {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* Reduce distance between the two buttons in home page */
.stButton {
    margin: 0.5rem;
}

/* Center-align buttons in the home page */
.home-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Ensure buttons are displayed inline */
.stButton > button {
    margin: 0 0.5rem;
}