﻿:root {
    color-scheme: dark light;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poiret One", sans-serif;
    background: #E3F272;
    overflow: hidden;
}

header {
    position: sticky;
    top: 0;
    height: 120px;
    background: #9CD91A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

h1 {
    font-weight: 900;
    font-size: 4rem;
    margin-top: -0.5rem;
    background: linear-gradient(145deg, #8f67d8, #673aae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 4rem;
    line-height: 3rem;
    line-break: anywhere;
    text-align: right;
    margin-bottom: 2rem;
}

main {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: calc(100vh - 120px);
    overflow-x: scroll;
    overflow-y: hidden;
    gap: calc((100vh - 120px) * 0.1);
    padding: calc((100vh - 120px) * 0.1);
}

li {
    list-style: none;
    border-left: 1px solid #F2F2F2;
    padding-left: 1rem;
    margin: 0.75rem 0;
}

a {
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
}

.offset-top {
    margin-top: 2rem;
}

.header {
    display: flex;
    width: calc(100vw - 100vh * 0.2);
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
}

.card {
    background: #5b4db1;
    width: calc((100vh - 120px) * 0.8 * 0.8);
    height: calc((100vh - 120px) * 0.8);
    border-radius: calc((100vh - 120px) * 0.1);
    padding: calc((100vh - 120px) * 0.075);
    flex: 0 0 auto;
    color: #F2F2F2;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardFadeIn 0.6s ease-out forwards;
}

.card-content {
    font-size: 2.5rem;
    line-height: 3.5rem;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-button {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    background: #FF5A70;
    color: #F2F2F2;
    border: none;
    border-radius: 16px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s ease, border-radius 0.2s ease;
}

    .download-button:hover {
        background: #FF705A;
        border-radius: 32px;
        color: #FFFFFF;
    }

.store-link {
    height: 78px;
}

.extensions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
}

.extension-item {
    width: 117px;
    aspect-ratio: 1 / 1;
    background: #F2F2F2;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-radius 0.2s ease;
}

    .extension-item:hover {
        background: #FFFFFF;
        border-radius: 64px;
        filter: saturate(1.5);
    }

.card:nth-child(0) {
    animation-delay: 0.05s;
}

.card:nth-child(1) {
    animation-delay: 0.20s;
}

.card:nth-child(2) {
    animation-delay: 0.35s;
}

.card:nth-child(3) {
    animation-delay: 0.50s;
}

.card:nth-child(4) {
    animation-delay: 0.65s;
}

.card:nth-child(5) {
    animation-delay: 0.80s;
}

.card:nth-child(6) {
    animation-delay: 0.95s;
}

.card:nth-child(7) {
    animation-delay: 1.10s;
}

.card:nth-child(8) {
    animation-delay: 1.25s;
}

.card:nth-child(9) {
    animation-delay: 1.40s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-height: 600px), (max-width: calc(80vh - 120px)) {
    main {
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        overflow-y: scroll;
        gap: calc(100vw * 0.1);
        padding: calc(100vw * 0.1);
        height: calc(100vh - 120px);
    }

    .header {
        width: calc(100vw * 0.8);
    }

    .card {
        width: calc(100vw * 0.8);
        height: auto;
        min-height: calc(100vw);
        border-radius: calc(100vw * 0.1);
        padding: calc(100vw * 0.075);
    }

    .extensions-grid {
        margin-top: 1rem;
    }
}

@media (min-height: 600px) and (max-height: 800px) {
    h2 {
        font-size: 3rem;
        line-height: 2rem;
    }

    .card-content {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .store-link {
        height: 52px;
    }

    .extensions-grid {
        margin-top: 1rem;
        gap: 1rem;
    }

    .extension-item {
        width: 78px;
    }
}

@media (min-height: 800px) and (max-height: 1000px) {
    .card-content {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .extensions-grid {
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    .headerdownload-button {
        visibility: hidden;
        width: 0px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #9CD91A;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
}
/* Scrollbar */
