/*! HTML5 Boilerplate v6.0.1 | 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: 15px;  /* 14px or 1em */
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

/* ==========================================================================
   Mikkom Kiosk Styles
   ========================================================================== */

    body { font-size: 1.1rem; }

    .page-header { padding: 25px 0; margin-bottom: 5px; }
    .page-header.bg-primary { background: #837DBB; color: #fff; }

    .content-main, .grid.content-main, .ui.content-main, .ui.grid.content-main { padding-top: 47px; padding-bottom: 47px; }
    .kiosk-device .content-main, .kiosk-device .grid.content-main, .kiosk-device .ui.content-main, .kiosk-device .ui.grid.content-main { padding-top: 94px; padding-bottom: 0; }

    .medium.text { font-size: 1.2rem; }
    .large.text { font-size: 1.5rem; }
    .larger.text { font-size: 1.8rem; }
    .huge.text { font-size: 2.0rem; }

    .ui.breadcrumb.inverted:first-child   { margin-top: 13px; }
    .ui.breadcrumb.inverted a { color: #FDE1AF; }

    .footer { /*position: fixed; bottom: 100px;*/ width: 100%; }
    .footer .divider { width: 100%;}

    .align-center { text-align: center;}
    .align-left { text-align: left;}


    .mt-30 { margin-top: 30px; }
    .mt-50 { margin-top: 50px; }

    .ui.form .required.field>label.dummy:after { display: none; }

    .screen-actions {  margin-top: 1.5em; margin-bottom: 1.5em; }
    .screen-actions .button:not(:first-child) { margin-left: 1.5em; }

    .header-steps { display: none; }
    .header-steps > div { width: 100% }

    /* Kiosk device specific styles */

    body.kiosk-device { display: flex; flex-direction: column; justify-content: center; }
    body.kiosk-device .topbar { position: fixed; top: 0;  width: 100%;}
    body.kiosk-device .footer { position: fixed;  bottom: 0; width: 100%; }
    body.kiosk-device .page-header { position: fixed; top: 58px;  width: 100%; }
    body.kiosk-device .page-header .container { position: relative; }
    body.kiosk-device .header-steps { display: block; position: absolute; /*width:50%;*/right: 0; }
    body.kiosk-device .header-steps .step .description { color: #fff; }
    body.kiosk-device .header-steps .step .description .ui.steps .step .title { color: #fff; }
    body.kiosk-device .header-steps .ui.ordered.steps .step.completed:before, body.kiosk-device .header-steps .ui.steps .step.completed>.icon:before { color: #FBDFA9; }
    body.kiosk-device .header-steps .ui.steps .step { background: #9ABCE1; color: #fff;  }
    body.kiosk-device .header-steps .ui.steps .step:after { background: #9ABCE1; }
    body.kiosk-device .header-steps .ui.ordered.steps .step.active:before, body.kiosk-device .header-steps .ui.steps .active.step .icon { color: #fff; }
    body.kiosk-device .header-steps .ui.steps .step.active .title { color: #837DBB; }
    body.kiosk-device .header-steps .ui.steps .step.active { background: #BED7F2; }
    body.kiosk-device .header-steps .ui.steps .step.active .description { /*color: #BED7F2 #837DBB;*/ }

    .services-list .ui.checkbox label { font-size: 1.2em; }
    .services-list .field { margin-bottom: 1em; }
    .service-selection-list a.item button { display: none; }

    #cookieConfirmationDialog {
        height: 50px;
        background: #333;
        color: #fff;
        text-align: center;
        font-size: 14px;
        line-height: 22px;
        padding-top: 3px;
        padding-bottom: 2px;
        display: none;
        position:fixed;
        width:100%;
        bottom:0;
    }
    #cookieConfirmationDialog a {
        color: #fff;
        text-decoration: underline;
    }
    #cookieConfirmationDialog .dialog-container {
        margin: 0 auto;
        padding: 0 23px;
        position: relative;
    }
    #cookieConfirmationDialog .dialog-close {
        position: absolute;
        right: 0;
        border-radius: 6px;
        background: #fff;
        color: #333;
        top: 4px;
        width: 23px;
        height: 23px;
    }

    .ui.error.message { font-size: 0.9em; }
    .ui.error.message.small { font-size: 0.8em;padding: 0.5em 1em; }
    .ui.message.small p { margin-bottom: 5px; margin-top: 5px; }

    .page-back-btn { vertical-align: middle; color: #fff; text-transform: lowercase; }
    .page-back-btn:hover { color: #fff; text-decoration: underline; }
    .page-back-btn + h1 { display: inline-block; margin-left: 1em; margin-top: 0; vertical-align: middle; }

    .footer .system-info  { font-size: 0.81em; line-height: 1em; }
    .footer .hh-logo img { height: 50px; margin-bottom: 7px; }

    .divided.list .header { text-transform: uppercase; }

    .page-header h1 { font-size: 1.6rem; }

    #pcsearchbtn, #chooseAddress { padding: .57571429em 1.5em .57571429em; font-size: 1.2rem; }


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * 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;
}

/* ==========================================================================
   Media queries
   ========================================================================== */

@media only screen and (max-width: 600px) {
    .screen-actions .button:not(:first-child){ margin-left: 0.25em; margin-top: 1em; }
    .screen-actions .button { width: 100%; line-height: 1.2em; }

    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (max-width: 767px) {
    .ui.form .fields .field {
        margin-bottom: 1em!important;
    }
    .ui.form .field>label.dummy { display: none; }
    .ui.vertical.divider { position: relative; margin-top: -15px; }
    .ui.form .one.wide.field.divider-dummy-field { width: 100%!important; min-height: 20px!important; margin-bottom: 0!important; }
    .ui.form .one.wide.field.divider-dummy-field .ui.vertical.divider { margin-top: 0; }
    .ui.dividing.header .icon{ vertical-align: bottom;}
}
@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media only screen and (max-width: 991px) and (min-width: 768px) {
    .ui.container {
        width: 783px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .ui.grid.container { width: calc(783px + 2rem)!important; }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        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 {
        white-space: pre-wrap !important;
    }
    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;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
