.hero {
    padding: 124px 0 60px;
    background-image: url('/assets/download/download-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero h1 {
    font-size: 60px;
    text-shadow: 0 0 28px #00000080;
    margin-bottom: 20px;
    color: white;
}

.hero .hero-wrapper {
    flex-direction: column;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.hero .main-downloads {
    max-width: 600px;
    margin: 40px auto;
    display: grid;
    gap: 18px;
    text-align: center;
}
.hero .main-download-details {
    color: var(--download-main-details-color);
    font-size: 14px;
    margin-top: 0;
    opacity: 0.6;
}

.hero .previous-releases {
    color: var(--download-hero-color);
    font-size: 95%;
}
.hero .previous-releases-featured {
    font-size: 110%;
    line-height: 36px;
}

.hero .other-platforms {
    color: var(--download-hero-color);
    font-weight: 600;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 8px;
}

.hero .other-platforms .other-platforms-wrapper {
    max-width: 1200px;
    margin: auto;
}

.btn.btn-download-main,
.btn.btn-download-main2,
.btn.btn-download-primary {
    background-color: var(--primary-color);
    color: white;
    display: inline-flex;
    flex-basis: content;
    padding: 0px;
    margin-bottom: 8px;
}
.btn.btn-download-main2 {
    background-color: rgb(111 111 111 / 27%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.btn.btn-download-main img,
.btn.btn-download-main2 img,
.btn.btn-download-primary img {
    display: inline-block;
    filter: invert();
    margin-right: 10px;
    width: 22px;
    vertical-align: text-bottom;
}

.btn.btn-download-main .download-hint,
.btn.btn-download-main2 .download-hint,
.btn.btn-download-primary .download-hint {
    background-color: var(--primary-color-text-title);
    color: var(--dark-color);
    line-height: 32px;
    padding: 12px 16px;
}

.btn.btn-download-main .download-title,
.btn.btn-download-main2 .download-title,
.btn.btn-download-primary .download-title {
    color: var(--primary-color-text-title);
    font-size: 20px;
    line-height: 32px;
    padding: 12px 32px 12px 24px;
}

.platform-details .card {
    margin-top: 32px;
}

.platform-details pre {
    background-color: var(--platform-code-background-color);
}

.platform-details .download {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.platform-details .download-details {
    color: var(--secondary-color-text);
    font-size: 14px;
    padding: 0 12px;
}

.platform-details .download-note {
    padding: 16px 12px;
    font-size: 92%;
    background-color: var(--platform-note-background-color);
    margin-top: 28px;
}

.platform-details .download-note p {
    margin: 0;
}

.platform-details .platform-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 1200px) {
    .platform-details .platform-split {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.other-download {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
}
@media (min-width: 768px) {
    .other-download {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.other-download-card {
    background: var(--card-background-color);
    border-radius: 6px;
    padding: 26px 35px;
}

.platforms-wrapper {
    background-color: var(--dark-color);
    width: auto;
    max-width: 100%;
    margin: 40px 0;
    padding: 24px 24px;
}

.platforms-wrapper h2 {
    color: var(--dark-color-text-title);
}

.platform-tabs {
    margin-bottom: -1px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-tabs .tab {
    color: var(--dark-color-text);
}

.platform-tabs .tab img {
    display: block;
    filter: invert(100%);
}

.platform-tabs .tab:not(.active):hover {
    background: rgba(255 255 255 / 7.5%);
    color: var(--dark-color-text-hl);
}
.platform-tabs .tab.active {
    background: rgba(255 255 255 / 15%);
    color: var(--dark-color-text-title);
}

.digital-stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 1200px) {
    .digital-stores {
        grid-template-columns: 1fr;
    }
}

.digital-stores p {
    margin-top: 0;
}

.digital-stores .digital-store-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    gap: 16px;
}
@media (max-width: 1200px) {
    .digital-stores .digital-store-list {
        justify-content: center;
        gap: 12px;
    }
}
@media (max-width: 768px) {
    .digital-stores .digital-store-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.btn.btn-digital-store {
    background-color: var(--primary-color);
    color: var(--dark-color-text-title);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
}
@media (max-width: 1200px) {
    .btn.btn-digital-store {
        justify-content: center;
        gap: 12px;
        min-width: 50%;
    }
}

.digital-store-name {
    font-weight: 600;
    font-size: 105%;
}

.digital-store-logo img {
    vertical-align: text-bottom;
}

.digital-stores-notes {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.digital-stores-notes ul {
    margin: 0;
}

.digital-stores-notes ul li:last-child {
    margin-bottom: 0;
}

.unstable-downloads {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.unstable-download-previews {
    max-width: 768px;
}
.unstable-download-previews .btn {
    margin-top: 16px;
}

.unstable-download-source {
    display: flex;
    align-items: center;
    gap: 28px;
}
@media (max-width: 768px) {
    .unstable-download-source {
        flex-direction: column;
        gap: 8px;
    }
}

.thankyou-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.thankyou {
    background: var(--base-color);
    box-shadow: var(--more-shadow);
    padding: 40px 60px 26px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.thankyou-reading {
    font-size: 16px;
}

.thankyou-reading-list {
    font-size: 16px;
    margin: 0;
    margin-left: 48px;
    padding-left: 0;
}

.thankyou-donate {
    margin-bottom: 24px;
    text-align: center;
}

.btn.btn-donate {
    background-color: var(--primary-color);
    color: hsla(0, 0%, 100%, 0.9);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 26px;
}

.btn-back-to-downloads {
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
}

@media (prefers-color-scheme: light) {
    .btn-back-to-downloads img {
        filter: invert(1);
        opacity: 0.75;
    }
}

.thankyou h2 {
    text-shadow: var(--base-shadow);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}
.thankyou h3 {
    font-size: 24px;
    margin-bottom: 0;
}

.thankyou p {
    max-width: 620px;
}

.thankyou hr {
    margin: 28px 0 8px 0;
}

@media (max-width: 768px) {
    .thankyou-wrapper {
        display: block;
    }

    .thankyou {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: scroll;
        padding: 30px 40px 18px 40px;
    }

    .thankyou-reading-list {
        margin-left: 24px;
    }

    .btn-back-to-downloads {
        width: 48px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
