/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --background-color: #ffffff;
  --text-color: #132946;
  --text-color2: #55595e;
  --subtext-color: #838991;
  --link-color-1: #175288;
  --link-color-2: #132946;
  --accent-color: #eaeaeb;
  --fancybox-content-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #132946;
        --text-color: #ffffff;
        --subtext-color: #c1c5cb;
        --link-color-1: #ffffff;
        --link-color-2: #ffffff;
        --accent-color: #484848;
        --fancybox-content-bg: #132946;
    }
}

body, html {
    margin: 0;
    height: 100%;
}

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

.fancybox-window body {
    height: auto;
}

a {
    color: var(--link-color-1);
    text-decoration: underline;
}

.content-wrapper {
    height:100%;
    /*position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.app-buttons-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    padding-top: 24px;
    gap: 24px;
    width: 100%;
    height: 40px;
    order: 0;
}

.app-buttons-link {
    flex: none;
    flex-grow: 0;
}

.app-buttons-link:last-child {
    margin-right: 24px;
}

.app-buttons-google {
    order: 0;
}

.app-buttons-apple {
    order: 1;
}

.app-buttons-huawei {
    order: 2;
}

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 0 0;
    gap: 64px;
    order: 1;
    margin: 0 24px;
}

.center-container-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 40px;
    text-align: center;
}

.center-container-logo {
    display: inline-block;
    width: 223px;
    height: 40px;
    background-image: url(octohide_logo.png);
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: 50%;
    background-size: contain;
}

.external-link-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(external_link.png);
    background-repeat: no-repeat;
    background-position: 0 0;
    vertical-align: middle;
    margin-left: 12px;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    gap: 8px;
    width: 100%;
    box-shadow: inset 0px 1px 0px var(--accent-color);
    order: 3;
}

.footer-copyright {
    padding-left: 24px;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--subtext-color);
}

.footer-links-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 32px;
}

.footer-link {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--link-color-2);
    text-decoration: none;
}

.footer-link:last-child {
    margin-right: 24px;
}

.text-wrapper {
    margin: 24px;
}

.text-wrapper p,
.text-wrapper ul {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-color);
}

.text-wrapper h1 {
    font-family: 'Red Hat Display', sans-serif;
    font-style: normal;
    font-size: 2.2rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.text-wrapper h2 {
    font-family: 'Red Hat Display', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.text-wrapper h3 {
    font-family: 'Red Hat Display', sans-serif;
    font-style: normal;
    font-size: 1.4rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (max-width: 590px) {

    .app-buttons-container {
        justify-content: center;
        order: 2;
        padding-top: 32px;
        padding-bottom: 32px;
        flex-wrap: wrap;
        height: auto;
    }

    .app-buttons-link:last-child {
        margin-right: 0;
    }

    .content-wrapper {
        height: auto;
    }

    .center-container {
        justify-content: center;
        gap: 48px;
        flex: 1;
    }
}

@media only screen and (max-width: 390px) {

    .center-container-wrap {
        gap: 32px;
    }

    .center-container-logo {
        height: 32px;
    }

    .footer-container {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .footer-links-container {
        width: 100%;
        flex-direction: column;
        padding: 0px;
        gap: 24px;
    }

    .footer-link {
        margin-left: 24px;
    }

    .footer-copyright {
        text-align: left;
        padding-left: 0;
        width: 100%;
    }

    .footer-spacer {
        display: block;
        border-top: 1px solid var(--accent-color);
        padding: 24px 0 0 0;
        margin: 0 24px
    }

    .text-wrapper {
        margin: 0;
    }

    .text-wrapper h1 {
        font-weight: 700;
        font-size: 30px;
        line-height: 40px;
    }
}

@media only screen and (max-height: 670px) and (max-width: 390px) {
    .content-wrapper {
        height: auto;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
