:root {
    --font-main: #cccccf;
    --font-bright: #dddddf;
    --font-muted: #99999c;
    --border-color: #555558;
    --background-main: #222225;
    --background-brighter: #333336;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: larger;
    font-weight: 300;
    line-height: 1.6em;
}

body {
    background-color: var(--background-main);
    color: var(--font-main);
    font-family: 'Open Sans', Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

a {
    color: var(--font-bright);
    white-space: nowrap;
}

h1, h2, h3, strong, b {
    font-weight: 500;
    color: var(--font-bright);
    margin-bottom: 0;
    margin-top: 0;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}
    h2 img {
        height: 1.5em;
        width: auto;
        vertical-align: -.35em;
    }

    h2 sup {
        display: inline-block;
        padding: 0 .5em;
        font-size: .5em;
        line-height: 1.5em;

        background-color: var(--background-brighter);
        border-radius: 10%;
    }

h3 {
    font-size: 1.1em;
    font-weight: 400;
    margin-top: 2em;
    padding-bottom: .2em;
    border-bottom: 1px solid var(--border-color);
}

hr {
    border: 0;
    background-color: var(--border-color);
    height: 1px;
    margin-top: 2em;
    margin-bottom: 2em;
}

body > * {
    width: 60%;
}

header {
    display: flex;
    justify-content: center;
}
    header .logo {
        width: 30%;
    }
        header .logo img {
            width: 100%;
        }

footer {
    display: flex;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid var(--border-color);
    justify-content: space-between;
    gap: 2em;

    font-size: .7em;
}
    footer a {
        color: var(--font-main);
        margin-right: .2em;
    }

    footer a:last-child {
        margin-right: 0;
    }

img.dropshadow {
    box-shadow: 0px 10px 30px 0px rgb(0, 0, 0, .5);
    transition: box-shadow .2s;
}

img.dropshadow:hover {
    box-shadow: 0px 10px 50px 0px rgb(0, 0, 0, .5);
}

span.midiType, span.badge {
    display: inline-block;
    font-size: .8em;
    padding: 0 .5em;
    line-height: 1.5em;

    background-color: var(--background-brighter);
    border-radius: 10%;
}

p.distribute {
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: .5em;
    flex-wrap: wrap;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nowrap {
    white-space: nowrap;
}

.right {
    text-align: right;
}

/* Mobile/tablet */
@media screen and (max-width: 1024px) {
    body {
        font-size: large;
    }
    body > * {
        width: 90%;
    }
}

/* Mobile / tablet / small screen */
@media screen and (max-width: 1024px) {
    header .logo {
        width: 50%;
    }
}

.pair {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    margin-top: 2em;
}
    .pair a {
        display: block;
        flex: 1;
        min-width: 0;
        color: inherit;
        text-decoration: none;
        white-space: normal;
    }
    .pair img {
        width: 100%;
        height: auto;
    }
    .pair h2 {
        margin-top: .75em;
    }
    .pair a:hover h2 {
        text-decoration: underline;
    }

p.offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75em;
}
    p.offer s {
        color: var(--font-main);
        font-weight: 300;
    }

button, a.buy {
    font: inherit;
    font-weight: 500;
    color: var(--font-bright);
    background-color: var(--background-brighter);
    border: 1px solid var(--border-color);
    padding: .35em 1em;
    cursor: pointer;
    text-decoration: none;
}
    button:hover, a.buy:hover {
        color: white;
    }

body.home > * {
    width: min(92%, 1100px);
}

/* Mobile */
@media screen and (max-width: 600px) {
    .pair {
        flex-direction: column;
        align-items: center;
    }
        .pair a,
        .pair img {
            width: 100%;
        }
    body.home > * {
        width: 90%;
    }
}

.nav-modest {
    font-size: .6em;
    margin-bottom: 1em;
    color: var(--font-muted);
}

.nav-modest a {
    color: var(--font-muted);
}

#thanks {
    position: fixed;
    inset: 0;
    z-index: 20;
    width: 100%;
    margin: 0;
    padding: 1.5em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0, 0, 0, .72);
}
#thanks[hidden] {
    display: none;
}

.thanks-card {
    position: relative;
    width: min(100%, 28em);
    max-height: calc(100dvh - 3em);
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: .6em;
    background: var(--background-main);
    border: 1px solid var(--border-color);
    padding: 1.4em 1.25em 1.25em;
}
.thanks-card a {
    white-space: normal;
}
.thanks-card h3,
.thanks-card p {
    margin: 0;
}
.thanks-card ul {
    margin: .2em 0 0;
    padding-left: 1.1em;
}
.thanks-downloads-on-mobile {
    display: none;
}

button.thanks-x {
    position: sticky;
    top: 0;
    align-self: flex-end;
    margin: -.6em -.4em -.2em 0;
    z-index: 1;
    padding: .15em .5em;
    line-height: 1;
    background: var(--background-main);
}
button.thanks-ok {
    align-self: center;
    margin-top: auto;
}

@media screen and (max-width: 600px) {
    #thanks {
        padding: 0;
        align-items: stretch;
    }
    .thanks-card {
        width: 100%;
        height: 100%;
        max-height: none;
        min-height: 100%;
        border: 0;
        padding:
            calc(1em + env(safe-area-inset-top))
            1.1em
            calc(1em + env(safe-area-inset-bottom));
    }
    .thanks-downloads {
        display: none;
    }
    .thanks-downloads-on-mobile {
        display: block;
    }
}