body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0faf9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background-color: #2C8B80;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: 0 auto; 
}

h1 {
	color: #2C8B80;
	margin: 0 0 1.5rem 0;
	font-size: 1.75rem;
}

h2 {
	font-size: 1.25rem;
	margin: 2rem 0 1rem;
}

h3 {
	font-size: 1rem;
	margin: 1.5rem 0 1rem;
}

p {
	color: #4b5563;
	margin: 0 0 1rem 0;
	line-height: 1.5;
}

strong {
	color: #2C8B80;
}

.redirect-text {
	font-size: 0.9rem;
	color: #6b7280;
	margin-top: 1rem;
}

.click-hint {
	font-size: 0.9rem;
	color: #6b7280;
	margin-top: 0.5rem;
	font-style: italic;
}

.page-icon {
	width: 60px;
	height: 60px;
	margin-bottom: 1.5rem;
	color: #2C8B80;
}

/* for thank-you.html */
.close-button {
	position: absolute;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0.5rem;
	line-height: 1;
	transition: opacity 0.2s;
}

.close-button:hover {
	opacity: 0.7;
}
		
.thank-you-container {
    background: white;
    padding: 1.5rem 1.5rem 0 1.5rem; 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 500px;
    width: 100%; 
	position: relative;
}

/* for success.html */
.success-message {
	color: #006B6B;
	margin: 20px 0;
}

.back-button {
	display: inline-block;
	background: #006B6B;
	color: white;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

.back-button:hover {
    background: #66cccc;
    color: #006B6B; 
    cursor: pointer;
}

.message-section {
	margin-bottom: 30px;
	padding: 20px;
	border: 2px solid #006B6B;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); 
}

.event-opt-in {
	text-align: center;
	margin-top: 40px;
	margin-bottom: 20px;
	padding: 20px auto 40px auto;
	border: 2px solid #006B6B;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); 
}

.opt-in-highlight {
	font-size: 1.1rem;
	font-weight: bold;
	color: #4a5568; 
	line-height: 1.5;
}

.opt-in-button {
	display: inline-block;
	background-color: #4CAF50; 
	color: #FFFFFF;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
	margin-top: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); 
}

.opt-in-button:hover {
	background-color: #43A047; 
}

section {
	margin: 2rem 0;
	text-align: left;
}

.policy-container {
	background: white;
	padding: 2.5rem 2.5rem 0.5rem 2.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	max-width: 500px;
	width: 90%;
}

.title-policy {
	font-size: 2rem;
	margin-bottom: 0;
}

.subtitle-policy{
	margin: 0 0 1rem 0;
	text-align: center;
}

ul {
	margin: 1rem 0;
	padding-left: 2rem;
}

li {
	margin: 0.5rem 0;
}

@media (max-width: 640px) {
	.thank-you-container {
		padding: 2rem;
	}

	h1 {
		font-size: 1.5rem;
	}
}