body {
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #cccccc;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.container {
	background-color: rgba(255, 255, 255, 0.92);
	padding: 40px 20px; /* Reduced side padding for mobile */
	border-radius: 8px;
	text-align: center;
	width: 90%;
	max-width: 500px;
	box-sizing: border-box;
}

h1 {
	/* Scales smoothly between 2rem and 3.5rem based on screen width */
	font-size: clamp(2rem, 8vw, 3.5rem); 
	color: #222;
	margin: 0 0 10px 0;
	font-weight: normal;
	overflow-wrap: break-word; /* Forces line break if text is still too long */
}

.couple-names {
	font-style: italic;
	color: #555;
	font-size: 1.5rem;
	margin: 0;
}

#rsvp-form {
	margin-top: 20px;
}

/* Form Styles */
.form-group {
	margin-bottom: 20px;
	text-align: left;
}

label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}

input[type="text"], 
input[type="number"], 
select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: inherit;
}

button {
	background-color: #333;
	color: white;
	padding: 12px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1.1rem;
	width: 100%;
	margin-top: 10px;
}

button:hover {
	background-color: #555;
}

#ice-cream-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #bbb;
}

/* Scrolling Background Styles */
#scrolling-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	display: flex;
	flex-direction: column;
	background-color: #111;
	overflow: hidden;
}

.scroll-row {
	flex: 1; /* This divides the 4 rows evenly across the vertical height */
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	border-bottom: 4px solid #fff; /* Optional: adds a nice border between rows */
}

/* Remove the border from the very last row */
.scroll-row:last-child {
	border-bottom: none;
}

.scroll-track {
	display: flex;
	height: 100%;
	width: max-content;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.scroll-track img {
	height: 100%;
	width: auto;
	display: block;
	padding-right: 4px; /* Optional: space between photos in the same row */
}

/* 
 * The animations translate the track sideways.
 * Translating by -50% works perfectly because the track contains 
 * two identical sets of the images side-by-side. 
 */
@keyframes scroll-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}