* {
	box-sizing: border-box;
}

body,
html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100dvh;
	background-color: #fcf7ed;
	font-family: "Instrument Sans", sans-serif;
}

.main {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;

    color: #000;
}

.center {
	text-align: center;
	max-width: 100%;
	padding: 0 10px;
}

.rsvp-page-title {
	font-size: 60px;
	font-weight: 400;
	margin-bottom: 10px;
	font-family: "Instrument Serif", serif;
}

.rsvp-desc {
	margin-top: 0;
	font-size: 13px;
	text-wrap: balance;
	letter-spacing: .2em;
	opacity: .7;
	text-transform: uppercase;
	font-family: "Instrument Sans", sans-serif;
	&.smol {
		text-transform: none;
		letter-spacing: normal;
		font-size: 14px;
	}
}

.rsvp-greeting {
	font-size: 36px;
	font-weight: 400;
	margin-bottom: 10px;
	font-family: "Instrument Serif", serif;
}

.rsvp-page {
	display: none;
	opacity: 0;
	pointer-events: none;
	&.active {
		display: block;
	}
	&.visible {
		opacity: 1;
		pointer-events: all;
	}
	transition: opacity 0.5s ease;
}

.identify-loader {
	width: 50px;
	margin: 10px auto;
	opacity: 0;
	&.active {
		opacity: 1;
	}
}

.identify-status {
	color: #000;
	display: none;
	&.active {
		display: block;
	}
	a {
		color: #000;
		text-decoration: underline;
		&:hover {
			color: #222;
		}
	}
}

.rsvp-input {
	background: none;
	font-size: 22px;
	border: none;
	outline: none;
	color: #000;
	width: 100%;
	font-family: "Instrument Serif", sans-serif;
	padding: 10px;
	border-radius: 5px;
	border-bottom: solid 1px #2f241b1f;
}

.guests-table {
	border-collapse: collapse;
	width: 500px;
	max-width: 100%;
	margin: 20px auto;

	td {
		padding: 5px 0;
	}

	.guest-name {
		font-size: 18px;
		text-align: left;
		&.noedit {
			padding: 8px;
		}
		input {
			background: #0000;
			font-size: 20px;
			border: none;
			outline: none;
			color: #fff;
			width: calc(100% - 30px);
			margin-right: 30px;
			font-family: "Uniform Rounded Condensed", sans-serif;
			padding: 7px;
			border-radius: 5px;
			&:hover {
				background: #fff1;
			}
			&:focus {
				background: #fff2;
				box-shadow: 0 0 5px #fff5;
			}
		}
	}
	.col-smol {
		width: 0px;
	}
	.rsvp-toggle {
		display: inline-flex;
		flex-wrap: nowrap;
		width: 130px;
		border-radius: 50px;
		border: solid 1px #2f241b1f;
		input[type="radio"] {
			display: none;
		}
		input:checked + label {
			span {
				background: #2f241b;
				color: #fff;
			}
		}
		label {
			width: 100%;
			text-align: center;
			padding: 2px;
			color: #888;
			cursor: pointer;
			user-select: none;
			background: none;
			span {
				display: block;
				border-radius: 50px;
				width: 100%;
				height: 100%;
				padding: 8px 12px;
				font-size: 14px;
			}
			&:hover span {
				background: #2f241b11;
			}
			&.yes {
				border-top-left-radius: 50px;
				border-bottom-left-radius: 50px;
			}
			&.no {
				border-top-right-radius: 50px;
				border-bottom-right-radius: 50px;
			}
		}
	}

	.delete-button {
		opacity: 0;
		cursor: pointer;
		background: none;
		outline: none;
		border: none;
		padding: 0;
		font-size: 20px;
		color: #fff;
		margin: 0 10px;
	}
	.ghost-col {
		width: 40px;
	}

	&:hover .delete-button {
		opacity: 1;
	}
}

.edit-link {
	margin-top: 0;
	color: #000;
	text-decoration: underline;
	text-wrap: balance;
	opacity: .7;
	font-size: 14px;
	font-family: "Instrument Sans", sans-serif;
	&:hover {
		color: #222;
	}
}

.btn {
	display: inline-block;
	margin: 5px;
	margin-top: 25px;
	background: none;
	transition: background-color 0.1s ease, color 0.1s ease, transform 0.1s ease;
	border: solid 1px #2f241b1f;
	padding: 13px 30px;
	border-radius: 100px;
	font-family: "Instrument Sans", sans-serif;
	font-size: 17px;
	position: relative;
	color: #000;
	text-decoration: none;
	&:hover {
		background: #2f241b;
		color: #fff;
		cursor: pointer;
	}
	&:active {
		transform: scale(0.95);
	}
}

dialog {
	max-width: 100%;
	border: none;
	box-shadow: 0 0 10px #0005;
	padding: 0;
	video {
		width: 100%;
		height: 100%;
	}
}