body {
	font-family: 'Cormorant Garamond', serif;
	margin: 0;
	padding: 0;
	background-image: url(/_images/idealis_bg.webp);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: scroll;
	color: #3c2c1e;
	transition: background-position 0.1s ease;
}

.container, footer {
	max-width: 800px;
	margin: auto;
	padding: 40px;
	background-color: rgb(253 253 253 / 50%);

	border-radius: 15px;
	box-shadow: 0px 0px 20px 9px rgb(0 0 0 / 22%);
	margin-top: 20px;
	border: 6px double #ae940a;
	backdrop-filter: blur(1px);
	position: relative;
	animation: fadeInUp 3s ease forwards;
	opacity: 1;
}

.container {
	margin-top: 140px;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.logo-circle {
	position: absolute;
	top: -50px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 2px solid #ae940a;
	box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px #ae940a inset;
	background-color: #faf8f2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 10;
	filter: drop-shadow(2px 4px 6px rgb(0 0 0 / 22%));
	animation: pulseGlow 5s infinite ease-in-out;
}

.logo-circle img {
	max-width: 70%;
	max-height: 70%;
}

#logo-swap {
	transition: opacity 1s ease, margin 0.5s ease;
	opacity: 1;
}

.logo-dianetics {
	margin-top: -10px;
	margin-left: 0;
}

.logo-scn {
	margin-left: 0px;
	margin-top: 0;
}

@keyframes pulseGlow {
	0%, 100% {
		box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px #ae940a inset;
	}
	50% {
		box-shadow: 0 0 0 3px #fff inset, 0 0 0 6px #f8d34e inset;
	}
}

p {
	font-size: 1.7em;
}

.h1-container {
	text-align: center;
}

header h1 {
	font-size: clamp(2.2em, 5vw, 3em);
	text-align: center;
	color: black;
	margin-top:100px;
	margin-bottom: 10px;
	text-shadow: 3px 4px 7px #a1a1a1;
	text-wrap: balance;
	text-transform: uppercase;
	position:relative;
	overflow: hidden;
	display: inline-block;
	line-height: 1.1;
	overflow: visible;
}

.typewriter h1 {
	overflow: hidden;
	border-right: .15em solid #dead4e;
	white-space: nowrap;
	letter-spacing: .06em;
	animation:
		typing 2.5s steps(30, end),
		blink-caret .75s step-end infinite;
	width: 0;
	display: inline-block;
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(2em, 5vw, 2.8em);
	color: #000;
}

@keyframes typing {
	from { width: 0 }
	to { width: 100% }
}

@keyframes blink-caret {
	from, to { border-color: transparent }
	50% { border-color: #dead4e; }
}

#idealis-cim {
	display: inline-block;
	width: 0;
	white-space: nowrap;
	transition: width 1.5s ease;
	margin-left: -7px;
    margin-right: -7px;
}

#idealis-cim span {
	display: inline-block;
	opacity: 0;
	color: #dead4e;
	transition: color 1.5s ease, opacity 0.3s ease;
	font-weight: bold;
	width: auto;
}

#idealis-cim span.visible {
	opacity: 1;
}

#idealis-cim.dark span {
	color: #000;
}

h1::after {
	content: '';
	position: absolute;
	top: 0;
	left: -75%;
	width: 80%;
	filter: blur(0.5px);
	height: 100%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.2) 30%,
		rgba(255, 255, 255, 0.7) 50%,
		rgba(255, 255, 255, 0.2) 70%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
	pointer-events: none;
	filter: blur(1px);
	opacity: 0;
}

h1.shine {
	overflow:hidden;
}

h1.shine::after {
	animation: shineEffect 3s ease;
	opacity: 1;
}

@keyframes shineEffect {
	0%   { left: -75%; opacity: 0; }
	10%  { opacity: 1; }
	100% { left: 125%; opacity: 0; }
}

header h2 {
	font-size: clamp(1.4em, 3.5vw, 2.4em);
	text-align: center;
	margin-top: 0;
	margin-bottom: 50px;
	color: #d3be80;
    text-shadow: 1px 1px 1px #eee9d6,
				-1px -1px 1px #564c36;
}

header p {
	text-align: center;
	color: #6b4c3b;
}

.content-section h2 {
	text-align: center;
	color: #854d25;
	font-size: 1.6em;
	text-shadow: 3px 4px 7px #a1a1a1;
}

.content-section p {
	display: block;
	width: 74%;
	margin: 0 auto;
	text-align: center;
	text-wrap: balance;
}

form {
	margin-top: 30px;
}

label {
	display: block;
	margin-top: 15px;
	margin-bottom:7px;
	font-weight: bold;
	color: #3c2c1e;
	font-size: clamp(1.4em, 3.5vw, 1.7em);
}

input[type="text"],
input[type="email"],
textarea {
	width: calc(100% - 20px);
	padding: 10px;
	border: 1px solid #a08022;
	border-radius: 5px;
	font-size: 1.5em;
	background: #9e7b1426;
	color: #522e1a;
}

input[type="text"]:-webkit-autofill,
input[type="email"]:-webkit-autofill {
	box-shadow: 0 0 0 1000px #f7e1a8b5 inset !important;
	-webkit-text-fill-color: #522e1a !important;
	border: 1px solid #b48868 !important;
	border-radius: 5px !important;
	font-size: 1.5em !important;
}

input:-internal-autofill-selected {
	appearance: none !important;
	background-color: #9e7b1426 !important;
	color: #522e1a !important;
}

.switch-input {
	display: none;
}

.switch-slider {
	position: relative;
	width: 50px !important;
	height: 26px;
	background-color: #9e7b1426;
	border: 1px solid #a08022;
	border-radius: 5px;
	transition: background-color 0.3s;
	cursor: pointer;
}

.switch-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #fffdf9;
    transition: transform 0.3s;
    border-radius: 5px;
    border: 1px solid #a08022;
}

.switch-input:checked + .switch-slider {
	background-color: #d1be87;
}

.switch-input:checked + .switch-slider::before {
	transform: translateX(24px);
}

button {
	background-color: #4a473f;
	color: white;
	font-weight: bold;
	padding: 12px 24px;
	border: none;
	border-radius: 5px;
	margin-top: 40px;
	cursor: pointer;
	font-size: 1em;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
	background-color: #bd8a2f;
	transform: scale(1.05);
}

.ff {
	margin:10px;
	font-size: 1.4em;
}

.success {color:#2d842d;}
.error {color:#ff0000;}

footer {
	margin: 40px auto !important;
	margin-top:200px !important;
}

footer p {
	font-size:1.4em;
}

footer a {
	text-decoration:none;
	color:#a34e1e;
}

@media (max-width: 600px) {
	body {
		background-position: top;
		background-repeat: repeat;
		background-size: cover;
		background-attachment: scroll;
	}

	.container, footer {
		margin: 10px !important;
		padding: 30px !important;
		border-radius: 10px;
		margin-top:50px !important;
	}

	.logo-circle {
		width: 80px;
		height: 80px;
		top: -40px;
	}

	footer{
		margin-top:200px !important;
	}

	.switch-slider {
		width: 50px !important;
		min-width:50px;
	}
}
