/* cougarnewsboard.com placeholder - underworlddivers.com palette and fish */

:root {
	--surface: #8cc3c3;
	--water: #6ca3a3;      /* underworlddivers.com background */
	--fish: #528484;       /* underworlddivers.com fish */
	--deep: #2f5a5a;
	--sand: #c9b98f;
	--ink: #f4fbfb;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
	overflow: hidden;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background:
		radial-gradient(ellipse 60% 40% at 30% -5%, rgba(255, 255, 255, .35), transparent 70%),
		radial-gradient(ellipse 40% 30% at 75% -5%, rgba(255, 255, 255, .25), transparent 70%),
		linear-gradient(to bottom, var(--surface) 0%, var(--water) 35%, var(--deep) 100%);
}

main {
	position: relative;
	z-index: 2;
	min-height: 100%;
	display: grid;
	place-items: center;
	padding: 2rem 1rem 9rem;
	text-align: center;
}

.card {
	max-width: 34rem;
	padding: 2.25rem 2rem;
	border-radius: 1.25rem;
	background: rgba(47, 90, 90, .28);
	border: 1px solid rgba(255, 255, 255, .25);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

@media (max-width: 30rem) {
	.card { padding: 1.75rem 1.25rem; }
}

.eyebrow {
	margin: 0 0 .75rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .85;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 6.5vw, 2.75rem);
	font-weight: 700;
	/* Never mid-word; the <wbr> in the markup allows a break before ".com". */
	overflow-wrap: normal;
}

p { margin: 0; font-size: 1.05rem; line-height: 1.6; opacity: .92; }

/* Fish school - the original SVG, swimming across */
.fish {
	position: absolute;
	z-index: 1;
	top: 18%;
	left: 0;
	width: 235px;
	height: 104px;
	overflow: visible;
	animation: swim 24s linear infinite;
}

@keyframes swim {
	0%   { transform: translateX(-260px); }
	75%  { transform: translateX(calc(100vw + 20px)); }
	100% { transform: translateX(calc(100vw + 20px)); }
}

svg #fish1, svg #fish2, svg #fish3, svg #fish4, svg #fish5, svg #fish6 {
	fill: var(--fish);
	animation: bounce 2s infinite;
}
svg #fish2 { animation-delay: .5s; }
svg #fish3 { animation-delay: .2s; }
svg #fish4 { animation-delay: .4s; }
svg #fish5 { animation-delay: .1s; }
svg #fish6 { animation-delay: .3s; }

@keyframes bounce {
	0%, 50%, 100% { transform: translateY(0); }
	25%           { transform: translateY(-5px); }
	75%           { transform: translateY(-3px); }
}

/* Rising bubbles */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.bubbles span {
	position: absolute;
	bottom: -40px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .6);
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7), rgba(255, 255, 255, .08) 60%);
	animation: rise 12s ease-in infinite;
}

.bubbles span:nth-child(1) { left: 8%;  animation-duration: 11s; }
.bubbles span:nth-child(2) { left: 20%; width: 8px;  height: 8px;  animation-duration: 9s;  animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 34%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 52%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: 1s; }
.bubbles span:nth-child(5) { left: 67%; width: 16px; height: 16px; animation-duration: 13s; animation-delay: 6s; }
.bubbles span:nth-child(6) { left: 80%; width: 7px;  height: 7px;  animation-duration: 8s;  animation-delay: 3s; }
.bubbles span:nth-child(7) { left: 92%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 5s; }

@keyframes rise {
	0%   { transform: translate(0, 0);         opacity: 0; }
	10%  { opacity: 1; }
	50%  { transform: translate(12px, -55vh); }
	100% { transform: translate(-8px, -110vh); opacity: 0; }
}

/* Seabed */
.seabed {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 140px;
}

.seabed .sand { fill: var(--sand); }
.seabed .rock { fill: #8a7d5e; }
.seabed .weed {
	fill: none;
	stroke: #3f7a5a;
	stroke-width: 6;
	stroke-linecap: round;
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: sway 5s ease-in-out infinite alternate;
}
.seabed .weed.b { stroke: #4c8c66; animation-duration: 6.5s; }
.seabed .weed.c { animation-duration: 4.5s; animation-delay: -2s; }

@keyframes sway {
	from { transform: rotate(-6deg); }
	to   { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; }
	.fish { transform: translateX(10vw); }
}
