html {
	box-sizing: border-box;
	font-size: 16px;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
	margin: 0;
	padding: 0;
	font-weight: normal;
}

ol,
ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
}

.weatherCard,
.searchCity,
.credits>* {
	background: rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	padding: 8px;
}

body {
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	color: white;
	padding: 8px;
	gap: 8px;
}

.credits {
	display: flex;
	width: 100%;
	justify-content: space-between;
	gap: 8px;
}

input[type=text] {
	appearance: none;
	border: none;
	outline: none;
	border-bottom: .2em solid black;
	background: rgba(white, .2);
	border-radius: .2em .2em 0 0;
	padding: .4em;
	color: black;
}

button {
	background-color: #333;
	color: #fff;
	border: none;
	padding: 8px 15px;
	text-transform: uppercase;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease-out;
	align-self: center;
}

button:hover {
	background-color: #555;
}

button:active {
	background-color: #222;
}

.buttonCenter {
	display: flex;
	justify-content: center;
}

input[id="degrees"]:checked~abbr[title="Fahrenheit"] {
	display: none;
}

input[id="degrees"]:not(:checked)~abbr[title="Celsius"] {
	display: none;
}

input[id="distance"]:checked~abbr[title="Miles"] {
	display: none;
}

input[id="distance"]:not(:checked)~abbr[title="Kilometers"] {
	display: none;
}