Spaces:
Sleeping
Sleeping
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,140 +1,103 @@
|
|
| 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 |
-
color:
|
| 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 |
-
color:
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
font-size: 1.2rem;
|
| 105 |
-
font-weight: bold;
|
| 106 |
-
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
|
| 107 |
-
}
|
| 108 |
-
|
| 109 |
-
.stTextInput input {
|
| 110 |
-
color: #000000; /* Keeping input text black for clarity against white box */
|
| 111 |
-
border-radius: 8px; /* Your 'br' fixing */
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
/* Target the main container for a full-screen background */
|
| 115 |
-
|
| 116 |
-
[data-testid="stAppViewContainer"] {
|
| 117 |
-
background-image: url("data:image/jpg;base64,IMAGE_PLACEHOLDER");
|
| 118 |
-
background-size: cover;
|
| 119 |
-
background-position: center;
|
| 120 |
-
background-attachment: fixed;
|
| 121 |
-
}
|
| 122 |
-
|
| 123 |
-
/* Fix your alignment and borders (br) here */
|
| 124 |
-
.main {
|
| 125 |
-
background-color: transparent;
|
| 126 |
-
padding: 2rem;
|
| 127 |
-
}
|
| 128 |
-
|
| 129 |
-
/* Centered container for your title */
|
| 130 |
-
.centered-title-container {
|
| 131 |
-
text-align: center;
|
| 132 |
-
border-radius: 12px;
|
| 133 |
-
background-color: rgba(0, 0, 0, 0.5);
|
| 134 |
-
padding: 20px;
|
| 135 |
-
margin-bottom: 25px;
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
[data-testid="stSidebar"] {
|
| 139 |
-
background-color: rgba(38, 39, 48, 0.9);
|
| 140 |
-
}
|
|
|
|
| 1 |
+
|
| 2 |
+
/* 1. MAIN BACKGROUND LOGIC */
|
| 3 |
+
[data-testid="stAppViewContainer"] {
|
| 4 |
+
background-image: url("data:image/jpg;base64,IMAGE_PLACEHOLDER");
|
| 5 |
+
background-size: cover;
|
| 6 |
+
background-position: center;
|
| 7 |
+
background-attachment: fixed;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
/* 2. HEADER AND TITLE STYLING */
|
| 11 |
+
header.stAppHeader {
|
| 12 |
+
background-color: transparent;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
h1 {
|
| 16 |
+
margin-top: -20px !important;
|
| 17 |
+
padding-top: 0px !important;
|
| 18 |
+
margin-bottom: 90px !important;
|
| 19 |
+
color: white !important;
|
| 20 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
|
| 21 |
+
text-align: center;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
/* 3. SUBHEADERS AND MARKDOWN TEXT */
|
| 25 |
+
h3 {
|
| 26 |
+
color: white !important;
|
| 27 |
+
font-size: 1.8rem !important;
|
| 28 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
|
| 29 |
+
margin-top: 30px !important;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.stMarkdown h3, .stMarkdown b, .stMarkdown strong {
|
| 33 |
+
color: white !important;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* 4. INPUT BOX AND LABELS */
|
| 37 |
+
.stTextInput label {
|
| 38 |
+
color: white !important;
|
| 39 |
+
font-size: 1.2rem;
|
| 40 |
+
font-weight: bold;
|
| 41 |
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.stTextInput input {
|
| 45 |
+
color: #000000;
|
| 46 |
+
border-radius: 8px;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* 5. BUTTON STYLING */
|
| 50 |
+
.stButton button {
|
| 51 |
+
background-color: #0e3558;
|
| 52 |
+
color: #FFFFFF;
|
| 53 |
+
border: 1px solid #FFFFFF;
|
| 54 |
+
border-radius: 25px;
|
| 55 |
+
transition: background-color 0.3s ease, color 0.3s ease;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.stButton button:hover {
|
| 59 |
+
background-color: transparent !important;
|
| 60 |
+
color: white !important;
|
| 61 |
+
border: 1px solid white;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.stButton button:focus {
|
| 65 |
+
color: white !important;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* 6. RESULT REPORT BLOCKS (White boxes with black text) */
|
| 69 |
+
[data-testid="stText"] {
|
| 70 |
+
background-color: white !important;
|
| 71 |
+
color: black !important;
|
| 72 |
+
padding: 15px !important;
|
| 73 |
+
border-radius: 10px !important;
|
| 74 |
+
border: 1px solid #ccc !important;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
/* Ensure text inside preformatted blocks is black */
|
| 78 |
+
[data-testid="stText"] pre {
|
| 79 |
+
color: black !important;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
/* 7. LAYOUT AND CONTAINERS */
|
| 83 |
+
.block-container {
|
| 84 |
+
padding-top: 1rem !important;
|
| 85 |
+
padding-bottom: 0rem;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.main {
|
| 89 |
+
background-color: transparent;
|
| 90 |
+
padding: 2rem;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.centered-title-container {
|
| 94 |
+
text-align: center;
|
| 95 |
+
border-radius: 12px;
|
| 96 |
+
background-color: rgba(0, 0, 0, 0.5);
|
| 97 |
+
padding: 20px;
|
| 98 |
+
margin-bottom: 25px;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
[data-testid="stSidebar"] {
|
| 102 |
+
background-color: rgba(38, 39, 48, 0.9);
|
| 103 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|