/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,300;0,500;1,300;1,500&display=swap');

:root {
	--foreground-color: #FFFFFF;
	--background-color: #353b42;
	--header-color: #151c23;
	--link-color: #e8eeff;
	--link-active-color: #e8eeff;
	--accent-color: #aeccff;
	--scroll-padding-top: 6.67rem;
	--flap-height: 549px;
	--invitation-animation-duration: 15s;
	color-scheme: dark;
}	

@media screen and (min-width: 32.5rem) {
	:root {
		--scroll-padding-top: 4.7rem;
	}
}

@media screen and (min-width: 68rem) {
	:root {
		--scroll-padding-top: 3.4rem;
	}
}

@media screen and (max-height: 50rem) and (orientation: landscape) {
	:root {
		--scroll-padding-top: 0;
	}
}

@keyframes fade-in {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes party {
	0% {
		min-height: calc(100vh);
	}
	30% {
		min-height: calc(100vh - 0.7 * var(--scroll-padding-top));
	}
	100% {
		min-height: calc(100vh - var(--scroll-padding-top));
	}
}

@keyframes invitation {
	0% {
		top: 0;
		opacity: 0;
		z-index: 18;
		transform: scale(1, 1);
		visibility: hidden;
	}
	66% {
		top: 0;
		opacity: 0;
		visibility: hidden;
	}
	67% {
		box-shadow: 0 1rem 1rem 0 rgba(0, 0, 0, 0.2);
		opacity: 1;
		visibility: visible;
	}
	68% {
		top: 0;
	}
	72% {
		top: var(--flap-height);
	}
	78% {
		transform: rotate(0deg) translate(0%, 0%);
	}
	83% {
		transform: rotate(0deg) translate(0%, -85%);
	}
	84% {
		transform: rotate(2deg) translate(0%, -100%) rotateX(1deg) rotateY(1deg);
	}
	85% {
		transform: rotate(3deg) translate(0%, -107% rotateX(3deg) rotateY(3deg));
	}
	86% {
		transform: rotate(3.5deg) translate(0%, -115%) rotateX(4.5deg) rotateY(4.5deg);
	}
	87% {
		transform: rotate(3.2deg) translate(0%, -110%) rotateX(5.5deg) rotateY(5.5deg);
		z-index: 18;
	}
	88% {
		transform: rotate(2.5deg) translate(0%, -108%) rotateX(6.5deg) rotateY(6.5deg);
		z-index: 40;
	}
	89% {
		transform: rotate(2deg) translate(0%, -102%) rotateX(4deg) rotateY(4deg);
	}
	89.5% {
		transform: rotate(1.5deg) translate(0%, -95%) rotateX(3deg) rotateY(4deg);
	}
	91% {
		transform: rotate(1.5deg) translate(0%, -75%) rotateX(2deg) rotateY(3.5deg) scale(1, 1);
		box-shadow: 0 1rem 1rem 0 rgba(0, 0, 0, 0.2);
	}
	94% {
		transform: rotate(-24deg) translate(16%, -28%) rotateX(1deg) rotateY(1.5deg) scale(1.05, 1.06);
	}
	95% {
		transform: rotate(-25deg) translate(0%, -24%) rotateX(0deg) rotateY(0deg) scale(1.02, 1.03);
	}
	95.5% {
		transform: rotate(-25deg) translate(0%, -19%);
		box-shadow: 0 2.3rem 1.6rem -0.2rem rgba(0, 0, 0, 0.3);
	}
	100% {
		transform: rotate(-25deg) translate(0%, -19%) scale(1, 1);
		box-shadow: 0 2.3rem 1.6rem -0.2rem rgba(0, 0, 0, 0.3);
		opacity: 1;
		visibility: visible;
		top: var(--flap-height);
		z-index: 40;
	}
}

@keyframes invitation-small {
	0% {
		opacity: 0;
		z-index: 18;
		transform: rotate(7deg) scale(0.05, 1);
		visibility: hidden;
	}
	41% {
		visibility: hidden;
	}
	43% {
		visibility: visible;
		opacity: 0;
		transform: rotate(7deg) translate(0%, 0%) scale(0.05, 1);
		z-index: 18;
	}
	47%, 51% {
		opacity: 1;
		z-index: 40;
		transform: rotate(0deg) translate(0%, 0%) scale(1, 1);
	}
	55% {
		transform: rotate(2deg) translate(0%, -5%) scale(1.1, 1.1);
	}
	70%, 100% {
		transform: rotate(0deg) translate(0%, 0%) scale(1, 1);
		z-index: 40;
		opacity: 1;
		visibility: visible;
	}
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--scroll-padding-top);
	height: 100%;
}
body,
td,
th,
input,
select,
textarea,
button {
	font-family: Bitter, Helvetica, Arial, sans-serif;
	font-style: normal;
	font-weight: 300;
	font-size: 1rem;
	color: var(--foreground-color);
	line-height: 200%;
	accent-color: var(--accent-color);
}
body {
	background-color: var(--background-color);
	margin: 0;
	height: 100%;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a {
	transition: 0.4s color linear, 0.4s box-shadow linear;
	color: var(--link-color);
	text-decoration: none;
}
a:active,
a:hover {
	text-decoration: none;
}
.current > a,
a:hover {
	color: var(--link-active-color);
}
::selection {
	color: var(--background-color);
	background-color: var(--accent-color);
}
#main {
	margin-block-start: 0;
	transition: 1.5s margin ease-in;
	line-height: 200%;
}
.login #main {
	margin: 0 auto 0;
	padding: 0 5%;
	overflow: hidden;
	width: 90%;
	text-align: center;
}
.login p {
	font-size: clamp(0.9rem, 1.1vw + 0.9rem, 1.05rem);;
}
.admin #main {
	margin: 0 auto 0;
	padding: 0 5%;
	width: 90%;
}
.admin {
	height: auto;
}
.admin .summary {
	margin-block: 0 1.6rem;
}
.admin .summary ul {
	list-style: none;
	margin-inline: 0;
	padding-inline: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.admin .summary li {
	margin-inline: 0;
	padding-block: 0.9rem;
	padding-inline: 0.7rem;
	display: flex;
	flex-wrap: wrap;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	gap: 0.4rem;
	flex: 1 0 10rem;
	text-align: center;
}
.admin .summary .field {
	flex: 1 0 10rem;
	font-weight: 500;
	color: #FFFFFF67;
}
.admin .summary .value {
	flex: 5 0 7rem;
	font-size: 2rem;
	position: relative;
	line-height: 100%;
}
.admin .summary .supplemental {
	font-size: 0.5em;
}
header {
	text-align: center;
	position: fixed;
	background-color: var(--header-color);
	left: 0;
	right: 0;
	top: 0;
	z-index: 100;
}
header.static,
header + #main {
	transition: none;
	transform: translate(0, 0);
}
header + #main {
	margin-block-start: var(--scroll-padding-top);
}
header.static + #main {
	transition: none;
}
header h1,
header ul {
	margin: 0;
}
h1 {
	font-weight: 300;
	font-size: clamp(2.1rem, 3.2vw + 2.1rem, 4.2rem);
	line-height: 200%;
	display: none;
	text-transform: uppercase;
}
h2 {
	font-weight: 300;
	font-size: clamp(1.1rem, 1.6vw + 1.1rem, 2.5rem);
}
h3 {
	font-weight: 300;
	font-size: clamp(1.2rem, 1vw + 1.2rem, 1.6rem);
}
.admin h1 {
	font-weight: 300;
	font-size: clamp(1.1rem, 1.6vw + 1.1rem, 2.5rem);
}
#main p.buttons {
	margin-block: 1.9rem 0;
}
#main .buttons a + a {
	margin-block-start: 0.7rem;
}
.login h1 {
	display: block;
	line-height: 150%;
}
.login h2 {
	margin-block-start: clamp(2.5rem, 2vh + 2.5rem, 6rem);
}
.login .save-the-date {
	margin-block-start: clamp(0.5rem, 1vh + 0.5rem, 2rem);
}
.login-heading {
	color: #FFF2;
}
header nav ul {
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
header nav ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
header nav li {
	font-size: 0.9rem;
	padding: 0;
	flex: 1 1 7em;
	box-shadow: 0 -2px 0 0 rgba(255, 255, 255, 0.1) inset;
	opacity: 0;
}
nav li:nth-child(1) {
	animation: 1s linear 2.2s 1 fade-in forwards;
}
nav li:nth-child(2) {
	animation: 1s linear 2s 1 fade-in forwards;
}
nav li:nth-child(3) {
	animation: 1s linear 1.8s 1 fade-in forwards;
}
nav li:nth-child(4) {
	animation: 1s linear 1.6s 1 fade-in forwards;
}
nav li:nth-child(5) {
	animation: 1s linear 1.4s 1 fade-in forwards;
}
nav li:nth-child(6) {
	animation: 1s linear 1.2s 1 fade-in forwards;
}
nav li:nth-child(7) {
	animation: 1s linear 1s 1 fade-in forwards;
}
nav li:nth-child(8) {
	animation: 1s linear 0.8s 1 fade-in forwards;
}
header nav a {
	display: block;
	padding: 0.8em 1em;
	text-transform: uppercase;
	text-decoration: none;
}
header .line {
	transition: 0.3s left ease-in-out, 0.3s width ease-in-out, 0.3s opacity linear;
	position: absolute;
	content: '';
	border-top: 2px solid var(--accent-color);
	z-index: 300;
	height: 2px;
	left: calc(calc(100% / 8) * 0.1);
	width: calc(calc(100% / 8) * 0.8);
	margin-block-start: -2px;
	opacity: 0;
	display: none;
}
section {
	min-height: calc(100vh - 5.5rem - var(--scroll-padding-top));
	background: linear-gradient(190deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 100%);
	text-align: center;
	padding-block: clamp(3rem, 50vh - 20rem - 0.8 * var(--scroll-padding-top), 25vh);
	padding-inline: min(4em, 5%);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}
section > h2,
section > h3,
section > h4,
section > p,
section > ul,
section > ol {
	width: min(95%, 70rem);
	margin-inline: auto;
}
.login h1 {
	margin-block-start: clamp(5rem, 14vh + 2rem, 60rem);
}
input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=password],
input[type=url],
select,
textarea {
	display: block;
	font-size: 1em;
	border: 0 none;
	border-radius: 4px;
	padding: 0.3rem 0.4rem;
	width: calc(100% - 0.8rem);
	background-color: rgba(30, 30, 30, 0.5);
}
input.error {
	background-image: url("data:image/svg+xml;charset=UTF-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0ODguNDE5IDQ4OC40MTkiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBkPSJNNDgwLjc3OCAzNjYuNzggMjc3LjgxNiA3MC4yMTlhMzkuMDcyIDM5LjA3MiAwIDAgMC0zMi4xNTMtMTcuMDEgMzkuMDU2IDM5LjA1NiAwIDAgMC0zMi4yNTYgMTYuODIyTDcuNzg4IDM2Ni41NTlhNDMuNzU4IDQzLjc1OCAwIDAgMC0yLjgwNiA0NS4xOTcgNDMuNzI2IDQzLjcyNiAwIDAgMCAzOC43NDYgMjMuNDUzaDQwMC45NTlhNDMuNzM5IDQzLjczOSAwIDAgMCAzOC42ODMtMjMuMzI4IDQzLjc0NCA0My43NDQgMCAwIDAtMi41OTItNDUuMTAxem0tMjM2LjU2NCAzNC4wOTZjLTE3LjA3MyAwLTMwLjkxNi0xMy44MjYtMzAuOTE2LTMwLjkxMiAwLTE3LjA5IDEzLjg0My0zMC45MTYgMzAuOTE2LTMwLjkxNiAxNy4wNzEgMCAzMC45MTMgMTMuODI2IDMwLjkxMyAzMC45MTYgMCAxNy4wODYtMTMuODQyIDMwLjkxMi0zMC45MTMgMzAuOTEyem0tMjcuNTA3LTI1Ny4xMzFhMzcuMzU2IDM3LjM1NiAwIDAgMSAyNy41MDYtMTIuMDcyIDM3LjM1NSAzNy4zNTUgMCAwIDEgMjcuNTA0IDEyLjA3MiAzNy4zNDIgMzcuMzQyIDAgMCAxIDkuNzM2IDI4LjQyMmwtMTEuNzQ5IDE0MC4yNzVjLTcuODE2LTMuNDgtMTYuNDA2LTUuNTAxLTI1LjQ5MS01LjUwMS05LjA4NyAwLTE3LjY3NiAyLjAyMS0yNS40OTEgNS41MDFsLTExLjc1MS0xNDAuMjc1YTM3LjM1OCAzNy4zNTggMCAwIDEgOS43MzYtMjguNDIyeiIvPgo8L3N2Zz4");
	background-repeat: no-repeat;
	background-size: 1.5em;
	background-position: calc(100% - 0.5em) 50%;
}
input.error:hover,
input.error:focus {
	background-image: none;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 1px solid var(--accent-color) inset;
}
button,
.button,
.maps a {
	display: inline-block;
	padding: 0.4em 2em;
	border: 0 none;
	text-transform: uppercase;
	border-radius: 4px;
	background-color: transparent;
	color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) inset;
	transition: 0.5s color linear, 0.5s background-color linear, 0.5s box-shadow linear, 0.5s border linear; 
}
.maps .what3words .icon {
	color: var(--background-color);
	display: inline-block;
	border-radius: 3px;
	background-color: rgba(255, 0, 0, 0.7);
	width: 1.6em;
	height: 1.6em;
	overflow: hidden;
	line-height: 170%;
	font-size: 0.9em;
	vertical-align: middle;
	font-weight: 700;
	margin-inline-end: 0.4em;
	font-family: 'Arial Rounded', Helvetica, Arial, sans-serif;
	letter-spacing: -0.03em;
}
button.active,
.button.active {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88) inset;
}
button:hover,
.button:hover,
.maps a:hover {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75) inset;
}
button.disabled,
.button.disabled {
	color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28) inset;
}
img {
	border: 0 none;
}
.login-options,
.login-options form {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1.7rem;
	max-width: 900px;
	margin-inline: auto;
}
.login-options > *{
	flex: 1 0 100%;
}
.login-options .instructions {
	display: none;
}
.login-options p {
	margin-block: 0;
}
.login-options .first-name {
	flex: 6 0 10rem;
}
.login-options .code {
	flex: 7.2 0 10rem;
}
.login-options .buttons {
	flex: 1 0 1.2rem;
}
.login-options .buttons button {
	width: min(100%, 5.1rem);
	font-size: 1.7rem;
	line-height: 80%;
	padding-inline: 0.2rem;
}
#login-slide {
	display: none;
	transition: 0.3s transform ease-in-out;
	position: absolute;
	background-color: var(--background-color);
	padding-block: 0 4.5rem;
	width: min(90% - 1.8rem, 480px - 1.8rem);
	text-align: center;
	line-height: 150%;
}
#login-slide.login-code {
	transform: translateX(100%);
}
#login-slide a {
	transition: 0.3s color ease-in-out;
	display: block;
	padding: 0.5rem;
}
#login-slide .login-code,
#login-slide .login-email {
	transition: 0.4s margin ease-in-out 0.2s;
}
#login-slide.login-email .login-code {
	margin-block: 4.6em 0;
}
#login-slide.login-email .login-email {
	margin-block: -6.1em 3.3rem;
}
#login-slide.login-code .login-code a,
#login-slide.login-email .login-email a {
	color: var(--foreground-color);
	cursor: default;
}
#login-slide .login-code a::before,
#login-slide .login-email a::after {
	position: relative;
	height: 0.7rem;
	width: 0.7rem;
	transition: 0.3s transform ease-in-out;
	transform: rotate(315deg);
	content: '';
	display: inline-block;
	color: #fff;
	border-top: 2px solid var(--link-color);
	border-left: 2px solid var(--link-color);
	vertical-align: middle;
	bottom: 0.1em;
	margin-inline: 0 0.5rem;
}
#login-slide .login-email a::after {
	transform: rotate(135deg);
	margin-inline: 0.5rem 0;
}
#login-slide.login-code .login-code a::before {
	border-color:var(--foreground-color);
	transform: rotate(315deg) scale(0.7, 0.7);
}
#login-slide.login-email .login-email a::after {
	border-color:var(--foreground-color);
	transform: rotate(135deg) scale(0.7, 0.7);
}
#main .login-options .buttons {
	margin-block: 0;
}
.hidden {
	display: none;
}
#photos .preview {
	margin-block-start: 4rem;
	transition: 0.4s filter linear;
	filter: grayscale(60%) sepia(40%) brightness(90%) blur(2px);
	opacity: 0.8;
}
#photos .preview:hover {
	filter: grayscale(50%) sepia(30%) brightness(93%) blur(1px);
}
#photos .preview img {
	display: block;
	width: 100%;
	max-width: 60rem;
	height: auto;
	margin-inline: auto;
}
#invitation {
	position: relative;
	padding: 0;
	margin: 0;
	background: #e3e3e3 url(/images/heart-shaped-stones-gap-background.jpg) no-repeat 50% 50% / cover;
	min-height: calc(100vh - var(--scroll-padding-top));
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	width: 100vw;
	justify-content: center;
}
#invitation .invitation {
	animation: 5s linear 0s 1 invitation-small forwards;
	box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
	position: relative;
	width: min(100%, 810px);
	height: min(100%, 750px);
	margin-inline: auto;
	line-height: 1em;
	z-index: 16;
	transition: 0.3s all ease-in-out;
	opacity: 0;
}
#invitation.static {
	animation-duration: 0s;
	animation-play-state: paused;
}
#invitation .card {
	padding: 0;
	position: relative;
}
#invitation .card a {
	display: block;
	margin-inline: auto;
}
#invitation .text {
	display: block;
	width: min(30rem, 90vw);
	height: auto;
}
#rsvp-form,
#rsvp-form p {
	flex: 1 0 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
#rsvp-form {
	align-items: start;
	width: min(40rem, 95%);
	margin-inline: auto;
	margin-block: clamp(1rem, 0.5vh + 1rem, 2.6vh);
	gap: 1.8rem;
}
#rsvp-form p {
	margin-block: 0;
	gap: 1rem;
}
#rsvp input[type="text"],
#rsvp input[type="number"],
#rsvp textarea {
	border: 0 none;
	box-shadow: 0 0 0 2px #79797966 inset;
}
#rsvp input[type="text"]:focus-within,
#rsvp input[type="number"]:focus-within,
#rsvp textarea:focus-within {
	box-shadow: 0 0 0 2px #ffffff67 inset;
}
#rsvp .name.pending .label {
	box-shadow: 0 0 0 3px rgba(140, 55, 245, 0.2), 0 9px 8px -1px rgba(4, 0, 13, 0.2);
	background-color: rgba(140, 55, 245, 0.02);
}
#rsvp .name.nearly-confirmed .label {
	box-shadow: 0 0 0 3px rgba(4, 0, 13, 0.4), 0 9px 8px -1px rgba(4, 0, 13, 0.2);
	background-color: rgba(4, 0, 13, 0.21);
}
#rsvp .name.confirmed .label {
	box-shadow: 0 0 0 3px rgba(4, 0, 13, 0.6), 0 4px 3px -1px rgba(4, 0, 13, 0.5);
	background-color: rgba(4, 0, 13, 0.21);
	transform: translateY(4px);
}
#rsvp .attendance label,
#rsvp .name label {
	flex: 1 0 90%;
}
#rsvp .attendance label {
	padding: 0.3rem 0.4rem;
	border-radius: 2px;
	transition: 0.4s outline linear;
	outline: 1px solid rgba(255, 255, 255, 0.05);
	cursor: pointer;
	align-self: center;
}
#rsvp .attendance label:hover {
	outline: 1px solid var(--accent-color);
}
#rsvp label.disabled,
#rsvp label.disabled:hover,
#rsvp .label.disabled,
#rsvp .label.disabled:hover {
	color: rgba(190, 190, 190, 0.3);
	cursor: default;
	pointer-events: none;
}
#rsvp label.disabled input,
#rsvp .label.disabled input {
	opacity: 0.7;
}
#rsvp label.selected,
#rsvp .label.selected {
	outline: 1px solid var(--accent-color);
}
#rsvp.single-event label,
#rsvp.single-event label.selected,
#rsvp.single-event .label,
#rsvp.single-event .label.selected {
	outline: 0 none;
}
#rsvp .first-name,
#rsvp .last-name,
#rsvp textarea {
	color: var(--foreground-color);
	background-color: transparent;
	display: block;
	transition: 0.3s background-color linear, 0.4s box-shadow linear 0.3s;
}
#rsvp label.selected label,
#rsvp .label.selected label {
	color: #DEDEDE;
	background-color: rgba(64, 64, 64, 0.1);
}
#rsvp label input[type=checkbox],
#rsvp .label input[type=checkbox] {
	visibility: hidden;
	position: absolute;
	margin: 0;
	transform: scale(0.1, 0.1);
}
#rsvp label .marker,
#rsvp .label .marker {
	display: inline-block;
	width: 1.2rem;
	height: 1.2rem;
	background-color: rgba(64, 64, 64, 0.1);
	border-radius: 50%;
	transition: 0.3s background-color linear, 0.4s box-shadow linear 0.3s, 0.3s margin ease-in-out;
	position: absolute;
	margin-inline-start: -0.7em;
	margin-block-start: 0.3em;
	transform: translateX(-100%);
	overflow: hidden;
}
#rsvp label.guest-name .marker,
#rsvp .label.guest-name .marker {
	margin-block-start: 0.6em;
}
#rsvp label.selected .marker,
#rsvp .label.selected .marker {
	background-color: var(--accent-color);
	box-shadow: 0 0 0 2px var(--accent-color) inset;
}
#rsvp label.disabled .marker,
#rsvp .label.disabled .marker {
	box-shadow: 0 0 0 2px rgba(79, 79, 79, 0.3) inset;
}
#rsvp textarea {
	height: 4.4em;
	display: block;
	margin-inline: auto;
	max-width: none;
}
#rsvp .full-name {
	display: inline-block;
	padding-block: 0.3rem;
	min-width: auto;
	text-align: left;
}
#rsvp .read-only,
#rsvp .read-only:focus,
#rsvp .read-only:focus-within {
	box-shadow: none;
	background: transparent;
	outline: none;
}
#rsvp #guests {
	width: min(50%, 3.4rem);
	margin-inline-end: 0.2em;
	font-size: 2rem;
	padding-block: 0;
	line-height: 100%;
	vertical-align: middle;
	text-align: center;
	background-color: transparent;
	border-radius: 3px;
}
#rsvp .guests .plus {
	font-size: 2rem;
	font-weight: 500;
	vertical-align: middle;
	color: #FFF7;
	line-height: 100%;
	cursor: pointer;
}
#rsvp .guests,
#rsvp .dietary-requirements {
	transform-origin: 50% 0;
	transition: 0.3s background-color linear, 0.3s opacity linear, 0.3s transform ease-in-out, 0.3s margin ease-in-out 0s position linear 0s;
}
#rsvp .guests.hidden,
#rsvp .dietary-requirements.hidden {
	opacity: 0;
	transform: scaleY(0);
	margin-block: 0 -7.9rem;
	position: absolute;
	transition: 0.3s background-color linear, 0.3s opacity linear, 0.3s transform ease-in-out, 0.3s margin ease-in-out 0s position linear 0.3s;
}
#rsvp .dietary-requirements {
	display: block;
	transition: 0.2s height ease-in-out, 0.2s opacity ease-in-out, 0.4s outline linear;
	overflow: hidden;
	height: 7.2em;
	flex: 1 0 100%;
	text-align: start;
	position: relative;
}
#rsvp .dietary-requirements.hidden {
	transition-delay: 0.3s;
}
#rsvp .dietary-requirements label {
	font-size: 0.9em;
	padding-inline-start: 0;
}
#main #rsvp p.buttons {
	margin-block: 0;
}
#main #rsvp .buttons button {
	width: 100%;
	display: block;
}
#location ul {
	margin-block-start: 1.7rem;
	list-style: none;
	padding-inline: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2rem;
}
#location li {
	margin-inline: 0;
	padding-inline: 0;
	flex: 1 0 80%;
}
#location .maps {
	margin-block-start: 1.5rem;
}
#location .maps a {
	display: block;
	font-size: 0.9em;
	padding-inline: 1.3em;
	text-transform: inherit;
}
#location .maps a + a {
	margin-block-start: 0.6rem;
}
#entertainment .icon {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	vertical-align: text-bottom;
	position: relative;
	margin-inline-end: 0.3rem;
	margin-block: -0.1rem -0.15rem;
}
#entertainment iframe {
	width: min(100%, 60rem);
	height: auto;
	aspect-ratio: 16 / 9;
	margin-inline: auto;
}
#entertainment .icon-youtube {
	background: transparent url("/images/icon-youtube.svg") no-repeat 0 0 / cover;
	width: 1.6rem;
}
#entertainment .icon-spotify {
	background: transparent url("/images/icon-spotify.svg") no-repeat 0 -0.1rem / 1.5rem;
	margin-block-start: -0.6rem;
}
#account-form {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1.5rem;
	max-width: 1100px;
	margin-inline: auto;
}
#account-form > * {
	flex: 1 0 100%;
}
#account-form p {
	margin: 0;
}
#logout,
#main > #administration {
	text-align: right;
	margin-inline-end: 1em;
	font-size: 0.9em;
	position: absolute;
	right: 1.3rem;
	margin-block-start: -3rem;
	max-width: 15em;
}
#main > #administration,
.admin .logout {
	position: fixed;
	top: 4rem;
	border: 1px solid var(--link-color);
	border-radius: 4px;
	padding-inline: 1.1rem;
	text-transform: uppercase;
	z-index: 1000;
	background-color: #00000078;
}
.admin .logout {
	top: inherit;
	position: sticky;
	bottom: auto;
	right: auto;
	height: auto;
}
.admin #logout {
	text-align: center;
	position: relative;
	display: block;
	width: auto;
	max-width: none;
	right: auto;
	margin-block: 0;
	margin-inline: auto;
	padding: 0.6rem 1rem;
}
#alert {
	position: fixed;
	background-color: rgba(10, 19, 39, 0.9);
	right: 0;
	left: 0;
	bottom: 0;
	padding-block: 0.8rem;
	transition: 0.2s transform ease-in-out, 0.3s opacity linear, 0.4s color linear, 0.4s background-color linear, 0.6s box-shadow linear, 0.2s outline linear;
	transform: scaleY(1);
	transform-origin: 0 100%;
	min-height: 1.7rem;
	z-index: 1150;
	text-align: center;
	font-weight: 500;
	font-size: 1.1rem;
	box-shadow: 0 -2px 0 #00000074;
}
#alert.hidden {
	transform: scaleY(0);
	opacity: 0;
	display: block;
	pointer-events: none;
}
#alert.error {
	color: #ffffff;
	background-color: #C62D76;
}
#alert.success {
	color: var(--background-color);
	background-color: var(--accent-color);
}
#alert .close {
	position: absolute;
	right: 0.3rem;
	margin-block-start: -1rem;
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.5);
	transform: scaleY(0.1);
	opacity: 0;
	transition: 0.6s transform ease-in-out 0.1s, 0.6s opacity linear 0.1s;
	transform-origin: 0 100%;
}
#alert .close.show {
	opacity: 1;
	transform: none;
}
#alert .close {
	color: #000;
}
#alert.error .close {
	color: #ffffff;
}
#alert .close .text {
	font-size: 0.7rem;
	vertical-align: top;
	text-transform: uppercase;
	opacity: 0;
	transition: 0.3s opacity linear;
}
#alert:hover .close .text {
	opacity: 1;
}
#alert p {
	margin: 0;
	transform-origin: 50% 50%;
	position: relative;
	transition: 0.17s transform ease-in-out, 0.2s text-shadow ease-in-out 0.05s;
	text-shadow: 0 0 0#67676700, 0 0 0#67676700;
}
#alert p + p {
	margin-block-start: 1.5rem;
}
#alert .highlight {
	transform: scale(1.2, 1.2);
	text-shadow: 5rem 0 0#67676767, -5rem 0 0#67676767;
}
#main .notice {
	position: absolute;
	top: 0.5rem;
	left: 5.9rem;
	border: 1px solid #C62D76;
	padding-inline: 1rem;
	color: #FF6DB6;
	border-radius: 4px;
	font-size: 0.8rem;
}
#users,
#users table {
	width: 100%;
}
#users input,
#users select,
#users button {
	font-size: 0.8rem;
}
#users thead th {
	background-color: rgba(0, 0, 0, 0.3);
	color: rgba(255, 255, 255, 0.7);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-weight: 300;
	text-align: left;
}
#users thead th,
#users td {
	padding: 0.5em 0.8em;
	font-size: 0.85rem;
	vertical-align: top;
}
#users .unspecified td {
	color: #FFF9;
}
#users .no .attendance {
	color: #de3a597d;
}
#users .unsure .attendance {
	color: #deb83a7d;
}
#users .container {
	max-height: 3.4rem;
	overflow: auto;
}
#users .name .label {
	line-height: 120%;
	display: block;
	font-size: 0.82rem;
	color: rgba(225, 225, 255, 0.8);
}
#users td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#users thead th,
#users tr:last-child td {
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
#users .attendance,
#users .guests,
#users .updated {
	text-align: center;
}

@media (max-width: 760px) {
	#users table,
	#users thead,
	#users tbody,
	#users th,
	#users td,
	#users tr { 
		display: block;
	}
	#users thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	#users tr {
		border: 1px solid #ffffff2f;
		border-bottom: 2px solid #ffffff2f;
	}
	#users td { 
		border: none;
		border-bottom: 1px solid #ffffff2f; 
		position: relative;
		padding-left: 40%; 
	}
	#users td:before { 
		position: absolute;
		top: 6px;
		left: 6px;
		width: 55%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	#users td:nth-of-type(2),
	#users td:nth-of-type(6) {
		display: none;
	}
	#users td:nth-of-type(1):before { content: "Name:"; }
	#users td:nth-of-type(2):before { content: "Code:"; }
	#users td:nth-of-type(3):before { content: "Attendance:"; }
	#users td:nth-of-type(4):before { content: "Guests:"; }
	#users td:nth-of-type(5):before { content: "Diet:"; }
	#users tbody .guests,
	#users tbody .attendance,
	#users tbody .updated {
		text-align: start;
	}
}

@media (aspect-ratio < 1 / 2) {
	.login-options .first-name,
	.login-options .code {
		flex: 1 0 100%;
	}
}

@media (min-width: 600px) {
	h1,
	nav li {
		opacity: 0;
	}
	.login h1,
	.admin h1 {
		animation: 1s linear 0s 1 fade-in forwards;
	}
	.login-options > * {
		flex: 1 0 45%;
	}
	.login-options > :nth-child(2n-1) {
		text-align: right;
	}
	.login-options > :nth-child(2n) {
		text-align: left;
	}
	#rsvp .full-name {
		padding-inline: 0.4rem;
	}
	#location li {
		flex: 1 0 40%;
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
		padding-block: 0.6rem 0.9rem;
		border-radius: 5px;
	}
	#location .maps a {
		display: inline-block;
	}
	#location .maps a + a,
	#entertainment .buttons a + a {
		margin-block: 0;
		margin-inline-start: 0.8rem;
	}
	#rsvp .attendance label,
	#rsvp .name label {
		flex: 1 0 4rem;
	}
	#main #rsvp .buttons button {
		width: min(12rem, 100%);
		margin-inline: auto;
	}
	.admin .logout {
		max-width: min(6rem, 25%);
		margin-inline: auto 0;
	}
	.admin #logout {
		padding-inline: 0.3rem;
		padding-block: 0.2rem;
		font-size: 0.8rem;
	}
}

@media screen and (min-width: 68rem) {
	header .line.hide {
		opacity: 0;
	}
	header .line {
		animation: 1s linear 2.2s 1 fade-in forwards;
		display: block;
	}
	.login h2 {
		margin-block-start: clamp(6.5rem, 20vh + 6.5rem, 18rem);
	}
	#login-slide {
		display: block;
	}
	section {
		display: block;
		min-height: calc(100vh - 36rem - var(--scroll-padding-top));
		padding-block: clamp(7rem, 14vh + 7rem, 22rem);
	}
}

@media screen and (min-width: 68rem) and (min-height: 68rem) {
	h1 {
		animation: 5s linear 2s 1 fade-in forwards;
		display: block;
		line-height: 200%;
	}
}

@media screen and (max-height: 50rem) and (orientation: landscape) {
	header {
		transform: translate(-8rem, 0);
		left: 0;
		width: clamp(9rem, 7% + 9rem, 12rem);
		bottom: 0;
	}
	header nav a {
		line-height: 160%;
		padding-block: clamp(0.4rem, 0.4rem + 1.3vh, 1.2rem);
	}
	header + #main {
		margin-block-start: 0;
	}
	section,
	#invitation {
		min-height: clamp(100vh - 6em, 96vh + 1.4rem, 100vh - 1.4rem);
	}
	section {
		padding-block: clamp(1.4rem, 4vh + 1.4rem, 6em);
		margin-inline-start: clamp(9rem, 7% + 9rem, 12rem);
		min-height: 100vh;
	}
	#invitation {
		animation: none;
		padding: 3vh 3rem 3vh clamp(9rem, 7% + 9rem, 12rem);
	}
}

@media screen and (min-width: 68rem) and (min-height: 50rem) {
	#invitation {
		padding: 0;
		margin: 0;
		overflow: hidden;
		position: relative;
		min-height: calc(100vh - var(--scroll-padding-top));
	}
	#invitation .invitation {
		position: absolute;
	}
	#invitation .invitation {
		animation: var(--invitation-animation-duration) linear 0s 1 invitation forwards;
		box-shadow: 0 1rem 1rem 0 rgba(0, 0, 0, 0.2);
	}
}

@media screen and (min-width: 1000px) {
	#users .code,
	#users .attendance,
	#users .guests {
		width: 10%;
	}
	#users .dietary-requirements {
		width: 24%;
	}
	#users .updated {
		width: 15%;
	}
}

@media print {
	header nav,
	#account,
	#logout,
	button {
		display: none;
	}
	body,
	p,
	input,
	select,
	textarea,
	header,
	#rsvp .name,
	#rsvp .first-name,
	#rsvp .last-name,
	#rsvp textarea {
		color: #000000;
	}
	#rsvp label.disabled {
		color: #C9C9C9;
	}
	#rsvp label.disabled .marker {
		box-shadow: 0 0 0 2px #D0D0D0 inset;
	}
	body,
	input,
	select,
	textarea,
	header,
	section {
		background-color: #FFFFFF;
	}
	section {
		padding: 1cm;
		background: none;
		min-height: 0;
	}
	a {
		color: var(--accent-color);
	}
}
