Kids Swing (Resonance)
by Chantal Roth
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Resonance Demo - Driven Swing (with Resonance Curve)</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600&display=swap" rel="stylesheet">
<style>
:root{
--panel-bg: rgba(255,255,255,0.92);
--ink: #24303a;
--muted: #6b7b88;
--shadow: rgba(0,0,0,0.18);
--border: rgba(0,0,0,0.10);
--accent: #2d6cdf;
--accent2: #16a085;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: 'Nunito', sans-serif;
color: var(--ink);
background: linear-gradient(180deg, #87CEEB 0%, #E0FFFF 55%, #f7fbff 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 18px;
}
.container{
width: min(1100px, 96vw);
background: var(--panel-bg);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 10px 24px var(--shadow);
overflow: hidden;
}
header{
padding: 14px 18px 10px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
}
header h1{
margin: 0;
font-size: 1.35rem;
font-weight: 700;
text-align: center;
}
header .subtitle{
margin-top: 6px;
font-size: 0.95rem;
color: var(--muted);
text-align: center;
line-height: 1.35;
}
.layout{
display: grid;
grid-template-columns: 1.25fr 0.9fr;
gap: 14px;
padding: 14px;
align-items: start; /* key: don't stretch swing card to controls height */
}
.leftCol{
display: grid;
gap: 14px;
}
/* charts now live inside the left column, so no outer padding needed */
.charts{
padding: 0;
display: grid;
gap:...