a,
button,
input,
select,
h1,
h2,
h3,
h4,
h5,
* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    appearance: none;
    background: none;
    line-height: 100%;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll,
body.no-overflow {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

html {
    background-color: var(--neutral-white);
}
body {
    color: var(--text-invers-100);
    height: 100%;
    background-color: var(--bg-100) !important;
}

ul {
    list-style-type: none;
}

* {
    transition:
        background-color 0.5s ease,
        max-height 0.5s,
        height 0.5s ease,
        width 0.5s ease,
        flex 0.5s ease,
        opacity 0.5s ease,
        top 0.5s ease,
        bottom 0.5s ease,
        left 0.5s ease,
        right 0.5s ease,
        transform 0.5s ease;
}
/* General scrollbar styles for all webkit browsers */
*::-webkit-scrollbar {
    width: 6px;
    height: 11px; /* Apply height for horizontal scrollbars as well */
}

*::-webkit-scrollbar-thumb {
    background-color: var(--neutral-white);
}

*::-webkit-scrollbar-track {
    background: var(--bg-100);
    background-clip: padding-box;
}

/* Specific styles for your horizontal scrollbar */
.horizontalScrollbar::-webkit-scrollbar {
    height: 11px;
}

.horizontalScrollbar::-webkit-scrollbar-thumb {
    background: var(--bg-100);
}

.horizontalScrollbar::-webkit-scrollbar-track {
    background: rgba(13, 12, 12, 0.25);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    background-clip: padding-box;
}

/* Firefox scrollbar styles */
@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--neutral-white) var(--bg-100);
    }
    .horizontalScrollbar {
        scrollbar-height: 11px;
    }
}

/* iOS Safari specific styles */
@supports (-webkit-touch-callout: none) {
    .horizontalScrollbar {
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
    }
    .horizontalScrollbar::-webkit-scrollbar {
        height: 11px;
    }
    .horizontalScrollbar::-webkit-scrollbar-thumb {
        background: var(--bg-100);
    }
    .horizontalScrollbar::-webkit-scrollbar-track {
        background: rgba(13, 12, 12, 0.25);
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        background-clip: padding-box;
    }
}

h2,
.h2,
h2 em {
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    font-family: Outfit-Regular, sans-serif;
    line-height: 100%;
    color: var(--text-100);
    @media @mobile {
        font-size: 1.6rem;
    }
}
.h1,
h1,
.h1 em,
h1 em {
    font-size: 3.2rem;
    font-weight: 700;
    font-family: Outfit-Bold, sans-serif;
    line-height: 100%;
    font-style: normal;
    color: var(--text-100);
    @media @mobile {
        font-size: 2.4rem;
    }
}

.h2 {
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    font-family: Outfit-Regular, sans-serif;
    line-height: 100%;
    color: var(--text-100);
    @media @mobile {
        font-size: 1.3rem;
    }
}
.red {
    color: var(--primary-200) !important;
}
h3 {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: Outfit-Bold, sans-serif;
    line-height: 100%;
    color: var(--text-100);
    @media @mobile {
        font-size: 1.2rem;
    }
}

em {
    font-size: 1rem;
    font-family: Outfit-Bold, sans-serif;
    font-style: normal;
    font-weight: 700;
}
button {
    color: var(--text-100);
    cursor: pointer;
}
p {
    font-size: 1rem;
    color: var(--text-invers-100);
    &.headline-description {
        font-size: 1.2rem;
        color: var(--text-100);
        font-family: Outfit-Regular, sans-serif;
        font-weight: 400;
    }
}

a {
    color: var(--text-invers-100);
    cursor: pointer;
    font-weight: 700;
    font-family: Outfit-Bold, sans-serif;
}

small {
    color: var(--text-invers-100);
    font-size: 0.7rem;
    font-weight: 400;
    em {
        font-style: normal;
        color: var(--text-invers-100);
        font-size: 0.7rem;
        font-weight: 700;
        font-family: Outfit-Bold, sans-serif;
    }
}
button.cta {
    padding: 0.6rem 1.2rem 0.6rem 1.2rem;
    border-radius: 0.1rem;
    color: var(--text-100);
    font-family: "Outfit-Bold", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    a {
        color: var(--text-100);
        text-transform: uppercase;
        font-family: "Outfit-Bold", sans-serif;
        font-weight: 700;
        font-size: 1rem;
    }
    &.primary {
        background-color: var(--primary-100);
    }
    &.secondary {
        background-color: var(--text-invers-100);
    }
    &.tertiary {
        background-color: transparent;
        color: var(--text-invers-100);
    }
    &[disabled] {
        background-color: var(--bg-100);
        color: var(--text-100);
        opacity: 0.5;
    }
}

section.wrapper,
section.small-wrapper {
    max-width: 100%;
    width: 100%;
    display: flex;
    margin-bottom: var(--vertical-default-margin);
    justify-content: center;
    flex-direction: row !important;
    h2,
    h3,
    h4 {
        color: var(--text-invers-100);
    }
    &.small-wrapper > * {
        max-width: var(--small-max-width);
        width: 100%;
        margin: 2.4rem var(--horizontal-default-margin);
        display: flex;

        overflow: hidden;
    }
    &.wrapper > * {
        overflow: hidden;
        box-sizing: border-box;

        max-width: var(--normal-max-width);
        width: 100%;
        margin: 2.4rem var(--horizontal-default-margin);
        display: flex;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    tr {
        height: 36px;
        border-radius: 2px;
    }
    thead {
        th {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-invers-100);
            text-align: center;
            padding: 1rem;
        }
    }

    tbody {
        tr {
            &:nth-child(odd) {
                background-color: var(--bg-300);
            }
            td {
                &:first-child {
                    font-weight: 700;
                }
                white-space: nowrap;
                color: var(--text-invers-100);
                text-align: center;
            }
        }
    }
    @media @mobile {
        thead {
            th {
                font-size: 0.8rem;
            }
        }
        tbody {
            tr {
                td {
                    font-size: 0.6rem;
                }
            }
        }
    }
}
button {
    outline: none;
}

// Tooltips
.tooltip {
    min-width: 200px;
    width: fit-content;
    padding: 16px;
    font-size: 14px;
    text-align: center;
    z-index: 9999 !important;
    position: fixed;
    margin-left: -100px;
    bottom: 100%;
    background: #fff;
    box-shadow: 0px 1px 10px 1px rgba(0, 0, 0, 0.2);
    color: black;
    border-radius: 5px;
    max-width: min(50vw, 400px);
    .extrawide {
        width: 300px;
    }
    .bubbleding {
        top: 100%;
        left: 50%;
        border: solid transparent;
        content: "";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-color: rgba(255, 255, 255, 0);
        border-top-color: #ffffff;
        border-width: 12px;
        margin-left: -12px;
    }
    .tooltip-close {
        @media (min-width: 1100px) {
            display: none;
        }
    }

    &.bottom {
        bottom: 0;

        .bubbleding {
            top: -24px;
            border-top-color: transparent;
            border-bottom-color: #ffffff;
        }
    }
}
