html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
    --main-color: #3e9342;
    accent-color: var(--main-color);
    background-color: #f1f1f1;
    color: #0e0e0e;
}

header {
    background-color: var(--main-color);
    height: 64px;
    width: 100%;
    box-shadow: 0px 0px 4px black;
    display: flex;
    align-items: center;
}

h1 {
    color: #fff;
    font-weight: 500;
    font-size: 1.5em;
    margin: 0 0 0 1.25em;
    padding: 1em 0;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
    vertical-align: middle;
}

:target:before {
    content: 'double_arrow';
    font-family: 'Material Icons';
    position: absolute;
    left: -24px;
    margin-top: 6px;
    color: #00000050;
    font-size: 1rem;
}

main {
    padding: 1em 2em 4em 2em;
    flex: 1;
    margin: auto;
    display: flex;
    flex-direction: column;
}

main.landing {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 3em;
}

main.landing>nav {
    order: 0;
}

main.landing article {
    order: 2;
}

main.landing aside {
    order: 1;
}

@media only screen and (min-width: 1520px) {
    main.landing.single-column {
        grid-template-columns: 1fr;
    }

    main.landing {
        grid-template-columns: 2fr 36em;
    }

    main.landing>nav {
        grid-column: 1 / -1;
    }

    main.landing article {
        order: 1;
    }

    main.landing aside {
        order: 2;
    }

    main.landing#svd360 aside {
        margin-top: -4.75rem;
    }

    #buy .buy-button {
        width: 100%;
    }

    #buy-now-wrapper {
        display: none;
    }
}

#top-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: -1.5em;
}

#back {
    background: #fff;
    color: #000;
    margin-left: 0;
    margin-right: 0;
}

#buy-now {
    margin-left: 0;
    margin-right: 0;
}

main a {
    color: var(--main-color);
    font-weight: 500;
    text-decoration: none;
}

main a.secondary {
    color: #757575;
}

main a:hover {
    text-decoration: underline;
}

section {
    margin-top: 2em;
    padding: 1.25em;
    border-radius: 4px;
    position: relative;
    background-color: #fff;
    border-width: 1px;
    border-style: solid;
    border-color: #e0e0e0;
}


main.landing article section:last-of-type {
    margin-bottom: 2em;
}

h2 {
    margin: 0;
}

h2 a {
    color: inherit;
    margin-right: 0.2em;
}

h2 a:hover {
    text-decoration: none;
}

.content-image {
    max-height: max(65vh, 64em);
    height: auto;
    object-fit: scale-down;
}

footer {
    color: #ddd;
    background-color: #333;
    padding: 1em 4em;
    font-size: 0.95em;
}

footer a {
    color: #ccc;
}

@media only screen and (max-width: 810px) {
    #menu li .material-icons {
        margin-right: 0;
    }
}

@media only screen and (max-width: 535px) {
    h1 {
        font-size: 1.5em;
        margin: 0;
    }

    header {
        text-align: center;
    }

    header>div {
        width: 100%;
    }

    #top-buttons {
        flex-direction: column;
        justify-content: flex-start;
    }
}

button {
    background-color: var(--main-color);
    color: #fff;
    padding: 1em;
    margin: 1em;
    border-radius: 4px;
    font-family: Roboto;
    font-size: 0.9em;
    cursor: pointer;
    outline: none;
    border-width: 1px;
    border-style: solid;
    border-color: #e0e0e0;
}

button:hover {
    background-color: hsl(from var(--main-color) h s calc(l + 5));
}

ol li {
    margin-top: 2.5em;
}

h2>.material-icons {
    margin-right: 0.25em;
}

img {
    max-width: 100%;
}

code {
    user-select: all;
    -webkit-user-select: all;
}

main#completed {
    margin: 1em 2em 4em 2em;
}

main#completed section {
    margin-top: 2em;
}

.paypal-logo-small {
    vertical-align: sub;
    height: 19px;
}

.landing section#buy {
    margin-top: 2em;
    position: sticky;
    top: 2em;
}

ul li {
    line-height: 1.5em;
}

.buy-text {
    margin-top: 1.25em;
    margin-bottom: 0;
}

.buy-button-wrapper {
    display: flex;
    text-decoration: none !important;
}

.buy-button {
    width: 375px;
    height: 43px;
    padding: 0;
    box-shadow: none;
    border: none;
    user-select: none;
    -webkit-user-select: none;
}

.buy-button:hover {
    box-shadow: inset 0 0 100px 100px rgba(0, 0, 0, 0.05);
}

.buy-button:focus {
    box-shadow: inset 0 0 100px 100px rgba(0, 0, 0, 0.025);
}

.buy-button .text {
    font-size: 0.8em;
    vertical-align: middle;
    margin-right: 4px;
}

.buy-button img,
.buy-button svg {
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
}

.buy-button.paypal {
    background-color: #fec439;
    color: #111;
    /* background-color: #2C2E2F;
    color: #fff; */
    margin-top: 0;
}

.buy-button.paypal img {
    height: 18px;
}

.buy-button.stripe {
    /* background-color: hsl(243 100% 63% / 1); */
    background-color: #000;
    color: #fff;
    font-weight: 500;
    font-size: 0.95em;
    height: 58px;
}

.buy-button.stripe:hover {
    background-color: #3c4043;
}

.buy-button.stripe .text {
    margin: 0;
    font-size: 0.9em;
}

.buy-button.loading {
    position: relative;
    cursor: wait;
}

.buy-button.loading>* {
    visibility: hidden;
}

.buy-button.loading::before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: visible;
}

form {
    margin: 0;
}

.smaller {
    font-size: smaller;
}

.inner-section {
    margin-left: 0.5em;
}

.inner-section>div {
    margin-bottom: 2.5em;
}

#account-type-select {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

#account-type-select span {
    display: flex;
    justify-content: flex-start;
    align-items: start;
}

#account-type-select input[type="radio"] {
    transform: scale(1.25);
    cursor: pointer;
}

#account-type-select label {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding-left: 0.5em;
}

#sale-info {
    position: absolute;
    left: 302px;
    margin-top: -15px;
    font-size: 0.65em;
}

.business-use-info {
    display: none;
}

@media (max-width: 650px) {
    #sale-info {
        left: initial;
        right: 20px;
    }

    .buy-button {
        width: 100%;
        margin: 1em 0;
    }
}

hr {
    border-color: rgba(0, 0, 0, .12);
    border-width: 1px 0 0;
    margin: 2em 0;
}

#success button {
    margin: 0.5em;
    padding: 0.75em;
}

main#success {
    max-width: 54rem;
}

#survey-link {
    font-size: 0.8em;
    margin-top: 0.75em;
    margin-bottom: 2.25em;
    display: block;
}

#survey {
    padding: 0;
    box-shadow: none;
    border: none;
    margin-left: -2em;
    margin-right: -2em;
    margin-bottom: -4em;
}

#survey iframe {
    border: none;
    width: 100%;
    min-height: 82em;
}

.dark-image {
    display: none;
}

#depth-map-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1em;
}

.dl-buttons a {
    text-decoration: none !important;
}

.dl-buttons button {
    padding: 0.6rem 0.75rem;
    margin: 0.25rem;
    border-radius: 2px;
    font-size: 0.85em;
    border-width: 0;
}

.dl-buttons button span {
    opacity: 0.75;
    font-size: 0.6rem;
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }

    body {
        color: #dfdcd8;
        background-color: #2e2e2e;
    }

    section,
    #back {
        box-shadow: #222526 0px 2px 6px -2px;
        background-color: #212024;
        color: #dfdcd8;
        border-color: #3c3c3f;
    }

    button {
        box-shadow: #222526 0px 2px 6px -2px;
        border-color: #3c3c3f;
    }

    :target::before {
        color: #e8e6e34f;
    }

    footer {
        background-color: #212024;
    }

    hr {
        border-color: #bdbdbd1f;
    }

    main a.secondary {
        color: #a5a5a5;
    }

    .paypal-logo-small {
        filter: brightness(0) invert(1);
    }

    .light-image {
        display: none;
    }

    .dark-image {
        display: block;
    }
}