body {
    margin:0px;
    font-family:sans-serif;
    font-size:24pt;
    text-align:left;
    background-color:#d0ffa0;
    color:#400040;
}

a {
    color: #0020d0;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #002080;
}

a:active {
    color: #a04080;
}

nav {
    padding:12px;
    padding-left:0px;
    background-color:#608040;
    color:#ffe0c0;
}

nav a {
    padding:12px;
    color:#ffe0c0;
    text-decoration:none;
    margin-left:4px;
    margin-right:4px;
}

nav a:visited {
    color: inherit;
}

nav a:hover {
    background-color:#304020;
    color:#ffffe0;
    text-decoration:underline;
}

nav a:active {
    color: #ffc080
}

nav img {
    float:right;
}

img {
    margin:0px;
}

.flex {
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:center;
    display:flex;
    width:100%;
}

article {
    background-color:#80c040;
    text-align:left;
    margin:0px;
    margin-left:8px;
    padding:0px 8px;
    float:right;
    width:33%;
}

article h2 {
    text-decoration:underline;
}

div.article-div article {
    width:unset;
    margin-left:8px;
    margin-right:0px;
    margin-top:8px;
    margin-bottom:8px;
    float:unset;
}

div.article-div figure {
    width: unset;
    margin-left: 8px;
    margin-right: 0px;
    margin-top: 8px;
    margin-bottom: 8px;
    float: unset;
}

div.figure-div figure {
    width: unset;
    margin-left: 8px;
    margin-right: 0px;
    margin-top: 8px;
    margin-bottom: 8px;
    float: unset;
}

.article-div {
    flex-direction:column;
    width:33%;
    background-color:#a0e060;
    float:right;
}

.figure-div {
    flex-direction: column;
    width:20%;
    background-color: #c0e080;
    float: right;
}

figure {
    float: right;
    text-align: left;
    background-color: #d9d948;
    width:20%;
    padding: 16px;
    margin-left: 8px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

figure img {
    float:left;
    width:100%;
}

audio {
    float:right;
}

verse {
    font-size: 18pt;
    padding: 4px;
    padding-left: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    display:block;
}

ol {
    font-size:18pt;
    padding:8px;
    padding-left:40px;
    margin-top:0px;
    margin-bottom:0px;
}

ul {
    font-size: 18pt;
    padding: 8px;
    padding-left: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
}

li.break {
    padding-bottom: 8px;
}

p.break {
    padding-top: 8px;
}

p {
    padding:8px 4px;
    margin-top:0px;
    margin-bottom:0px;
}

.unset {
    font-size: 24pt;
    text-decoration: none;
    font-weight: normal;
}

p.promo {
    font-size:30pt;
    background-color:#40c0ff;
    color:#ff8000;
}

p.promo > a {
    font-weight:bold;
    color:#ff0000;
}

p.promo > a:hover {
    color:#800000;
}

h1 {
    font-size:36pt;
    font-weight:bold;
    padding: 24px 4px 8px;
    margin-top:0px;
    margin-bottom:0px;
}

h2 {
    font-size: 30pt;
    font-weight: bold;
    padding: 20px 4px 8px;
    margin-top: 0px;
    margin-bottom: 0px;
}

h3 {
    font-size: 24pt;
    font-weight: bold;
    padding: 16px 4px 8px;
    margin-top: 0px;
    margin-bottom: 0px;
}

header {
    font-size:48pt;
    font-weight:bold;
    padding:16px;
    margin-top:0px;
    margin-bottom:0px;
    text-align:center;
}

span.integral {
    display: inline-block;
}

span.integral > sub {
    display:flex;
    font-size: 40%;
    vertical-align: -60%;
}

span.integral > sup {
    display:flex;
    font-size: 40%;
    vertical-align: 60%;
}

footer {
    padding:0px;
    text-align:center;
    border-top:2px solid #000000;
    margin-top:8px;
}

.code {
    font-family: monospace;
    font-size: 80%;
    white-space-collapse: preserve;
}

code {
    font-size: 80%;
}

div.code p {
    padding: 4px;
    white-space-collapse: preserve;
}

div.code p:target {
    background-color: #c0c040;
}

div.code a {
    color: #0050a0;
    text-decoration: none;
}

div.code a.external {
    text-decoration: underline;
}

div.code a.external:hover {
    text-decoration: underline;
}

div.code a:hover {
    color: #000050;
    text-decoration: underline dotted;
}

div.code a:active {
    color: #a04000;
    text-decoration: underline;
}

span[title]:hover {
    text-decoration: underline dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0px;
    border: 1px solid #000;
    width: 100%;
    align-self: center;
}

tr.equal-width {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    & td {
        text-align: center;
        flex-grow: 1;
        flex-basis: 0;
    }
}

table.division {
    width: max-content;
    border: none;
    & td {
        text-align: right;
        border: none;
    }
    & tr:nth-child(2) {
        > td:first-child {
            border-right: 2px solid #000
        }
        > td:not(:first-child) {
            border-top: 2px solid #000
        }
    }
    & td.line {
        border-bottom: 2px solid #000
    }
}

div.radio-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min-content, 100%));
    grid-template-rows: repeat(2, 1fr);
    column-gap: 1em;
    padding: 8px 4px;
    width: min-content;
    & > text {
        align-self: center;
        justify-self: center;
        grid-row: 1 / 2;
    };
    & > input {
        align-self: center;
        justify-self: center;
        grid-row: 2 / 3;
    };
}

input[type=radio] {
    scale: 200%
}

table.variants {
    width: 25%;
}

td {
    border: 1px solid #000000;
    padding: 4px 8px;
    width: max-content;
}

th {
    border: 1px solid #000000;
    padding: 4px 8px;
    text-align:center;
    width: max-content;
}

table.centred > tbody > tr > td {
    text-align: center;
}

table.syllabic svg {
    fill: none;
    stroke: #000000;
    stroke-width: 0.5;
    stroke-linecap: round;
    height: 45pt;
    padding: 0px;
    display: inline;
}

table.bridgian > thead > tr > th {
    height: 48pt;
}

table.bridgian td.unknown {
    font-style:italic;
}

table.bridgian tr.root > td {
    border-top: 1px solid #000000;
    font-weight: bold;
}

table.bridgian tr.root > td:last-of-type {
    font-weight: normal;
}

table.bridian tr:last-of-type > td {
    border-bottom: 1px solid #000000;
}

table.bridgian > tbody td {
    border-bottom: 0px solid #000000;
    border-top: 0px solid #000000;
}

table.two-way > tbody td {
    text-align:center
}

td.red {
    background-color: #ff8080;
}

td.yellow {
    background-color: #f0f020;
}

sup {
    font-size: 12pt;
    font-weight: bold;
}

sub {
    font-size: 12pt;
    font-weight: bold;
}

body.bridgemas {
    background-color:#ffffff;
}

body.bridgemas nav {
    background-color:#40c0ff;
}

body.bridgemas nav a {
    color:#000000
}

body.bridgemas nav a:hover {
    background-color:#306080;
    color:#ffffff;
}

body.bridgemas div {
    background-image:url(assets/bridgemas.png);
    background-repeat:repeat-x;
    background-origin:content-box;
}

body.bridgemas div article {
    background-color:#c0c0c0;
}

body.bridgemas div figure {
    background-color:#80c0ff;
}

iframe.map {
    width: 100%;
    aspect-ratio: 3 / 2;
    border: 4px solid #000000;
}

svg.syllabic path {
    fill: none;
    stroke: #000;
    stroke-width: 0.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}