* {
	box-sizing: border-box;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	margin: 0;
	font-family: "Josefin Sans", sans-serif;
	font-family: "Open Sans", sans-serif;
	background: #222222;

	background-image: url("https://source.unsplash.com/1600x900/?landscape");
	background-size: cover;
	background-repeat: no-repeat;
	font-size: 120%;
}

.card {
	background: #000000d0;
	color: white;
	padding: 2em;
	border-radius: 30px;
	width: 100%;
	max-width: 420px;
	margin: 1em;
}

/* .search {
	display: flex;
	align-items: center;
	justify-content: center;
} */

.search-box {
	width: fit-content;
	height: fit-content;
	position: relative;
}

.search-bar {
	height: 50px;
	width: 50px;
	border-style: none;
	padding: 10px;
	font-size: 18px;
	letter-spacing: 2px;
	outline: none;
	border-radius: 25px;
	transition: all 0.5s ease-in-out;
	background-color: #7c7c7c2b;
	padding-right: 40px;
	color: #fff;
}

.search-bar::placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 18px;
	letter-spacing: 2px;
	font-weight: 100;
}

.btn-search {
	width: 50px;
	height: 50px;
	border-style: none;
	font-size: 20px;
	font-weight: bold;
	outline: none;
	cursor: pointer;
	border-radius: 50%;
	position: absolute;
	right: 0px;
	color: #ffffff;
	background-color: transparent;
	pointer-events: painted;
}

.btn-search:focus ~ .search-bar {
	width: 300px;
	border-radius: 0px;
	background-color: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	transition: 0.35s ease-in-out;
}

.search-bar:focus {
	width: 300px;
	border-radius: 0px;
	background-color: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	transition: 0.35s ease-in-out;
}

.flex {
	display: flex;
	align-items: center;
}

h1.temp {
	margin: 0;
	margin-bottom: 0.4em;
}

.description {
	text-transform: capitalize;
	margin-left: 8px;
}

.weather.loading {
	visibility: hidden;
	max-height: 20px;
	position: relative;
}

.weather.loading:after {
	visibility: visible;
	content: "loading";
	color: #ffffff;
	position: absolute;
	top: 0;
	left: 20px;
}
