Spaces:
Sleeping
Sleeping
html, body { | |
margin: 0; | |
padding: 0; | |
width: 100%; | |
height: 100%; | |
font-family: Arial, sans-serif; | |
background-color: #e0f7fa; | |
color: #333; | |
} | |
.container { | |
display: flex; | |
flex-direction: column; | |
height: 100%; | |
} | |
header { | |
text-align: center; | |
background-color: #42a5f5; | |
color: white; | |
padding: 10px; | |
border-radius: 5px; | |
} | |
main { | |
flex: 1; | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
padding: 20px; | |
overflow-y: auto; | |
} | |
.content { | |
display: flex; | |
justify-content: space-between; | |
align-items: flex-start; | |
} | |
.search-section, .subscribe-section { | |
text-align: center; | |
margin: 20px 0; | |
} | |
.search-section { | |
flex: 0 0 30%; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
} | |
.search-section input, .subscribe-section input { | |
padding: 10px; | |
width: 80%; | |
margin: 5px 0; | |
} | |
.search-section button, .subscribe-section button { | |
padding: 10px 20px; | |
margin: 5px; | |
background-color: #42a5f5; | |
color: white; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
} | |
.search-section button#location-button { | |
background-color: #757575; | |
} | |
.weather-section { | |
flex: 1; | |
display: flex; | |
flex-direction: column; | |
} | |
.current-weather, .forecast { | |
background-color: #bbdefb; | |
padding: 20px; | |
margin: 10px 0; | |
border-radius: 5px; | |
} | |
.current-weather { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.current-weather .weather-details { | |
flex: 1; | |
} | |
.current-weather .weather-details p { | |
margin: 5px 0; | |
} | |
.weather-icon { | |
text-align: center; | |
flex: 0 0 400px; | |
} | |
.weather-icon img { | |
width: 50px; | |
height: 50px; | |
} | |
.forecast { | |
display: flex; | |
justify-content: space-between; | |
flex-wrap: wrap; | |
} | |
.forecast-row { | |
width: 100%; | |
display: flex; | |
justify-content: space-between; | |
} | |
.forecast-day { | |
background-color: #eceff1; | |
padding: 10px; | |
border-radius: 5px; | |
text-align: center; | |
flex: 0 0 23%; | |
box-sizing: border-box; | |
margin-bottom: 10px; | |
} | |
.forecast-day img { | |
width: 40px; | |
height: 40px; | |
} | |
#city-history { | |
margin-top: 10px; | |
font-size: 14px; | |
} | |
.city-history-item { | |
/* cursor: pointer;*/ | |
color: #1976d2; | |
/* text-decoration: underline;*/ | |
} | |
.search-section button#clear-history-button { | |
background-color: #d32f2f; | |
} | |
#load-more-btn { | |
padding: 10px 20px; | |
background-color: #2196F3; | |
color: white; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
margin-top: 10px; | |
transition: background-color 0.3s ease; | |
} | |
#load-more-btn:hover { | |
background-color: #0b7dda; | |
} |