-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
155 lines (139 loc) · 4.04 KB
/
style.css
File metadata and controls
155 lines (139 loc) · 4.04 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
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
/* style.css */
/* --- General Styles --- */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A more modern font */
line-height: 1.6;
background-color: #f0f2f5; /* Light greyish-blue background */
color: #333; /* Dark text for readability */
margin: 0; /* Remove default body margin */
padding: 0; /* Remove default body padding */
}
/* --- Header Styles --- */
header {
background: linear-gradient(to right, #007bff, #0056b3); /* Blue gradient */
color: #fff;
padding: 1.5rem 0; /* Increased padding */
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}
header h1 {
margin-bottom: 0.75rem; /* Adjust margin */
font-size: 2.5rem; /* Larger heading */
letter-spacing: 1px; /* Slightly spaced letters */
}
nav a {
color: #e0f2f7; /* Lighter blue for links */
text-decoration: none;
margin: 0 15px; /* More spacing */
padding: 8px 15px;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.2s ease; /* Add transform transition */
font-weight: bold; /* Bold links */
}
nav a:hover {
background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white on hover */
transform: translateY(-2px); /* Slight lift effect */
}
/* --- Main Container & Items --- */
.container {
width: 90%;
max-width: 1200px;
margin: 30px auto; /* More margin */
padding: 20px;
display: flex;
flex-wrap: wrap;
gap: 30px; /* More space between items */
justify-content: center;
}
.item {
background-color: #ffffff; /* Pure white background for items */
padding: 25px; /* Increased padding */
border-radius: 12px; /* More rounded corners */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Stronger shadow */
flex: 1 1 320px; /* Slightly larger preferred width for items */
transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effects */
}
.item:hover {
transform: translateY(-5px); /* Lift effect on hover */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}
.item h2 {
color: #007bff; /* Blue for headings */
margin-bottom: 10px;
}
.item p {
color: #555; /* Slightly lighter text for paragraphs */
}
/* --- Drop Zone Styles --- */
.drop-zone {
border: 2px dashed #007bff; /* Blue dashed border */
background-color: #e6f7ff; /* Light blue background */
min-height: 180px; /* Taller drop zone */
margin-top: 30px;
display: flex;
align-items: center;
justify-content: center;
color: #007bff; /* Blue text */
font-size: 1.4em; /* Larger text */
border-radius: 12px;
transition: background-color 0.3s ease, border-color 0.3s ease;
flex: 1 1 320px;
font-weight: bold;
}
.drop-zone.dragover {
background-color: #d1f0d1; /* Softer green on dragover */
border-color: #28a745; /* Green border */
color: #28a745;
}
/* Styling for the item being dragged */
.item.dragging {
opacity: 0.6; /* Slightly more opaque while dragging */
border: 2px dashed #0056b3; /* Darker blue dashed border */
box-shadow: 0 0 0 rgba(0,0,0,0); /* Remove shadow while dragging for cleaner look */
}
/* --- Footer Styles --- */
footer {
text-align: center;
padding: 1.5rem 0;
background-color: #343a40; /* Darker grey for footer */
color: #adb5bd; /* Lighter grey text */
margin-top: 40px; /* Space above footer */
font-size: 0.9em;
}
/* --- Media Queries (Adjusted for new layout) --- */
@media (max-width: 768px) {
header h1 {
font-size: 2rem;
}
nav {
flex-direction: column;
align-items: center;
}
nav a {
margin: 8px 0;
padding: 6px 12px;
}
.container {
padding: 15px;
gap: 20px;
}
.item {
flex-basis: 100%;
padding: 20px;
}
.drop-zone {
min-height: 120px;
font-size: 1.2em;
}
}
@media (max-width: 480px) {
header h1 {
font-size: 1.8rem;
}
.item h2 {
font-size: 1.3rem;
}
.item p {
font-size: 0.95rem;
}
}