-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
144 lines (127 loc) · 2.88 KB
/
main.css
File metadata and controls
144 lines (127 loc) · 2.88 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
:root {
--accent: #00c6ff;
--bg-overlay: linear-gradient(
to bottom,
rgba(0, 30, 60, 0.6),
rgba(0, 10, 30, 0.8)
);
--text-main: #ffffff;
--text-muted: #d0e6f7;
--glass-bg: rgba(255, 255, 255, 0.25);
}
/* ====== GLOBAL RESET ====== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
background-image: url('./bg.jpg');
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
}
.app-wrap {
min-height: 100vh;
display: flex;
flex-direction: column;
background: var(--bg-overlay);
transition: background 0.6s ease;
}
/* ====== HEADER ====== */
header {
display: flex;
justify-content: center;
padding: 50px 15px 15px;
}
header input {
width: 100%;
max-width: 280px;
padding: 10px 15px;
background: var(--glass-bg);
border: none;
border-bottom: 3px solid var(--accent);
border-radius: 0 16px 0 16px;
outline: none;
font-size: 20px;
color: #003049;
}
/* ====== MAIN ====== */
main {
flex: 1;
padding: 25px;
text-align: center;
}
.location .city {
font-size: 32px;
color: var(--text-main);
}
.location .date {
color: var(--text-muted);
}
.current .temp {
font-size: 102px;
font-weight: 900;
margin: 30px 0;
color: var(--accent);
text-shadow: 2px 10px 10px rgba(0, 0, 0, 0.6);
}
.current .weather {
font-size: 32px;
font-style: italic;
color: var(--text-main);
}
.current .hi-low {
font-size: 24px;
color: var(--text-muted);
}
/* ====== THEMES ====== */
/*WORLD METEOROLOGICAL ORGANIZATION*/
/* COLD */
.theme-cold {
--accent: #00FFFF; /* bright cyan */
--bg-overlay: linear-gradient(
to bottom,
rgba(0, 255, 255, 0.7), /* bright cyan at top */
rgba(0, 180, 180, 0.85) /* darker cyan at bottom */
);
}
/* MILD */
.theme-mild {
--accent: #00FF00; /* bright green */
--bg-overlay: linear-gradient(
to bottom,
rgba(0, 255, 0, 0.6), /* lighter green at top */
rgba(0, 180, 0, 0.8) /* darker green at bottom */
);
}
/* HOT */
.theme-hot {
--accent: #FFFF00; /* bright yellow */
--bg-overlay: linear-gradient(
to bottom,
rgba(255, 255, 0, 0.6), /* lighter yellow at top */
rgba(180, 180, 0, 0.8) /* darker yellow at bottom */
);
}
.theme-v-hot {
background-color: #FF8C00;
color: white; /* keeps text readable */
}
.theme-very-hot {
background-color: #FF4500; /* orange-red */
color: white; /* keeps text readable */
}
.theme-ex-hot {
background-color: #FF0000; /* orange-red */
color: white; /* keeps text readable */
}
.theme-vx-hot {
background-color: #800000; /* orange-red */
color: white; /* keeps text readable */
}
.theme-horhot {
background-color: #FF00FF; /* orange-red */
color: white; /* keeps text readable */
}