html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.api-banner {
    display: flex;
    min-height: 388px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E4E6E8;

    h1 {
        font-weight: 700;
        font-size: 48px;
        line-height: 100%;
        letter-spacing: 0%;
        color: var(--color-dark);
    }
}

.api-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;

    .content {
        max-width: 768px;
        margin: auto;
        width: 100%;
        padding: 64px 24px;

        &>div {
            margin-bottom: 32px;
        }

        h2 {
            font-weight: 600;
            font-size: 24px;
            line-height: 1;
            color: var(--color-dark);
            margin-bottom: 8px;
        }

        p {
            font-size: 16px;
            line-height: 22px;
            color: var(--color-dark);
            margin-bottom: 8px;
        }

        .code-container {
            background-color: #000000;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin: 20px 0;
            border-radius: 6px 6px 0 0;
        }

        .code-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background-color: #374151;
            color: #CBD5E1;
        }

        .code-title {
            font-size: 14px;
            line-height: 20px;
            font-weight: 500;
        }

        .copy-button {
            background: transparent;
            color: #CBD5E1;
            border-radius: 4px;
            border: none;
            outline: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            transition: background-color 0.2s;
            svg {
                fill: none;
            }
            img {
                filter: brightness(0) invert(1);
            }
        }

        pre {
            padding: 16px;
            margin: 0;
            font-family: monospace;
            font-size: 14px;
            line-height: 1.5;
            color: #CBD5E1;
            overflow-x: auto;
        }

        code {
            color: #CBD5E1;

            &.url {
                color: #6658DD;
            }

            &.param {
                color: #1ABC9C;
            }

            &.key {
                color: orange;
            }
        }

        .note-section {
            background-color: var(--color-wrapper);
            border: 1px solid var(--color-dark);
            padding: 16px;
            font-size: 14px;
            line-height: 20px;
        }
    }

    .references {
        min-width: 300px;
        padding: 64px 24px;

        @media (width > 768px) {
            position: sticky;
            top: 0;
            height: auto;
            align-self: start;
        }

        ul {
            padding-left: 0;
            list-style: none;

            li {
                margin-bottom: 8px;
            }

            a {
                font-weight: 400;
                font-size: 16px;
                line-height: 24px;
                color: var(--color-dark);
            }
        }

        h2 {
            margin: 0 0 16px;
        }

        .help {
            font-size: 16px;
            line-height: 22px;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border-color);

            @media (width > 768px) {
                p {
                    max-width: 240px;
                }
            }
        }
    }

    .api-plan {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 32px;
        padding: 24px;
        background-color: var(--color-purple-light);
        border: 1px solid #000000;

        span {
            font-size: 16px;
            line-height: 24px;
            font-weight: 700;
            max-width: 245px;

            @media (width <=768px) {
                max-width: 100%;
            }
        }

        .get-api-plan {
            display: inline-block;
            text-decoration: none;
            color: var(--color-light);
            outline: none;
            background-color: var(--color-primary);
            border: var(--border-default);
            box-shadow: var(--box-shadow);
            transition: all 0.2s ease;
            margin-left: auto;
            font-family: Arial;
            font-weight: 400;
            font-size: 16px;
            line-height: 24px;
            padding: 8px 12px;

            &:hover {
                box-shadow: var(--box-shadow-inverse);
            }

            @media (width <=768px) {
                margin: 0 auto;
                width: 100%;
                text-align: center;
            }
        }
    }
}