/* add custom style overwrites here */

html[data-theme="dark"] .logo {
    /* #ededed */
    filter: invert(100%) sepia(1%) saturate(289%) hue-rotate(206deg) brightness(115%) contrast(86%);
}

html[data-theme="light"] {
    --color-background: #f7f7f7;
}

body {
    background-color: var(--color-background);
}

* {
    transition: background-color 200ms ease;
}

.address {
    /* wrap on new line */
    white-space: pre-wrap;
    color: var(--color-text-secondary);
}

footer .pure-menu-link {
    color: var(--color-text-footer);
}

footer .icon {
    fill: var(--color-text-footer);
    height: 1rem;
    width: 1rem;
}

hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-home {
    .balloon-head-item .balloon-head-item-content {
        margin-bottom: 10vh;
    }

    .balloon-head-item-content h1 {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    .balloon-head-item-content :is(h1, h2) .header-anchor-link {
        display: none;
    }

    .balloon-head-item-content h2 {
        font-size: 2rem;
        line-height: 2.5rem;
        font-style: italic;
        font-weight: normal;
    }

    .balloon-head-item-content p:has(a) {
        text-align: center;
    }

    .balloon-head-item-content .cta-button a {
        display: inline-block;
        margin-top: 2rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        color: var(--color-text);
        background-color: var(--color-background-hover);
        font-weight: bold;
        border: 2px solid var(--color-text);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .balloon-head-item-content .cta-button a:hover {
        background-color: var(--color-background-overlay);
    }
}

.pricing-table {
    margin: auto;
    border-collapse: collapse;

    td {
        padding: 0.4rem;
        border-right: var(--color-text) 1px solid;
    }

    thead tr, tbody tr:last-child {
        td, th {
            border-bottom: var(--color-text) 2px solid;
        }

        td:first-child, th:first-child {
            border-bottom: none;
        }
    }

    td:first-child, td:last-child {
        border-right: var(--color-text) 2px solid;
    }

}

.icon svg {
    /* align better with text baseline: */
    margin-bottom: -3px;
}


:root {
    --default-border-radius: 0.375rem;
    --default-border-width: 2px;
    --default-form-padding-v: 9px;
    --default-line-height-form: 1.3; /* otherwise characters might get cut of on lower parts */
}

button, a[role="button"] {
    padding: 8px 12px;
    color: var(--color-text);
    background-color: var(--color-background-overlay);
    border: var(--default-border-width) solid var(--color-text);
    border-radius: var(--default-border-radius);
    cursor: pointer;
    font-weight: bold;
    line-height: 16px; /* same as font-size */
}

form button, form a[role="button"], input, optgroup, select, textarea {
    padding: var(--default-form-padding-v) 12px;
    line-height: var(--default-line-height-form);
}

/** login/account button: */
.login-button, .account-button {
    margin-left: 10px;
}

html[data-auth="true"] .login-button {
    display: none;
}

html[data-auth="false"] .account-button {
    display: none;
}

button:hover {
    background-color: var(--color-background);
}

.spacer {
    flex-grow: 1;
}


/* custom line breaks for bash (one line) commands: */
code[data-lang="bash"] {
    white-space: normal !important;
}

code[data-lang="bash"] > span > span {
    text-indent: -1em;
    padding-left: 1em;
}
