-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
112 lines (96 loc) · 1.72 KB
/
style.css
File metadata and controls
112 lines (96 loc) · 1.72 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
/* style.css */
body {
font-family: 'Poppins', Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
background: url('assets/pexels-eberhardgross-844297.jpg');
color: #333;
}
.weather-app {
text-align: center;
background: #00000040;
padding: 20px;
border-radius: 15px;
border-color: #ccc;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
max-width: 450px;
width: 90%;
}
header h1 {
font-size: 2rem;
margin-bottom: 20px;
color: #007bff;
}
form {
margin-bottom: 20px;
display: flex;
gap: 10px;
justify-content: center;
}
input {
padding: 12px;
flex: 1;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 1rem;
}
button {
padding: 12px 15px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
#weatherDetails {
margin-top: 20px;
text-align: left;
}
#weatherDetails h2 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.weather-info p {
font-size: 1rem;
margin: 5px 0;
}
#weatherIcon {
max-width: 80px;
margin: 15px auto;
display: block;
}
.error-message {
color: #e63946;
font-size: 1rem;
margin-top: 10px;
}
.hidden {
display: none;
}
footer {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: #555;
}
@media (max-width: 480px) {
.weather-app {
padding: 15px;
}
input {
font-size: 0.9rem;
}
button {
font-size: 0.9rem;
}
}