html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Josefin Sans", sans-serif;
}

body {
	min-height: 100dvh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	background-image: linear-gradient(180deg, #ffdee9 0%, #b5fffc 100%);
	background-attachment: fixed;
	color: #1d9bf0;
	overflow-x: hidden;
}

.card {
	height: fit-content;
	width: 90vw;
	transition: all 0.2s;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.image {
	height: 25vw;
}

.img-sm {
	height: 50px;
}

.wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
}

#username-text {
	font-size: 2.5rem;
	text-align: center;
	font-weight: bolder;
	color: black;
}

.wrapper > h1 {
	margin: 20px 0px;
}

.ramzan-image {
	animation: imageAnimation 3s linear infinite;
}

.wish-text {
	margin-top: 1rem;
}

@keyframes imageAnimation {
	0% {
		transform: rotateZ(0deg) scale(1);
	}

	25% {
		transform: rotateZ(5deg) scale(0.8);
	}

	50% {
		transform: rotateZ(0deg) scale(1);
	}

	75% {
		transform: rotateZ(-5deg) scale(0.8);
	}

	100% {
		transform: rotateZ(0deg) scale(1);
	}
}

#inputs {
	width: 100dvw;
	position: fixed;
	bottom: 10px;
	left: 0;
	z-index: 12;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

#inputs > form {
	width: 80%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	gap: 1rem;
}

.form-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

#username-input,
#generate-btn,
#share-btn {
	padding: 1rem;
	font-size: 1.3rem;
	border: none;
	box-shadow: 2px 2px 7px 0 rgb(0, 0, 0, 0.2);
	outline: none;
	border-radius: 0.6rem;
}

#generate-btn {
	width: 150px;
}

#username-input {
	flex: 1;
}

#share-btn {
	width: 150px;
}

#welcome-page {
	width: 100dvw;
	height: 100dvh;
	min-height: 100dvh;
	background-image: linear-gradient(180deg, #ffdee9 0%, #b5fffc 100%);
	position: fixed;
	left: 0;
	top: 0;
	z-index: 13;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	flex-direction: column;
}

#welcome-text {
	color: #a97f55;
	font-size: 4rem;
}

#welcome-image {
	margin: 0;
	height: 50vh;
}

#welcome-p {
	font-size: 1.5rem;
	text-align: center;
	color: #a97f55;
}

@media screen and (max-width: 1200px) {
	.card {
		display: flex;
		flex-direction: column;
		justify-content: space-evenly;
		align-items: center;
	}

	.image {
		height: 75vw;
		margin: 2rem 0px;
	}

	#generate-btn {
		width: max(20%, fit-content);
	}

	#inputs > form {
		width: 95%;
		align-items: center;
		justify-content: space-evenly;
	}

	#username-input,
	#generate-btn,
	#share-btn {
		font-size: 1rem;
	}

	.wish-text {
		width: 95vw;
		text-align: center;
	}

	body {
		padding-bottom: 8rem;
	}

	#welcome-text {
		font-size: 4rem;
	}
}

@media screen and (max-width: 768px) {
	form {
		width: 100%;
		flex-direction: column;
	}

	form > input {
		width: 90%;
	}
}
