@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins';
	color: white;
	font-weight: 600;
}

body {
	background-image: url('assets/bg.jpg');
	width: 100vw;
	height: 100vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

body::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100dvh;
	background: rgb(0, 0, 0, 0.15);
	backdrop-filter: blur(15px);
}
/* UTILITIES */
.regular-txt {
	font-weight: 400;
}
/* UTILITIES */

.main-container {
	/* border: solid; */
	width: 300px;
	height: 496px;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgb(0, 0, 0, 0.15),
		rgb(255, 255, 255, 0.15)
	);
	border-radius: 12px;
	padding: 20px;
	backdrop-filter: blur(100px);
}

/* INPUT CONTAINER */
.input-container {
	position: relative;
	margin-bottom: 25px;
}
.city-input {
	width: 100%;
	padding: 10px 16px;
	border-radius: 99px;
	border: 3px solid transparent;
	background-color: rgb(0, 0, 0, 0.15);
	outline: none;
	font-weight: 500;
	transition: 0.25s border;
	padding-right: 45px;
}
.city-input::placeholder {
	color: rgb(255, 255, 255, 0.75);
}
.city-input:focus {
	border: 3px solid rgb(0, 0, 0, 0.15);
}
.search-btn {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
}

/* END INPUT CONTAINER */

/* SECTION: WEATHER INFO */
.weather-info {
	/* border: solid; */
	display: flex;
	flex-direction: column;
	gap: 25px;
}
.location-data-container {
	/* border: solid blue; */
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.location {
	display: flex;
	align-items: center;
	gap: 6px;
}
.weather-summary-cointer {
	/* border: solid; */
	display: flex;
	justify-content: space-between;
}
.weather-summary-img {
	/* border: solid; */
	width: 120px;
	height: 120px;
}
.weather-summary-info {
	text-align: end;
}

.weather-conditions-container {
	display: flex;
	justify-content: space-between;
}
.condition-item {
	display: flex;
	align-items: center;
	gap: 6px;
}
.condition-item span {
	font-size: 30px;
}
.forecast-items-container {
	display: flex;
	gap: 15px;
	overflow-x: scroll;
	padding-bottom: 12px;
}
.forecast-items-container::-webkit-scrollbar {
	height: 8px;
}
.forecast-items-container::-webkit-scrollbar-track {
	background: rgb(0, 0, 0, 0.1);
	border-radius: 99px;
}
.forecast-items-container::-webkit-scrollbar-thumb {
	background: rgb(0, 0, 0, 0.15);
}
.forecast-item {
	min-width: 70px;
	background-color: rgb(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
	align-items: center;
	border-radius: 12px;
	transition: 0.3s background;
}
.forecast-item:hover {
	background: rgb(255, 255, 255, 0.15);
}
.forecast-item-img {
	width: 35px;
	height: 35px;
}
/* END SECTION: WEATHER INFO */

/* SECTION: MESSAGE */
.section-message img {
	height: 180px;
	width: fit-content;
}
.section-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 15px;
	margin-top: 25%;
}
/* END SECTION: MESSAGE */

/* ANIMATION */
@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0);
	}
}

@keyframes swing {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(5deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

@keyframes glow {
	0% {
		box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
	}
	100% {
		box-shadow: 0 0 20px rgba(255, 255, 255, 1);
	}
}

@keyframes zoomIn {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.1);
	}
}

/* FLOATING WEATHER ICONS */
.weather-summary-img {
	animation: float 3s ease-in-out infinite;
}

/* SEARCH BUTTON GLOW & SPIN ON HOVER */
.search-btn:hover {
	animation: glow 1s infinite alternate, rotate 1s ease infinite;
}
