-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
142 lines (126 loc) · 3.03 KB
/
styles.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
body {
font-family: 'Arial', sans-serif;
background-color: #e0f7fa;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-image: url('background.jpg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
transition: background-position 1s ease;
}
* {
box-sizing: border-box; /* Ensures padding and border are included in width */
}
/* Main Wrapper for Flexbox Layout */
#containerWrapper {
display: flex;
justify-content: center; /* Center the items */
width: 90%; /* Full width */
margin: 0 auto; /* Center the container on the page */
}
/* Main Container */
#bg_container {
background-color: rgba(255, 255, 255, 0.80);
padding: 40px 30px;
border-radius: 15px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
max-width: 400px;
text-align: center;
margin-right: 20px; /* Space between containers */
border: 1px, rgb(0, 0, 0);
border-style: solid;
transition: background-color 0.5s ease-in-out;
}
#bg_container:hover{
background-color: rgba(185, 185, 185, 0.8);
}
/* More Info Container */
#moreInfoContainer {
background-color: rgba(255, 255, 255, 0.85);
padding: 40px 30px;
border-radius: 15px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
max-width: 400px;
text-align: center;
border: 1px, rgb(0, 0, 0);
border-style: solid;
}
/* Input and Button Styling */
input, button {
width: 95%; /* Ensure both have the same width */
padding: 12px 15px;
margin: 12px 0;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 16px;
}
/* Get Weather Button Styling */
button {
background-color: #00796b;
color: white;
transition: background-color 0.3s ease;
border: none;
cursor: pointer;
}
button:hover {
background-color: #004d40;
}
/* Weather Info Styles */
.weather-info {
margin-top: 25px;
color: #333;
}
#cityName {
font-size: 1.8em;
font-weight: 600;
color: #00796b;
}
#temperature {
font-size: 2.5em;
font-weight: bold;
color: #ff5722;
margin-top: 10px;
}
#weatherDescription {
font-size: 1.2em;
color: #00796b;
margin-top: 5px;
}
.footer {
position: fixed;
bottom: 10px;
right: 10px;
font-size: 14px;
color: #ffffff;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px 10px;
border-radius: 5px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}
.footer_github {
position: fixed;
bottom: 10px;
left: 10px;
font-size: 14px;
color: #ffffff;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px 10px;
border-radius: 5px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}
/* Media Queries */
@media (max-width: 600px) {
#bg_container, #moreInfoContainer {
max-width: 90%; /* Full width on smaller screens */
margin-right: 0; /* Remove right margin */
}
}
@media (min-width: 600px) {
#bg_container, #moreInfoContainer {
max-width: 45%; /* Adjust width for larger screens */
}
}