/*! HTML5 Boilerplate v6.1.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
   ========================================================================== */

/* fix for ios iframe jumping to top of page */
body {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

html {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-family: "Roboto", sans-serif;
    height: calc(100% - 30px); /* weird ios hack */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
body {
    margin: 0;
    padding: 0;
    /* padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top); */

    /* Move page down to temporary fix InAppBrowser status bar bug */
    padding-top: 50px;
}
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    background: url(/img/bg.jpg) no-repeat top left;
    background-size: cover;
}

.container {
    z-index: 1;
    display: block;
    width: 100%;
    margin: 0;
}
.container .content {
    margin: 1rem;
}
.logo {
    margin: 1rem auto 2rem;
    text-align: center;
    display: block;
}
.logo img {
    max-width: 200px;
}
legend {
    font-size: 1.1em;
}
.form-field {
    margin: 1rem 0 0.5rem;
}
.form-field label {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    margin: 0 0 0.5rem;
}
.picker {
    width: 32%;
    display: inline-block;
}
.--kharis .picker,
.--excel .picker {
    width: 24%;
}
.form-field input,
.form-field select {
    /* width : calc(62% - 1.2em); */
    width: 96%;
    padding: 0.5em 0.6em;
    display: inline-block;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px #ddd;
    border-radius: 4px;
    vertical-align: middle;
    box-sizing: border-box;
}
.form-field input.hours {
    /* max-width: 48px; */
}

.form-field input.timepicker {
    /* max-width: 71px; */
    padding-top: 5px;
    padding-bottom: 4px;
}
canvas {
    border-radius: 6px;
}

button.btn-clear {
    background: #303030;
    color: #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    border: #404040 1px solid;
}
button.btn-submit {
    display: block;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    background: #fff;
    padding: 12px;
    font-size: 14px;
    height: 40px;
    border-radius: 20px;
    margin-bottom: 2em;
}
.text-center {
    text-align: center;
}
.text-bold {
    font-weight: bold;
}
.u-mt {
    margin-top: 8rem;
}
.u-mb2 {
    margin-bottom: 2rem;
}
.u-mt2 {
    margin-top: 2rem;
}
/*
 * 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 rgba(160, 160, 160, 0.4);
    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;
}

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

/* ==========================================================================
   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);
    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;
    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;
}

/* ==========================================================================
   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 */
}
