*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;
}

body {
    color: light-dark(#333, #ccc);
    font-family: var(--font-jost), sans-serif;
    font-size: 1.2rem;
    line-height: 1.4em;
    margin: 0;
}

select {
    font: inherit;
}

fieldset {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid lightgray;
    border-radius: 8px;
    box-shadow: 1px 1px 2px light-dark(#666, #000);
}

input {
    font: inherit;
}

select > option {
    font: inherit;
}

textarea {
    font: inherit;
    width: 100%;
}

button {
    font: inherit;
    padding: 4px;
    margin: 2px;
}

a {
    color: light-dark(#090, #f96);
}

a img {
    margin: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding-bottom: 0.5rem;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none;
}

h1 {
    margin-bottom: 1rem;
    border-bottom: 2px solid light-dark(#000, #fff);
    font-size: 1.6em;
}

h2 {
    margin-top: 1rem;
    padding-bottom: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid light-dark(#000, #fff);
    font-size: 1.4em;
}

h3, h4, h5, h6 {
    margin-bottom: 4px;
}

p {
    margin-top: 4px;
}

ul {
    margin-top: 0;
    padding-bottom: 6px;
}

dl {
    margin-top: 0;
    margin-left: 1em;
}

dd {
    margin-bottom: 1rem;
    margin-left: 0;
}

iframe {
    margin-bottom: 2rem;
}

pre {
    overflow-x: scroll;
    padding: 8px;
}

code {
    font-size: 0.8em;
}

table {
    border-spacing: 0;
    width: 100%;
}

th {
    text-align: center;
    vertical-align: bottom;
}

td {
    vertical-align: top;
}

th, td {
    padding: 8px;
}

tbody tr:nth-child(odd) {
    background: #ccc2;
}

tbody tr:hover {
    background: #ccc8;
}

img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 1px 1px 2px light-dark(#666, #000);
}

img.thumbnail {
    width: 188px;
    height: auto;
    vertical-align: top;
}

ul.nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.nav li {
    display: inline;
    margin-right: 0.5rem;
}

ul.links li a {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: auto;
    background-color: light-dark(#fff, #222);
    padding: 16px;
    min-height: 100vh;
}

.fullscreen {
    width: 100%;
    background-color: light-dark(#fff, #222);
    padding: 8px;
    min-height: 100vh;
}

.text-muted {
    color: light-dark(#666, #999);
}

.text-faded {
    color: light-dark(#ccc, #333);
}

.text-inverted {
    color: light-dark(#fff, #000);
    background: light-dark(#000, #fff);
    padding: 0 4px;
    border-radius: 4px;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.vimeo-contaainer {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.vimeo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.text-right {
    text-align: right;
}

@media only screen and (max-width: 600px) {
    img.thumbnail {
        width: 128px;
        height: auto;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 0.8em;
        line-height: 1.5em;
    }

    a,
    a:visited,
    p a,
    p a:visited {
        text-decoration: none;
        color: #000;
    }

    .container {
        background: #fff;
        color: #000;
        padding: 0;
    }

    .nav {
        display: none;
    }
}

.rules img {
    max-height: 256px;
    width: auto;
    max-width: 100%;
    border: 0;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
}

.qrcode {
    width: 256px;
}

.sticky {
    top: 0;
    position: sticky;
    z-index: 1;
    background-color: light-dark(#ccc, #333);
}

.modal {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    margin: auto;
}

.modal-content {
    margin: 8px;
    padding: 8px;
    width: 100%;
    height: 98vh;
    cursor: zoom-out;
    text-align: center;
}

.modal-content img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    margin: auto;
}

.rounded {
    border-radius: 1rem;
}

.icon {
    vertical-align: bottom;
}

.card {
    margin-bottom: 2rem;
}

.headshot {
    float: right;
    margin: 4px;
}

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.nowrap {
    white-space: nowrap;
}

.btn-lg {
    width: 2rem;
}
