-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (90 loc) · 1.61 KB
/
style.css
File metadata and controls
106 lines (90 loc) · 1.61 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
body {
margin: 0;
font-family: 'Montserrat', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(to right, #744caf, #f37c21);
}
.container {
text-align: center;
}
.weather-card {
background-color: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 30px;
box-shadow: 0 0 30px rgb(255, 255, 255);
transition: transform 0.3s ease-in-out;
width: 90%;
max-width: 500px;
}
.weather-card:hover {
transform: scale(1.05);
}
#city-input {
padding: 12px;
margin: 10px 0;
width: 80%;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
#city-input:focus {
outline: none;
border-color: #2196F3;
}
#city-input-btn {
padding: 10px 20px;
background-color: #2196F3;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
margin-top: 10px;
}
#city-input-btn:hover {
background-color: #1565C0;
}
#weather-info {
display: none;
margin-top: 20px;
}
.weather-content {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}
.left-side {
flex: 1;
}
.right-side {
flex: 2;
text-align: left;
}
#weather-icon {
width: 120px;
height: 120px;
object-fit: contain;
}
#temperature {
font-size: 24px;
font-weight: bold;
margin: 8px 0;
}
#description {
font-size: 18px;
margin-bottom: 10px;
text-transform: capitalize;
}
#wind-speed {
font-size: 16px;
color: #333;
}
#date {
font-size: 14px;
color: #888;
}