* {
	padding: 0;
	margin: 0;
	font-family: 'Roboto', 'Quicksand', Arial, Helvetica, sans-serif;
}

body {
	height: 100svh;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fcfff9;
	box-sizing: border-box;
}

.wrapper {
	height: 85vh;
	width: 30vw;
	border-radius: 15px;
	background-color: #2e3336;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.5rem;
	box-sizing: border-box;
	box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.5);
	gap: 4rem;
	position: relative;
	overflow: auto;
}

input {
	font-weight: 500;
	font-size: 20px;
	background-color: #41a0c0;
	padding: 10px;
	border: none;
	outline: none;
	border-radius: 15px;
	color: rgb(255, 255, 255);
	width: 75%;
}

input:focus {
	border: none;
	text-decoration: none;
	outline: none;
	background-color: #4dbde2;
}

input::placeholder {
	font-weight: 500;
	font-size: 16px;
	color: rgb(255, 255, 255);
	font-style: italic;
	padding-left: 5px;
}

#searchButton {
	background-color: #41a0c0;
	padding: 5px;
	border: none;
	outline: none;
	border-radius: 15px;
	color: white;
	width: 15%;
	text-align: center;
	font-size: 15px;
	font-weight: 900;
}

#searchButton:hover {
	background-color: #4dbde2;
}

form {
	display: flex;
	width: 100%;
	justify-content: space-evenly;
}

.countryStats {
	max-width: 40%;
}
.countryFlag {
	width: 30%;
	height: auto;
	object-fit: cover;
	border-radius: 15px;
}

#countryName,
#cityName,
#localTime {
	font-weight: 300;
	color: white;
	font-size: 1.5rem;
}

#countryName {
	font-size: 3rem;
	font-weight: 700;
	font-style: italic;
}

.tempStats {
	width: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#temp {
	font-weight: 900;
	font-size: 6rem;
	color: white;
	font-style: italic;
}

#condition {
	font-weight: 300;
	font-size: 3rem;
	color: white;
	font-style: italic;
}

.footer {
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1.5rem;
}

.footerContent {
	color: white;
	text-decoration: none;
	font-weight: 300;
	font-style: italic;
}

a {
	text-decoration: none;
	color: white;
}

a:hover {
	color: #41a0c0;
}

.countryContainer {
	width: 100%;
	display: flex;
	justify-content: space-evenly;
	gap: 10%;
	align-items: center;
}

/* Switch button */

/* The switch - the box around the slider */
/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 30px; /* Halved the width */
	height: 17px; /* Halved the height */
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: '';
	height: 13px; /* Halved the height */
	width: 13px; /* Halved the width */
	left: 2px; /* Halved the left offset */
	bottom: 2px; /* Halved the bottom offset */
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: #41a0c0;
}

input:focus + .slider {
	box-shadow: 0 0 1px #41a0c0;
}

input:checked + .slider:before {
	-webkit-transform: translateX(13px); /* Halved the translation */
	-ms-transform: translateX(13px); /* Halved the translation */
	transform: translateX(13px); /* Halved the translation */
}

/* Rounded sliders */
.slider.round {
	border-radius: 17px; /* Halved the border-radius */
}

.slider.round:before {
	border-radius: 50%;
}

.switchButtonDiv {
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 1.5rem;
}

p {
	text-overflow: ellipsis;
}

@media (max-width: 700px) {
	.wrapper {
		height: 600px;
		width: 400px;
	}

	#temp {
		font-size: 3rem;
	}

	#condition {
		font-size: 2rem;
	}

	#countryName,
	#cityName,
	#localTime {
		font-size: 1rem;
	}
}

@media (min-height: 1500px) and (max-height: 2500px) {
	.wrapper {
		height: 1000px;
		width: 700px;
	}
	#temp {
		font-size: 3rem;
	}

	#condition {
		font-size: 2rem;
	}

	#countryName,
	#cityName,
	#localTime {
		font-size: 1rem;
	}
}
