-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
163 lines (137 loc) · 2.82 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/* Global settings */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: url('assets/a-city-skyline-at-dusk-with-a-gradient-sky-transitioning-from-orange-to-deep-blue.jpeg') no-repeat center center fixed;
background-size: cover; /* Ensure the image covers the entire background */
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
}
/* Container styling */
.container {
text-align: center;
background-color: #1e1e1e;
border-radius: 15px;
padding: 2rem;
width: auto;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
h1 {
font-size: 2rem;
color: #bb86fc;
}
p {
font-size: 1.1rem;
margin-bottom: 20px;
}
/* Form styling */
form {
display: flex;
flex-direction: column;
}
input[type="text"] {
padding: 0.75rem;
font-size: 1rem;
border-radius: 8px;
border: 2px solid #bb86fc;
background-color: #2c2c2c;
color: #ffffff;
margin-bottom: 15px;
transition: all 0.3s ease;
}
input[type="text"]:focus {
border-color: #03dac6;
outline: none;
background-color: #333333;
}
button {
padding: 0.75rem;
background-color: #03dac6;
border: none;
border-radius: 8px;
color: #000;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #018786;
}
/* Weather info styling */
.weather-info {
margin-top: 20px;
text-align: center; /* Center align the content */
}
/* Center the weather icon */
#weather-icon {
display: block; /* Make sure it’s a block element */
margin: 10px auto; /* Center horizontally with auto margins */
width: 60px;
height: 60px;
}
/* Existing styles remain the same */
/* Hide weather-info initially */
.weather-info {
display: none;
}
/* Show weather-info when data is available */
.weather-info.show {
display: block;
}
#weather-city {
font-size: 1.5rem;
font-weight: bold;
color: #bb86fc;
}
#weather-description {
font-size: 1.2rem;
color: #03dac6;
}
#weather-temp {
font-size: 2rem;
margin: 10px 0;
color: #ffffff;
}
#weather-icon {
margin-top: 10px;
width: 60px;
height: 60px;
}
/* Interactivity */
input[type="text"]::placeholder {
color: #9e9e9e;
}
input[type="text"]:hover {
border-color: #3700b3;
}
/* Forecast section */
.forecast {
margin-top: 20px;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.forecast-day {
background-color: #1e1e1e;
border-radius: 10px;
padding: 1rem;
margin: 0.5rem;
width: 150px;
text-align: center;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.forecast-day img {
width: 50px;
height: 50px;
}
.forecast-day p {
margin: 5px 0;
}