@import url('https://fonts.googleapis.com/css2?family=Short+Stack&display=swap');

html {
	scroll-behavior: smooth;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: 'Short Stack', cursive;
	background-image:
		linear-gradient(0deg,
			rgba(226, 207, 243, 0.2) 0% 12.5%, rgba(255, 255, 255, 0.2) 12.5% 37.5%, rgba(226, 207, 243, 0.2) 37.5% 62.5%, rgba(255, 255, 255, 0.2) 62.5% 87.5%, rgba(226, 207, 243, 0.2) 87.5% 100%),
		linear-gradient(90deg,
			rgba(226, 207, 243, 0.2) 0% 12.5%, rgba(255, 255, 255, 0.2) 12.5% 37.5%, rgba(226, 207, 243, 0.2) 37.5% 62.5%, rgba(255, 255, 255, 0.2) 62.5% 87.5%, rgba(226, 207, 243, 0.2) 87.5% 100%);
	background-size: 160px 160px;
	color: #5b3d69;
	text-align: center;
	margin: 0;
	padding: 20px;
}

.container {
	max-width: 400px;
	margin: 32px auto;
	background: #f5efff;
	padding: 24px;
	border-radius: 16px;
	border: 5px solid rgba(216, 200, 233, 0.6);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.container h2 {
	font-size: 1.2em;
	margin-top: -20px;
}

.container p {
	font-size: 0.8em;
	margin: 20px auto;
}

.container a {
	color: inherit;
	text-decoration: none;
}

input {
	width: calc(100% - 20px);
	padding: 12px;
	border-radius: 32px;
	border: none;
	outline: none;
	margin-bottom: 15px;
	font-family: 'Short Stack', cursive;
	background: white;
	text-align: center;
}

button {
	padding: 8px 16px;
	border: none;
	border-radius: 64px;
	cursor: pointer;
	font-family: 'Short Stack', cursive;
	transition: transform 0.2s ease;
	display: inline-block;
	margin-top: 10px;
}

.generate {
	background: #c8a2c8;
	color: white;
	font-size: 0.9em;
}

.generate:hover {
	transform: scale(1.05);
}

.download {
	background: #c8a2c8;
	color: white;
	font-size: 0.9em;
	opacity: 0.5;
	cursor: not-allowed;
	display: block;
	margin: 10px auto 0;
}

.download.active {
	opacity: 1;
	cursor: pointer;
}

.download:hover {
	transform: scale(1.05);
}

.generate,
.input,
.download {
	transition: transform 0.2s ease;
}

.cute-bouncyy {
	animation: cute-bouncyy 0.4s ease-in-out;
}

@keyframes cute-bouncyy {
	0% {
		transform: scale(1);
	}

	30% {
		transform: scale(0.95);
	}

	50% {
		transform: scale(1.1);
	}

	70% {
		transform: scale(0.98);
	}

	100% {
		transform: scale(1);
	}
}

.qr-container {
	width: 200px;
	height: 200px;
	margin: 20px auto;
	padding: 24px;
	background: white;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.placeholder {
	color: #bbb;
	font-size: 0.9em;
	text-align: center;
	position: absolute;
}

footer {
	text-align: center;
	color: #c8a2c8;
	font-size: 0.8em;
	margin-top: 30px;
}

footer i {
	color: #dab6db;
	animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

	0%,
	50%,
	100% {
		transform: scale(1);
	}

	25%,
	75% {
		transform: scale(1.2);
	}
}