-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
192 lines (168 loc) · 4.5 KB
/
styles.css
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
184
185
186
187
188
189
190
191
192
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #1e1e2e; /* Base from Catppuccin Mocha */
color: #cdd6f4; /* Text color from Catppuccin Mocha */
font-family: 'Poppins', sans-serif; /* Updated font to Poppins */
font-weight: 300; /* Light weight for a soft look */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
padding: 0;
overflow: hidden;
}
.container {
text-align: center;
max-width: 1000px;
padding: 20px;
}
.center-logo {
margin-bottom: 20px;
}
.center-logo .logo {
width: 30vw; /* Increase the width to 30% of the viewport width */
height: auto; /* Maintain aspect ratio */
max-width: 250px; /* Set a larger maximum width for larger screens */
min-width: 120px; /* Ensure it doesn't shrink too much on small screens */
}
.hidden {
display: none;
}
/* Dropdown styling */
#search-engine-dropdown {
position: absolute;
top: 50px;
left: 10px;
background-color: #313244;
border-radius: 5px;
padding: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
z-index: 10;
}
.dropdown-item {
padding: 10px;
color: #cdd6f4;
cursor: pointer;
transition: background-color 0.2s ease;
}
.dropdown-item:hover {
background-color: #585b70; /* Slight hover effect */
}
.search-icon {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
color: #f5c2e7;
font-size: 1.2rem;
cursor: pointer; /* Make the icon clickable */
}
/* Search Bar Section */
.search-bar {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 30px;
position: relative; /* For positioning elements */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Soft shadow around search bar */
border-radius: 10px; /* Rounded corners */
padding: 10px;
background-color: #313244; /* Surface0 background */
}
/* Wrapper for input and search icon */
.search-input-wrapper {
position: relative;
flex-grow: 1;
}
.search-input-wrapper input {
padding: 12px 40px 12px 40px; /* Extra padding for the search icon and button */
font-size: 1.1rem;
font-weight: 400; /* Regular weight for input text */
border-radius: 5px;
border: none;
width: 100%;
background-color: #313244;
color: #cdd6f4; /* Text */
box-shadow: none; /* Remove inner shadow */
outline: none;
}
/* Search icon inside the input */
.search-input-wrapper .search-icon {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
color: #f5c2e7; /* Pink from Catppuccin Mocha */
font-size: 1.2rem;
}
/* Placeholder text style */
.search-input-wrapper input::placeholder {
color: #9399b2; /* Overlay2 from Catppuccin Mocha */
font-weight: 300; /* Lighter placeholder text */
}
/* Search Button */
.search-bar button {
padding: 12px 16px;
font-size: 1.1rem;
border: none;
background-color: #45475a; /* Surface1 from Catppuccin Mocha */
color: #f5c2e7; /* Pink from Catppuccin Mocha */
cursor: pointer;
border-radius: 5px;
margin-left: 10px;
transition: background-color 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Add shadow to the button */
}
.search-bar button:hover {
background-color: #585b70; /* Surface2 from Catppuccin Mocha */
}
/* Categories Section */
.categories {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 0 20px;
gap: 30px;
}
.category {
text-align: center;
flex-grow: 1;
flex-basis: calc(20% - 30px);
min-width: 150px;
max-width: 200px;
background-color: #313244; /* Background of each category box */
border-radius: 10px; /* Rounded corners */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Soft shadow for category boxes */
padding: 20px 15px; /* Padding inside the boxes */
transition: transform 0.2s ease; /* Add a subtle hover effect */
}
.category:hover {
transform: translateY(-5px); /* Lift the box on hover */
}
.category .icon {
font-size: 2.2rem;
margin-bottom: 10px;
color: #f38ba8; /* Red from Catppuccin Mocha */
}
.category ul {
list-style-type: none;
padding: 0;
}
.category li {
margin: 8px 0;
}
.category li a {
text-decoration: none;
color: #89b4fa; /* Blue from Catppuccin Mocha */
font-size: 1rem;
font-weight: 400; /* Regular font weight */
transition: color 0.2s ease;
}
.category li a:hover {
color: #f9e2af; /* Yellow from Catppuccin Mocha */
}