@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: local('sans-serif'),
        url('/fonts/Roboto/roboto-v18-latin-regular.woff2') format('woff2'),
        url('/fonts/Roboto/roboto-v18-latin-regular.woff') format('woff'),
        url('/fonts/Roboto/roboto-v18-latin-regular.ttf') format('ttf')
        url('/fonts/Roboto/roboto-v18-latin-regular.eot') format('eot');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: bold;
    font-display: swap;
    src: local('sans-serif'),
        url('/fonts/Roboto/roboto-v18-latin-700.woff2') format('woff2'),
        url('/fonts/Roboto/roboto-v18-latin-700.woff') format('woff'),
        url('/fonts/Roboto/roboto-v18-latin-700.ttf') format('ttf')
        url('/fonts/Roboto/roboto-v18-latin-700.eot') format('eot');
}

@font-face {
    font-family: 'Yellowtail';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('/fonts/Yellowtail/Yellowtail-Regular.ttf');
}

* {
    /* Prevent Safari from scaling fonts by default */
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

::-ms-reveal {
    display: none;
}

html, body {
    min-width: 300px;
}

#siteroot {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    margin: 0;
}

body {
    overflow: auto;
    background-color: #edf0f2;
}

body.DialogShown {
    min-height: 25em;
}

#SiteLoadingPlaceholder {
    margin: auto;
    width: 300px;
    max-width: 50vw;
    height: 100vh;
}

noscript {
    text-align: center;
    line-height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: white;
    color: #0095d9;
    font-size: 24pt;
    pointer-events: none;
    z-index: 1;
}

/* Allow email links to wrap */
a[href^="mailto:"] {
    word-break: break-all;
}

/* User-defined HTML - set some standards so it doesn't break the page */
.UserHTML img {
    max-width: 100% !important;
}

/* Styling of upgrade browser page */
#UpgradeBrowserPage {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: white;
    padding: 5%;
    display: none;
    font-family: 'Roboto';
}

    #UpgradeBrowserPage #UpgradeBrowserPageInner {
        width: 540px;
        margin: auto;
    }

    #UpgradeBrowserPage .OldBrowserText {
        opacity: 0.7;
        margin-top: 20px;
        padding-bottom: 20px;
    }

    #UpgradeBrowserPage .OldBrowserHolder {
        max-width: 500px;
        margin: auto;
    }

    #UpgradeBrowserPage .OldBrowserHeader {
        font-size: 38px;
        opacity: 0.7;
        margin-bottom: 20px;
    }

    #UpgradeBrowserPage .BrowserOptions {
        padding: 0 10%;
    }

    #UpgradeBrowserPage .BrowserOption {
        display: inline-block;
        width: 20%;
    }

        #UpgradeBrowserPage .BrowserOption .BrowserOptionText {
            text-align: center;
        }

        #UpgradeBrowserPage .BrowserOption.Chrome .BrowserOptionImage {
            background-image: url(../Images/chrome-icon.png);
        }

        #UpgradeBrowserPage .BrowserOption.Safari .BrowserOptionImage {
            background-image: url(../Images/safari-icon.png);
        }

        #UpgradeBrowserPage .BrowserOption.Firefox .BrowserOptionImage {
            background-image: url(../Images/firefox-icon.png);
        }

        #UpgradeBrowserPage .BrowserOption.Edge .BrowserOptionImage {
            background-image: url(../Images/edge-icon.png);
        }

        #UpgradeBrowserPage .BrowserOption ~ .BrowserOption {
            margin-left: 5%;
        }

    #UpgradeBrowserPage .BrowserOptionImage {
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        width: 100%;
        height: 100px;
        margin: auto;
    }

@media (max-width: 599.95px) {
    #UpgradeBrowserPage .BrowserOptions {
        padding: 0;
    }

    #UpgradeBrowserPage .OldBrowserHeader {
        margin-bottom: 0;
    }

    /* This is bad for accessibility, but Tim told me to do it */
    html {
        font-size: calc(1rem - 2px);
    }
}

/* Only show the upgrade browser page if any our required modules are failed as indicated by Modernizr */
html.no-flexbox #UpgradeBrowserPage,
html.no-fetch #UpgradeBrowserPage {
    display: block !important;
}

/* "invisible" recaptcha! */
.grecaptcha-badge {
    display: none !important;
}

/* Prevent click events inside of buttons "stealing" the click target for Google Tag Manager purposes */
button *, a * {
    pointer-events: none;
}