/* 0px -> px is needed since otherwise calc() does not work properly in Edge */
:root {
    --safeAreaInsetTop: 0px;
    --safeAreaInsetRight: 0px;
    --safeAreaInsetBottom: 0px;
    --safeAreaInsetLeft: 0px;

    --app-background-color: #f5f5f5;
    --scrollbar-thumb-color: lightgray;
    --scrollbar-thumb-color--hover: gray;
}

@supports (padding-top: env(safe-area-inset-top)) {
    :root {
        --safeAreaInsetTop: env(safe-area-inset-top);
        --safeAreaInsetRight: env(safe-area-inset-right);
        --safeAreaInsetBottom: env(safe-area-inset-bottom);
        --safeAreaInsetLeft: env(safe-area-inset-left);
    }
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    background-color: #00606f;

    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

@supports (overflow-y: overlay) {
    body {
        overflow-y: overlay;
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb-color) var(--app-background-color);
    }

    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--app-background-color);
    }

    ::-webkit-scrollbar-thumb {
        box-shadow: inset 0 0 10px 10px var(--scrollbar-thumb-color);
        border: solid 2px transparent;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        box-shadow: inset 0 0 10px 10px var(--scrollbar-thumb-color--hover);
    }
}

body > div#root {
    position: relative;
    min-height: 100vh;
}

noscript {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    margin: 0 auto;
    padding: 0 30px;
    top: 30px;
    right: 0;
    left: 0;
    color: white;
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    z-index: 1;
}

noscript a, noscript a:visited {
    text-decoration: underline;
    color: inherit;
}

.seo-optimized-header {
    color: #065568;
    font-size: 0;
    position: absolute;
    z-index: -1;
}

.splash-screen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background: linear-gradient(to bottom, #00606f, #124f61 65%, #013b4f);

    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 70vw;
    max-width: 500px;
}

.logo svg {
    display: block;
}

.logo svg .bubblebuddyFont {
    fill: white;
}

.logo svg .finnDarker {
    fill: #93c436;
}

.logo svg .finnMain {
    fill: #b8f544;
}

.logo svg .finnDarkest {
    fill: #5c7b22;
}

noscript {

}
