/* @font-face {
    font-family: "Linux Bio";
    src: url(../linux-biolinum/LinBiolinum_RB.otf);
} */

@font-face {
    font-family: "Kanit";
    src: url(../Kanit-Regular.ttf);
}

@font-face {
    font-family: "Fredoka Bold";
    src: url(../Fredoka-Bold.ttf);
}

html {
    max-width: 100%;
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: "Kanit";
    justify-content: space-between;

    & a {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: white;
        text-decoration: none;
    }

    nav {
        display: none;

        ul {
            list-style: none;
            margin: 0;
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .discord {
            background-color: #7289DA;
            color: white;
            padding: 0.5rem;
            border-radius: 0.5rem;
        }
    }

    .header-bg {
        position: absolute;
        inset: 0;
        z-index: -1;
        width: 100%;
        object-position: bottom;
    }

    .header-content {
        position: relative;
        display: flex;
        justify-content: space-between;
        z-index: 1;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.5);
    }

    .logo {
        display: flex;
        align-items: center;
    }
}

main {
    position: unset;
    flex: 1;
    min-height: 0;

    .choose {
        position: unset;
        transform: none;
        border-radius: 0;
        text-align: center;
        background-color: unset;
        background-image: url(../img/bg_choose_mobile.webp);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: -555px 0;
        color: white;
        padding: 0.5rem 1rem;

        h1 {
            font-size: 2rem;
            font-family: "Fredoka Bold";
        }

        object {
            display: none;
        }
    }

    h2, h3, p {
        margin: 0;
    }
}

.fake-cta {
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    max-width: 100%;
    font-size: 1.5rem;
    margin-top: 3rem;
}

.pink-cta {
    background-color: #AC97B6;
    box-shadow: -4px 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.blue-cta {
    background-color: #83A3EE;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.25);
}

section {
    display: flex;
    flex-direction: column;
    height: -webkit-fill-available;
    height: 100%;

    a {
        flex: 1;
        display: block;
        min-height: 0;
        text-decoration: none;
    }

    .version-select {
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 100%;

        h1 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.3rem;

            img {
                height: 28px;
            }
        }

        p {
            font-size: 1.5rem;
        }

        .portrait {
            opacity: 1;
            z-index: 1;
            max-width: 45%;
            filter: brightness(0) drop-shadow(4px 4px 4px black);
        }

        color: white;

        &.version-gbvs {
            background-color: #006D8C;

            .radial {
                position: absolute;
                height: 100%;
                width: 100%;
                inset: 0;
                z-index: 1;
                background: radial-gradient(white 0%, #046D8A 50%);
                opacity: 0.5;
            }

            .blue-pane {
                font-family: "Kanit";
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
                inset: 0;
                z-index: 1;
                background-color: transparent;
            }
        }

        &.version-gbvsr {
            background-image: none;
            background-color: #A3009A;

            .portrait {
                order: 1;
            }

            .radial {
                position: absolute;
                height: 100%;
                width: 100%;
                inset: 0;
                z-index: 1;
                background: radial-gradient(white 0%, #A3009A 50%);
                opacity: 0.5;
            }

            .pink-pane {
                font-family: "Kanit";
                display: flex;
                flex-direction: column;
                text-align: center;
                padding: 0 6px;
                justify-content: center;
                align-items: center;
                inset: 0;
                z-index: 1;
            }
        }
    }
}