Sourudra commited on
Commit
eaa9f22
·
verified ·
1 Parent(s): 4c3c504

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +82 -89
style.css CHANGED
@@ -1,120 +1,113 @@
1
- /* Basic Reset */
2
- * {
 
 
 
 
 
3
  margin: 0;
4
  padding: 0;
5
- box-sizing: border-box;
6
  }
7
 
8
- /* Body and overall background */
9
- body {
10
- background: url('https://i.postimg.cc/zBX9cDZy/bmw-german-luxury-cars-brands-black-shiny-fast-car-in-a-misty-fog-01-11-2024-1730444676-hd-wallpaper.jpg') no-repeat center center fixed;
11
- background-size: cover;
12
- font-family: 'Georgia', serif;
13
- color: #ffffff;
14
  padding: 20px;
15
- display: flex;
16
- justify-content: center;
17
- align-items: center;
18
- height: 100vh;
19
  }
20
 
21
- /* Glassmorphism effect */
22
- .glass {
23
- background: rgba(255, 255, 255, 0.1); /* Transparent white background */
24
- border-radius: 15px;
25
- padding: 20px;
26
- backdrop-filter: blur(10px); /* Blur effect for glassmorphism */
27
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Soft shadow */
28
- border: 1px solid rgba(255, 255, 255, 0.2); /* Slight white border */
29
  }
30
 
31
- /* Styling headers */
32
- h1 {
33
- font-size: 3rem;
34
- text-align: center;
35
- color: #ffffff;
36
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
37
  }
38
 
39
- /* For smaller headings */
40
- h2, h3 {
41
- font-size: 1.5rem;
42
- color: #ffffff;
43
  text-align: center;
44
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
 
 
45
  }
46
 
47
- /* Paragraph styling */
48
- p {
49
- font-size: 1.2rem;
50
- color: #ffffff;
51
- text-align: center;
52
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
53
  }
54
 
55
- /* Button Styling for Detect License Plate */
56
- .stButton > button {
57
- background: linear-gradient(135deg, #8B5E3C, #B8860B); /* Warm vintage gold-brown gradient */
58
- border: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  color: white;
60
- padding: 12px 24px;
61
- text-align: center;
62
- text-decoration: none;
63
- display: inline-block;
64
- font-size: 16px;
65
- margin: 10px 5px;
66
  cursor: pointer;
67
- border-radius: 12px; /* Rounded corners for a soft vintage touch */
68
- box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); /* Soft, deep shadow for antique feel */
69
- font-family: 'Georgia', serif; /* Classic serif font for the button */
70
- text-transform: uppercase; /* Uppercase text for a formal touch */
71
  }
72
 
73
- .stButton > button:hover {
74
- background: linear-gradient(135deg, #704214, #B8860B); /* Slightly darker gold-brown */
75
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth on hover */
76
- transform: translateY(-2px); /* Lift effect */
77
  }
78
 
79
- /* Center the content on the page */
80
- .stApp {
81
- width: 100%;
82
- max-width: 1200px;
83
- margin: 0 auto;
 
 
84
  }
85
 
86
- /* Style the file uploader */
87
- .stFileUploader {
88
- background-color: rgba(255, 255, 255, 0.3);
89
- border: 2px dashed rgba(255, 255, 255, 0.7);
90
- padding: 20px;
91
- border-radius: 12px;
92
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
93
- margin: 20px 0;
94
  }
95
 
96
- /* Custom input fields and image container */
97
- .stImage {
98
- width: 100%;
99
- max-width: 1000px;
100
- display: block;
101
- margin: 20px auto;
102
- border-radius: 12px;
103
  }
104
 
105
- .stTextInput {
106
- background: rgba(255, 255, 255, 0.1);
107
- padding: 10px;
108
- border-radius: 10px;
109
- border: 1px solid rgba(255, 255, 255, 0.2);
110
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
111
- color: #fff;
112
  }
113
 
114
- .stTextInput input {
115
- background: transparent;
116
- color: #ffffff;
117
- border: none;
118
- outline: none;
119
- font-size: 16px;
 
120
  }
 
1
+ /* General Styling */
2
+ body {
3
+ background: url('https://i.postimg.cc/zBX9cDZy/bmw-german-luxury-cars-brands-black-shiny-fast-car-in-a-misty-fog-01-11-2024-1730444676-hd-wallpaper.jpg
4
+ ') no-repeat center center fixed; /* Set background image */
5
+ background-size: cover; /* Ensure the image covers the entire page */
6
+ font-family: 'Arial', sans-serif; /* Font for the entire app */
7
+ color: #333; /* Text color */
8
  margin: 0;
9
  padding: 0;
 
10
  }
11
 
12
+ /* Title Section */
13
+ .stApp .stTitle {
14
+ background-color: rgba(76, 175, 80, 0.7); /* Semi-transparent background for the title */
15
+ color: white; /* White text color */
 
 
16
  padding: 20px;
17
+ text-align: center;
18
+ font-size: 2.5rem;
19
+ border-bottom: 2px solid #ddd;
 
20
  }
21
 
22
+ /* Sidebar Styling */
23
+ .stSidebar {
24
+ background-color: #ffffff; /* White background for the sidebar */
25
+ padding: 10px;
26
+ border-right: 1px solid #ddd; /* Border for separation */
 
 
 
27
  }
28
 
29
+ .stSidebar .stSlider {
30
+ background-color: #fafafa;
 
 
 
 
31
  }
32
 
33
+ /* File Upload Section */
34
+ .stFileUploader {
35
+ margin: 20px;
 
36
  text-align: center;
37
+ padding: 20px;
38
+ background-color: rgba(244, 244, 244, 0.8); /* Slightly transparent background */
39
+ border: 2px dashed #ddd; /* Dashed border for the file upload section */
40
  }
41
 
42
+ .stFileUploader input[type="file"] {
43
+ margin-top: 10px;
 
 
 
 
44
  }
45
 
46
+ /* Image and Video Display */
47
+ .stImage, .stVideo {
48
+ display: block;
49
+ margin: 20px auto;
50
+ max-width: 100%;
51
+ border: 2px solid #ddd; /* Border around the displayed images/videos */
52
+ border-radius: 10px;
53
+ }
54
+
55
+ .stImage img, .stVideo video {
56
+ max-width: 100%;
57
+ height: auto;
58
+ }
59
+
60
+ /* Buttons */
61
+ .stButton, .stDownloadButton {
62
+ background-color: #4CAF50; /* Green background for buttons */
63
  color: white;
64
+ padding: 10px 20px;
65
+ font-size: 1rem;
66
+ border-radius: 5px;
67
+ border: none;
 
 
68
  cursor: pointer;
69
+ transition: background-color 0.3s ease;
 
 
 
70
  }
71
 
72
+ .stButton:hover, .stDownloadButton:hover {
73
+ background-color: #45a049; /* Darker green on hover */
 
 
74
  }
75
 
76
+ /* Success and Info Messages */
77
+ .stInfo {
78
+ background-color: #2196F3; /* Blue background for info messages */
79
+ color: white;
80
+ padding: 10px;
81
+ border-radius: 5px;
82
+ margin-top: 20px;
83
  }
84
 
85
+ .stWarning {
86
+ background-color: #ff9800; /* Orange background for warnings */
87
+ color: white;
88
+ padding: 10px;
89
+ border-radius: 5px;
90
+ margin-top: 20px;
 
 
91
  }
92
 
93
+ /* Styling the download button with an icon */
94
+ .stDownloadButton {
95
+ display: inline-flex;
96
+ align-items: center;
97
+ justify-content: center;
98
+ font-size: 1rem;
99
+ padding: 10px 20px;
100
  }
101
 
102
+ .stDownloadButton svg {
103
+ margin-right: 10px;
 
 
 
 
 
104
  }
105
 
106
+ /* Styling for the Footer */
107
+ footer {
108
+ text-align: center;
109
+ padding: 10px;
110
+ background-color: #4CAF50;
111
+ color: white;
112
+ font-size: 1rem;
113
  }