:root {
    --primary: hsl(224, 42%, 30%);
    --secondary: hsl(30, 79%, 53%);
    --error-color: hsl(0, 79%, 45%);
    --grey: hsl(0, 0%, 87%);
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Ubuntu Sans', Arial, sans-serif;
    font-size: 16px;
    background: var(--primary);
    color: #fff;
    position: absolute;
    width: 100%;
    height: 100%;
}

.container {
    position: absolute;
    height: 100%;
    width: 100%;
}

header {
    text-align: center;
    padding: 2rem 1rem 2rem;
    background: hsl(from var(--primary) h s 60%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

h1 {
    font-weight: 900;
    font-size: 2rem;
}

h2 {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--grey);
}

hgroup h1, hgroup h2, hgroup h3, hgroup h4, hgroup h5 {
    margin: 0;
}

.tooltip-container {
	display: inline-block;
	position: relative;
}

.tooltip-container button {
	border: none;
	background: transparent;
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--grey);
	border-bottom: 1px var(--primary) dotted;
	padding-left: 0;
	padding-right: 0;
}

.tooltip-container button:focus {
	background: var(--primary);
	color: #fff;
}

.tooltip-container .tooltip-bubble {
	display: inline-block;
	position: absolute;
	left: -1rem;
	top: 1.5rem;
	width: 20em;
	padding: 0.5rem;
	background: #fff;
	color: var(--primary);
	font-size: 0.9rem;
}

section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

article {
    display: block;
    padding: 0;
    margin: 0.5rem;
}

article.instinct {
    width: 65vw;
    max-width: 900px;
}

article nav {
    background: hsl(from var(--primary) h s 65%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

article.instinct nav ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 0 0.3rem;
}

article.instinct nav ul li button {
    display: inline;
}

article > h3, article nav {
    margin: 0 0 1rem 0;
    padding: 0.5rem 1rem;
}

article > p, article > hgroup, article > ul {
    margin: 0 1rem 1rem 1rem;
}

article > nav > h3 {
    margin: 0;
}

article.error {
    background: var(--error-color);
    color: #fff;
}

article.error h3 {
    background: hsl(from var(--error-color) h s 65%);
}

article.instinct {
    background: hsl(from var(--primary) h s 50%);
}

article.instinct h4 {
    font-size: 1.4rem;
    color: var(--secondary)
}

article.instinct h5 {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 300;
    color: var(--grey);
}

article.instinct > ul {
    list-style-type: disclosure-closed;
    font-size: 1.1rem;
    line-height: 1.9rem;
}

article.instinct > ul > li::marker {
    color: var(--secondary);
    content: "► ";
}

@media screen and (max-width: 1000px) {
    article.instinct {
        width: 95vw;
    }
    .tooltip-container .tooltip-bubble {
	left: -4rem;
	width: 15rem;
    }
}
