-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
142 lines (128 loc) · 3.12 KB
/
style.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
/* Background settings */
body {
background-image: url('../static/azadi_tower.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 100vh;
margin: 0;
font-family: 'Poppins', Arial, sans-serif;
color: #ffffff;
animation: backgroundShift 10s infinite alternate; /* Animation for background brightness change */
}
/* Animation for background brightness change */
@keyframes backgroundShift {
from {
filter: brightness(0.8);
}
to {
filter: brightness(1.2);
}
}
/* Main container settings with transparency and glow effect */
.container {
text-align: center;
padding: 20px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 10px;
max-width: 600px;
margin: 50px auto;
box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3);
transition: box-shadow 0.3s ease-in-out;
}
/* Glow effect on hover */
.container:hover {
box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.5);
}
/* Form styles */
form {
margin: 20px 0;
}
input[type="text"] {
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: none;
width: 80%;
max-width: 300px;
margin: 10px 0;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
/* Buttons with classic blue color */
button {
padding: 10px 20px;
font-size: 16px;
border-radius: 30px;
border: none;
background: linear-gradient(135deg, #0077b6, #0096c7); /* Classic blue gradient */
color: white;
cursor: pointer;
transition: transform 0.3s ease, background 0.3s ease;
}
button:hover {
transform: scale(1.1); /* Button enlargement on hover */
background: linear-gradient(135deg, #0096c7, #0077b6); /* Gradient color change */
}
/* Weather info styles */
.weather-info {
margin-top: 20px;
padding: 20px;
background-color: rgba(255, 255, 255, 0.8);
border: 2px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
border-radius: 20px;
backdrop-filter: blur(10px);
color: #333;
text-align: center;
font-size: 18px;
animation: fadeInUp 1s ease-out;
}
/* Animation for weather info box appearance */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Icon styles and animation */
.weather-info img {
display: block;
margin: 0 auto;
width: 60px;
height: 60px;
animation: iconBounce 2s infinite; /* Icon bounce animation */
}
/* Icon bounce animation */
@keyframes iconBounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px); /* Move up */
}
}
/* Glowing text effects */
h1 {
font-size: 3em;
text-shadow: 0px 4px 5px rgba(0, 0, 0, 0.4);
animation: glow 1.5s infinite alternate;
}
/* Text glow animation */
@keyframes glow {
from {
text-shadow: 0px 4px 10px rgba(255, 255, 255, 0.4);
}
to {
text-shadow: 0px 4px 20px rgba(255, 255, 255, 0.8);
}
}
/* Error message styles */
.error {
color: #ff4444;
font-size: 18px;
font-weight: bold;
}