forked from avinash201199/Login-Signup-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
96 lines (86 loc) · 2.5 KB
/
style.css
File metadata and controls
96 lines (86 loc) · 2.5 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
/* --- NEW: Import a clean font from Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
/* --- NEW: Animated Gradient Background --- */
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
body {
font-family: 'Poppins', sans-serif;
color: #f0f0f0; /* Light text color for dark background */
background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1c3d52);
background-size: 400% 400%;
animation: gradientAnimation 15s ease infinite;
margin: 0;
padding: 30px;
min-height: 100vh;
}
/* --- UPDATED: Header with Gradient Text --- */
header {
text-align: center;
margin-bottom: 60px;
}
header h1 {
font-size: 3rem;
font-weight: 700;
margin-bottom: 15px;
/* Creating the gradient text effect */
background: linear-gradient(90deg, #3498db, #9b59b6, #e91e63);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
header p {
font-size: 1.1rem;
color: #bdc3c7; /* Lighter grey for subtitles */
max-width: 600px;
margin: 0 auto;
}
/* --- Card container grid --- */
#card-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 35px;
max-width: 1400px;
margin: 0 auto;
}
/* --- NEW: "Glassmorphism" Card Style --- */
.template-card {
background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
backdrop-filter: blur(12px); /* The "frosty glass" effect */
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
overflow: hidden;
text-decoration: none;
color: #ffffff;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}
.template-card:hover {
transform: translateY(-10px);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
border: 1px solid #3498db; /* Bright blue border on hover */
}
/* --- Card image styling --- */
.template-card img {
width: 100%;
height: 240px;
object-fit: cover;
display: block;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
/* --- Card title styling --- */
.template-card h3 {
margin: 0;
padding: 20px;
font-size: 1.15em;
font-weight: 600;
text-align: center;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
}