*,
::before,
::after {
	box-sizing: border-box;
}

body {
	padding: 0;
	margin: 0;
	height: calc(100vh - 0.01px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #808080;
	font-family: "Montserrat Alternates", sans-serif;
}

form {
	position: relative;
	margin: 0 1rem;
	padding: 1rem;
	display: flex;
	gap: 1rem;
	flex-direction: column;
	justify-content: center;
	background: #f4ede9;
	border-radius: 1rem;
	text-align: center;
}

h2 {
	font-weight: 500;
	font-style: normal;
	transform: translateY(-30px);
}

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

#statement {
	text-align: center;
}

p {
	line-height: 1.5rem;
	font-weight: 500;
}

.container {
	display: flex;
	gap: 1rem;
	flex-direction: column;
	justify-content: center;
}

input {
	width: 50%;
	padding: 0.5rem;
	border-style: none;
	border-radius: 0.2rem;
	font-family: "Manrope", sans-serif;
}

.bottom {
	position: relative;
}

.confetti {
	width: 200px;
	position: absolute;
	top: 0; 
	left: 50%;
	transform: translate(-50%, 10%);
	pointer-events: none;
}

.rsvp {
	padding: 1rem;
	background-color: #d1cac6;
	color: black;
	border-style: none;
	border-radius: 2rem;
}

.submitted {
	animation: thanks 0.5s linear none 2 alternate;
}

.hide {
	display: none;
}

.first, .second {
	width: 50px;
	transform: translateY(40px);
}

.second {
	transform: scaleX(-1) translateY(40px);
}

@keyframes thanks {
	0% {
		width: 123.8px;
		height: 48px;
	}
	100% {
		width: 50%;
		height: 48px;
	}
}
