* {
    box-sizing: border-box;
}

.logo {
    width: 64px;
    height: 64px;
    margin-right: 16px;
}

:root {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    background-color: white;
    color: black;
}

body {
    margin: 0;
    padding: 8px;
}

a {
    color: #25d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:active {
    color: blue;
}

img,
picture {
    display: block;
}

:focus-visible {
    outline: 2px solid black;
}

@media (prefers-color-scheme: dark) {
    :root {
        background: #171717;
        color: #eee;
        color-scheme: dark;
    }

    a {
        color: #4af;
    }

    :focus-visible {
        outline: 2px solid white;
    }
}

h2 {
    font-size: 2em;
    margin: 16px 0;
}

h3 {
    font-size: 1.3em;
    margin: 16px 0;
}

.section {
    max-width: 700px;
    margin: 32px auto;
}

.language-selector {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px;
    align-items: center;
}

[has-js] .language-selector {
    display: flex;
}

.language-icon {
    width: 24px;
    height: 24px;
}

.language-caret {
    margin-left: 8px;
    width: 8px;
    height: 5px;
}

.language-selector:hover,
.language-selector:focus-within {
    background: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {

    .language-selector:hover,
    .language-selector:focus-within {
        background: rgba(255, 255, 255, 0.2);
    }
}

.language-selector-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.language-text {
    margin-left: 8px;
}

.header {
    margin: 40px 0 32px 0;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    text-align: center;
}

.header svg {
    margin: 0 20px 0 0;
    filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.25));
    width: 80px;
    height: 80px;
}

@media (max-width: 580px) {
    .header {
        flex-direction: column;
        margin-top: 0;
    }

    .header svg {
        margin: 40px 0 20px 0;
    }
}

.subheader {
    margin: 32px auto;
    max-width: 700px;
    text-align: center;
    font-size: 24px;
}

.changelog {
    display: none;
}

.changelog-subheader {
    display: none;
    margin: 32px auto;
    max-width: 700px;
    text-align: center;
    font-size: 24px;
}

[is-changelog] .subheader,
[is-changelog] .alternative-download-links,
[is-changelog] .above-fold-download .store-badge,
[is-changelog] .above-fold-download .download-separator,
[is-changelog] .picture,
[is-changelog] .features,
[is-changelog] .links {
    display: none;
}

[is-changelog] .changelog,
[is-changelog] .changelog-subheader {
    display: block;
}

.above-fold-download {
    margin: 32px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.above-fold-download p {
    margin: 8px 0;
}

.above-fold-download p:last-child {
    margin-bottom: 0;
}

.download-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 16px;
}

.download-list li {
    display: block;
    padding: 0;
    margin: 0;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    background-color: black;
    border-radius: 8px;
    color: white !important;
    text-decoration: none !important;
    border: 1px solid black;
}

.store-badge:active {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6) inset;
}

@media (prefers-color-scheme: dark) {
    .store-badge {
        border: 1px solid #aaa;
    }
}

.store-icon {
    background-size: 100%;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.microsoft-icon {
    background-image: url(microsoft.svg);
}

.apple-icon {
    background-image: url(apple.svg);
}

.store-badge>div> :first-child {
    text-align: left;
    font-size: 0.9em;
}

.store-badge>div> :last-child {
    text-align: left;
    font-weight: bold;
    font-size: 1.4em;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
}

[lang="ja"] .store-badge-text {
    flex-direction: column-reverse;
}

.download-button {
    display: inline-flex;
    align-items: center;
    background: #00c3ff;
    color: black !important;
    text-decoration: none !important;
    margin: 0;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
}

.download-button:hover {
    background: white;
    outline: 2px solid #00c3ff;
    ;
}

.download-button:active {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6) inset;
    background: #00c3ff;
}

.download-button::before {
    content: '';
    /* Icon from https://fontawesome.com/v5.15/icons/download?style=solid */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"></path></svg>');
    background-repeat: no-repeat;
    margin-right: 8px;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
}

.alternative-download-links {
    margin: 32px auto;
    text-align: center;
}

.alternative-download-links>div {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
}

.alternative-download-links ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.alternative-download-links li {
    display: block;
    padding: 0;
    margin: 0;
}

.beta-badge,
.security-badge {
    border-radius: 4px;
    padding: 2px 5px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.beta-badge {
    color: white;
    background-color: #b117f8;
    border-color: #6f0073;
}

.security-badge {
    color: black;
    background-color: #fffb00;
    border-color: rgb(205, 205, 0);
}

.picture {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.picture picture,
.picture img {
    width: 100%;
    height: 100%;
}

.picture img {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    border-radius: 8px;
    background-color: #F9F9F9;
}

.picture-caption {
    margin-top: 16px;
}

@media (prefers-color-scheme: dark) {
    .picture img {
        background-color: #333;
    }
}

.picture-editor picture,
.picture-editor img {
    max-width: 1000px;
}

.features h2 {
    text-align: center;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 550px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-list p,
.feature-list h3 {
    margin: 0;
}

.more-features {
    text-align: center;
    font-weight: bold;
    margin-top: 16px;
}

.links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    a {
        color: inherit;
        text-decoration: none;
    }
}

.links svg {
    background-color: #00c3ff;
    color: black;
    width: 32px;
    height: 32px;
    padding: 4px;
    margin: 0 12px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

@media (max-width: 550px) {
    .links {
        grid-template-columns: 1fr;
    }
}

.link {
    color: inherit;
    display: flex;
    align-items: center;
    padding: 12px 0;
    transition: .2s background-color;
    border-radius: 8px;
}

.link:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
    .link:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

code {
    padding: 1px 2px;
    border-radius: 8px;
    font-family: monospace;
    background-color: #eee;
    border: 1px solid #ddd;
}

.terminal {
    padding: 8px;
    display: block;
}

.command::before {
    content: '$ ';
    color: #e36000;
}

@media (prefers-color-scheme: dark) {
    code {
        background-color: #222;
        border-color: #505050;
    }

    .command::before {
        color: #ffa500;
    }
}

hr {
    max-width: 700px;
    margin: auto;
    border: 0;
    border-top: 1px solid currentColor;
}

[data-if-os] {
    display: none;
}

[data-os="windows-modern"] [data-if-os="windows-modern"] {
    display: initial;
}

[data-os="windows-legacy"] [data-if-os="windows-legacy"] {
    display: initial;
}

[data-os="windows-modern"] [data-if-os="windows-any"],
[data-os="windows-legacy"] [data-if-os="windows-any"] {
    display: initial;
}

[data-os="mac"] [data-if-os="mac"] {
    display: initial;
}

[data-os="linux"] [data-if-os="linux"] {
    display: initial;
}

[data-os="unsupported"] [data-if-os="unsupported"] {
    display: initial;
}

[hidden] {
    display: none !important;
}