/* Space Grotesk & Space Mono
  Licensed under the SIL Open Font License, Version 1.1.
  Space Grotesk License available at: static/fonts/Space_Grotesk/OFL.txt
  Space Mono License available at: static/fonts/Space_Mono/OFL.txt
*/

@font-face {
    font-family: 'Space Grotesk';
    src: url('/static/fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700; /* Wenn es eine Variable Font Datei ist */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/static/fonts/Space_Mono/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/static/fonts/Space_Mono/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/static/fonts/Space_Mono/SpaceMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

html {
    font-size: 1px;
}

body {
    margin: 0rem;
}

.page {
    min-height: 100dvh;
    box-sizing: border-box;
    padding: 40rem 60rem;
    display: flex;
    flex-direction: column;

    @media (max-width: 600px) {
        padding: 20rem 40rem;
    }

    .content {
        display: block;
    }
}

p {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    margin-block: 16rem;
    margin-block-end: 0rem;
    max-width: 500rem;

    &.bold {
        font-weight: 500;
    }
    &.dense {
        margin-block: 4rem;
    }
}

.space {
    height: 6rem;
}

h1 {
    font-family: "Space Grotesk", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 42rem;
    margin-block-end: 6rem;
    letter-spacing: -.7rem;
}

.key-holder {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    margin-block-start: 16rem;
    margin-right: 8rem;
    font-weight: 400;
    font-style: normal;
    font-size: 16rem;
    border: none;
    padding: 10rem 16rem;
    background-color: #edece8;
    box-sizing: border-box;
    color: black;
    overflow-wrap: anywhere;
    width: fit-content;
    user-select: all;
    -webkit-user-select: all;
    cursor: pointer;
}

.btn-underline {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16rem;
    margin-block-start: 16rem;
    text-decoration: none; /* Entfernt den Unterstrich */
    color: inherit;        /* Übernimmt die Farbe vom Text drumherum */
    position: relative;
    border: none;
    padding: 10rem 16rem;
    cursor: pointer;
    background-color: #edece8;
    display: inline-block;
    text-align: left;
    &.black {
        background-color: #121211;
        color: white;
    }
    &.tiny {
        background-color: #fff;
        padding: 8rem 0;
        margin-block-start: 6rem;
        font-size: 14rem;
        margin-right: 16rem;
    }
    &.grey {
        color:  #757574;
    }
    transition: background-color 0.35s ease, color 0.35s ease;

    &.black::after {
        /*background: #70706e;*/
        background: black;
        height: 3px;
    }

    &.grey::after {
        /*background: #70706e;*/
        background: #757574;
        height: 2px;
    }

    &.grey:hover {
        color: black;
    }
}

.btn-underline:hover {
    background-color: #f5f3f0;

    &.black {
        background-color: #757574;
    }

    &.tiny {
        background-color: #fff;
    }
}

.btn-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: black;
    transition: width 0.25s ease;
}

.btn-underline:hover::after {
    width: 100%;
}


.footer {
    margin-top: auto;
    padding-top: 32rem;
    width: 100%;
    display: block;
}


input {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    margin-block-start: 16rem;
    margin-right: 8rem;
    font-weight: 400;
    font-style: normal;
    font-size: 16rem;
    border: none;
    padding: 10rem 16rem;
    background-color: #edece8;
    max-width: 300rem;
    box-sizing: border-box;
    width: 100%;

    &::placeholder {
        color: #757574;
    }

    &.input-error {
        color: #3d0616;
        background: #e8c5d0;

    }

    &:focus {
        outline: none; /* Entfernt den Standard-Rahmen */
    }
}

ul {
    font-size: 16rem;
}


ul {
    padding: 0;
}
.api-key {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 16rem;
    margin-block-end: 6rem;
    display: flex;
    margin-block-start: 12rem;

    @media (max-width: 600px) {
        display: flex;
        flex-direction: column;
        padding: 8rem 0;
    }

    .btn-underline {
        margin: 0;
        padding: 0;
    }

    .invis {
        opacity: 0;
        user-select: none;
        pointer-events: none;

        @media (max-width: 600px) {
            display: none;
        }
    }



    .scroll-wrapper {
        position: relative;
        width: 20%;
        max-width: 130rem;
        pointer-events: none;
        margin: 0rem 20rem 0 -10rem;


        @media (max-width: 600px) {
            width: 100%;
            margin-top: 6rem;
        }



        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 10rem;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            background: linear-gradient(
                    to left,
                    rgba(255,255,255,0.0)  0%,
                    rgba(255,255,255,0.2) 10%,
                    rgba(255,255,255,0.4) 40%,
                    rgba(255,255,255,0.7) 60%,
                    rgba(255,255,255,0.9) 90%,
                    rgba(255,255,255,1)   100%
            );
        }

        &::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 10rem;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            background: linear-gradient(
                    to right,
                    rgba(255,255,255,0.0)  0%,
                    rgba(255,255,255,0.2) 10%,
                    rgba(255,255,255,0.4) 40%,
                    rgba(255,255,255,0.7) 60%,
                    rgba(255,255,255,0.9) 90%,
                    rgba(255,255,255,1)   100%
            );
        }
    }

    .content {
        width: 100%;
        padding: 0 10rem;
        box-sizing: border-box;
        overflow-x: scroll;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        pointer-events: all;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    &.tiny {
        padding: 8rem 0;
        font-size: 14rem;
    }
    .link {
        @media (max-width: 600px) {
            align-self: flex-start;
            padding: 8rem 0;
            color: #757574;

            &:hover {
                color: black;
            }
        }
    }
    .grey {
        color: #757574;
    }
}

.scroll-table {
    width: calc(100% + 80rem);
    position: relative;
    margin-left: -40rem;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 20rem;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(
                to left,
                rgba(255,255,255,0.0)  0%,
                rgba(255,255,255,0.2) 10%,
                rgba(255,255,255,0.4) 40%,
                rgba(255,255,255,0.7) 60%,
                rgba(255,255,255,0.9) 90%,
                rgba(255,255,255,1)   100%
        );
    }

    &::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 20rem;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(
                to right,
                rgba(255,255,255,0.0)  0%,
                rgba(255,255,255,0.2) 10%,
                rgba(255,255,255,0.4) 40%,
                rgba(255,255,255,0.7) 60%,
                rgba(255,255,255,0.9) 90%,
                rgba(255,255,255,1)   100%
        );
    }

    .scroll-container {
        width: 100%;
        padding: 0 30rem;
        box-sizing: border-box;
        overflow-x: scroll;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        pointer-events: all;

        &::-webkit-scrollbar {
            display: none;
        }
    }
}

table {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 16rem;
    text-align: left;

    td, th {
        padding: 0;
        min-height: 36rem;
        padding-right: 20rem;
        max-width: 200rem;

        .scroll-wrapper {
            position: relative;
            pointer-events: none;

            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 10rem;
                height: 100%;
                pointer-events: none;
                z-index: 1;
                background: linear-gradient(
                        to left,
                        rgba(255,255,255,0.0)  0%,
                        rgba(255,255,255,0.2) 10%,
                        rgba(255,255,255,0.4) 40%,
                        rgba(255,255,255,0.7) 60%,
                        rgba(255,255,255,0.9) 90%,
                        rgba(255,255,255,1)   100%
                );
            }

            &::after {
                content: "";
                position: absolute;
                top: 0;
                right: 0;
                width: 10rem;
                height: 100%;
                pointer-events: none;
                z-index: 1;
                background: linear-gradient(
                        to right,
                        rgba(255,255,255,0.0)  0%,
                        rgba(255,255,255,0.2) 10%,
                        rgba(255,255,255,0.4) 40%,
                        rgba(255,255,255,0.7) 60%,
                        rgba(255,255,255,0.9) 90%,
                        rgba(255,255,255,1)   100%
                );
            }

            .scroll-container {
                width: 100%;
                padding: 0 10rem;
                box-sizing: border-box;
                overflow-x: scroll;
                white-space: nowrap;
                scrollbar-width: none;
                -ms-overflow-style: none;
                pointer-events: all;

                &::-webkit-scrollbar {
                    display: none;
                }

                .text {
                    padding: 6rem 0;
                    color: black;
                    &.grey {
                        color: #757574;
                    }
                    &.small {
                        font-size: 14rem;
                    }

                    span.grey {
                        font-style: italic;
                        color: #757574;
                    }
                }

                .interactable {
                    font-family: "Space Grotesk", sans-serif;
                    font-optical-sizing: auto;
                    font-weight: 400;
                    font-style: normal;

                    text-decoration: none;
                    position: relative;

                    cursor: pointer;

                    display: inline-block;
                    text-align: left;
                    background-color: #fff;
                    color:  #757574;
                    padding: 5rem 0 4rem;
                    margin: 0;
                    font-size: 14rem;

                    &:hover {
                        color:  black;
                    }
                    &.black {
                        background-color: #121211;
                        color: white;
                    }
                    &.button {
                        font-size: 16rem;
                        margin-block-start: 16rem;
                        border: none;
                        padding: 10rem 16rem;
                        background-color: #edece8;

                        &:hover {
                            background-color: #f5f3f0;

                            &.black {
                                background-color: #757574;
                            }

                            &.tiny {
                                background-color: #fff;
                            }
                        }
                    }

                    transition: background-color 0.35s ease, color 0.35s ease;

                    &::after {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 0%;
                        height: 2px;
                        background: black;
                        transition: width 0.25s ease;
                    }

                    &:hover::after {
                        width: 100%;
                    }
                }
            }
        }
    }

    th {
        font-weight: 400;
        font-size: 14rem;
        color: #757574;
    }
}