/* Variables */
:root {
    --content-bg-color: #fff;
    --alt-bg-color: #f7f7f7;
    --text-color: #000;
    --inverted-text-color: #fff;
    --header-color: rgba(247, 247, 247, 0.85);
    --minor-text-color: #888;
    --border-color: #b3b3b3;
    --tint-color: #ec2031;
    --border-radius: 16px;

    --model-columns: 3;
    --bubble-space: -80px;
}
:root[data-theme="dark"] {
    --content-bg-color: #111;
    --alt-bg-color: #000;
    --text-color: #fff;
    --inverted-text-color: #000;
    --header-color: rgba(17, 17, 17, 0.85);
    --minor-text-color: #888;
    --border-color: #b3b3b3;
}
body.window-inactive {
    --tint-color: #888;
}

/* Styles */
* {
    max-width: 100%;
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: -apple-system, "San Fransisco", "Helvetica Neue", "Helvetica";
    text-align:center;
    -webkit-font-smoothing: antialiased;
    background-color: var(--alt-bg-color);
    color: var(--text-color);
}
body>section {
    background-color: var(--content-bg-color);
    width: 100%;
    padding: 64px 0;
}
body section section, body header section, body footer section, body header nav {
	width: 980px;
    margin: auto;
}
header {
    width: 100%;
}
p, h1, h2, h3, h4, h5, h6 {
    margin: 8px;
}
h1 {
    font-size: 1.6em;
}
h2 {
    font-size: 1.3em;
}
p {
    line-height: 1.5em;
    font-size: 1.0em;
}
a, summary {
    color: var(--tint-color);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition-duration: 0.05s;
}
a:hover {
    text-decoration: underline;
}
body.prefers-button-shapes a {
    border-radius: 6px;
    background-color: rgba(128, 128, 128, 0.2);
}
figure {
	margin: 0;
}
input, textarea {
    font-size: 16px;
    padding: 8px;
    width: calc(100% - 8px);
    border-radius: 13px;
    margin: 4px;
    background-color: var(--alt-bg-color);
    color: var(--text-color);
    border: none;
    outline: none;
    -webkit-appearance: none;
}
textarea {
    resize: none;
}
summary:focus {
    outline: none;
}
summary::-webkit-details-marker {
    display: none;
}
pre {
    background-color: var(--alt-bg-color);
    display: inline-block;
    padding: 20px 30px;
    overflow-x: scroll;
    margin: 8px;
    max-width: calc(100% - 92px);
    text-align: left;
    border-radius: var(--border-radius);
}
code {
    font-family: "Menlo", -apple-system, "San Fransisco", "Helvetica Neue", "Helvetica";
}
iframe {
    border: none;
}
nav {
    display: flex !important;
    margin: auto;
    justify-content: space-between;
    overflow: scroll;
}
body.prefers-button-shapes nav>a {
    flex-basis: 25%;
    flex-shrink: 1;
}
nav>a, footer>section>a {
    line-height: 36px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 4px;
    white-space: nowrap;
}
nav>a:hover {
    text-decoration: none;
    color: #c00;
}
a.selected {
    color: #edb731 !important;
}
nav>a img {
    height: 36px;
    /* help autolayout before img is loaded */
    min-width: 78px;
}
footer {
	font-size: 0.8em;
}
footer>section {
	text-align: left;
}
footer>section>p {
	color: var(--minor-text-color);
}
footer>section>a {
	text-indent: 8px;
}
.banner {
    height: 540px;
    max-height: calc(100vh - 44px);
    width: 100vw;
}
.flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}
.button, .info>a {
    transition: transform 0.2s;
}
.button:hover {
    text-decoration: none;
}
.lighttext {
    color: var(--inverted-text-color);
}
button {
    font-size: 1em;
    border: none;
    cursor: pointer;
}
button, .button {
    color: var(--content-bg-color);
    background-color: var(--tint-color);
    line-height: 32px;
    padding: 0 8px;
    margin: 8px;
    display: inline-block;
    border-radius: var(--border-radius);
}
button:hover, .button:hover {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    transform: none;
}
@media not all and (prefers-reduced-motion) {
	.info>a:hover {
	    transform: scale(1.1);
	}
}
.button:active, .info>a:active {
    transform: none;
}
.smalltext {
    width: 720px;
    text-align: left;
}
.blur {
    -webkit-backdrop-filter: blur(20px);
    padding: 64px 0;
}