/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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
 *
 * 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;
}

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

:root {
  --main-bg-color: #F0EBE7;
  --window-color:  -webkit-linear-gradient(top,  #4dc3cf 0%,#1294b8 40%,#1294b8 40%,#04567c 81%,#04567c 81%,#04567c 100%);
  --text-color:    #EADFD3;
  --title-color:   #DAF2E9;
  --special-color: #FBBFCA;
  --border-color:  #DAF2E9;
  --btn-color:     #E78E71;
  --btn-brd-color: rgba(88, 94, 96, 0.3);
  --shadow-color:  rgba(0,0,0,0.2);
  --title-font:    "Ranchers";
  --normal-font:   "Helvetica";
}

html, body { user-select: none; background: var(--main-bg-color) url(../img/paper.png); background-repeat: repeat; font-family: var(--normal-font), sans-serif; margin: 0; height:100%; width:100%; padding:0; overflow: hidden; }
h1, h2, h3 { font-family: var(--title-font), sans-serif; color: var(--title-color); }
p { line-height: 1.4em; font-weight: 100; }

section { background: var(--main-bg-color) url(../img/paper.png); background-repeat: repeat; position: absolute; height:100%; width:100%; left: 100%; top: 0;
  -webkit-transition: all 700ms ease-in-out;
  transition: all 700ms ease-in-out;
}
section img { width: 100% }
.active { left: 0; }
.deactive { left: -100%; }

.loading h1 {color: var(--btn-color); text-align: center; margin-top: 32%; letter-spacing: 3px; font-size: 4em; }

.splash, .shell { position: relative; }

/* BUTTON AREA */
#start_btn { position: absolute; bottom: 16%; left: 51%; right: 0; width: 26%; transform: translateX(-33%); font-size: 2em; }
#start_btn:hover { bottom: 15.5%; }

#next_btn { position: absolute; bottom: 9%; right: 10%; font-size: 2em; padding: 1% 7%; }
#next_btn:hover { bottom: 8.5%; }

#info_btn { position: absolute; bottom: 9%; right: 10%; font-size: 2em; padding: 1% 7%; }
#info_btn:hover { bottom: 8.5%; }

#rank_btn { position: absolute; bottom: 5%; right: 9%; font-size: 1.5em; padding: 1% 2%; }
#rank_btn:hover { bottom: 4.5%; }

#view_btn { position: absolute; bottom: 4%; right: -9%; width: 26%; transform: translateX(-33%); font-size: 4vh; letter-spacing: 1px; }
#view_btn:hover { bottom: 3.5%; }

#restart_btn { position: absolute; bottom: 30%; right: -6%; width: 20%; transform: translateX(-33%); font-size: 2em; letter-spacing: 1px; }
#restart_btn:hover { bottom: 29.5%; }

#print_btn { position: absolute; bottom: 10%; right: -6%; width: 20%; transform: translateX(-33%); font-size: 2em; letter-spacing: 1px; }
#print_btn:hover { bottom: 9.5%; }

#carrie_no_btn { position: absolute; bottom: 7%; left: 40%; font-size: 2em; padding: 1% 8%; }
#carrie_no_btn:hover { bottom: 8.5%; }

#carrie_yes_btn { position: absolute; bottom: 7%; right: 10%; font-size: 2em; padding: 1% 8%; }
#carrie_yes_btn:hover { bottom: 8.5%; }


.city-zone { position: absolute; top: 59%; right: 8%; color: var(--btn-color); font-family: var(--title-font); font-size: 2.3em; }
.ip-zone { position: absolute; top: 66%; right: 4%; opacity: 0.3; font-size: 0.8em; }

.btn { cursor: pointer; color: var(--btn-color); border: 2px solid var(--btn-brd-color); font-family: var(--title-font); padding: 2%; text-align: center; }
.btn:hover { }

#page_2 .info-box { position: absolute; top: 10%; left: 6%; width: 38%; color: var(--text-color); font-size: 1.6vw; }
#page_6 .info-box {position: absolute; top: 13%; left: 7%; width: 32%; color: var(--text-color); font-size: 1.6vw; }

#inbox_01 {position: absolute; top: 24.5%; left: 19%; width: 31%; font-size: 1em; background: none; border: 2px solid var(--btn-brd-color); padding: 1.1%; font-weight: 800; }
#inbox_02 {position: absolute; top: 40.5%; left: 20%; width: 33%; font-size: 1em; background: none; border: 2px solid var(--btn-brd-color); padding: 1.1%; font-weight: 800; }
#inbox_03 {position: absolute; top: 57.2%; left: 16%; width: 33%; font-size: 1em; background: none; border: 2px solid var(--btn-brd-color); padding: 1.1%; font-weight: 800; }
#inbox_04 {position: absolute; top: 73.2%; left: 19%; width: 33%; font-size: 1em; background: none; border: 2px solid var(--btn-brd-color); padding: 1.1%; font-weight: 800; text-transform: uppercase; }
.carrie_corner {position: absolute; top: 86.7%; left: 21.4%; }
.carrie_checkbox {position: absolute; top: 0; left: 0; width: 1.8vw; height: 1.8vw; font-size: 1em; background: none; border: 2px solid var(--btn-brd-color); cursor: pointer; font-weight: 800; }
.carrie_label {position: absolute; top: 86.7%; left: 3vw; font-size: 1em; font-family: var(--title-font), sans-serif; width: 260px; letter-spacing: 0.04em; }


.row { position: absolute; width: 100%; }
.row .left_side, .row .right_side { cursor: pointer; width: 21%; display: inline-block; min-height: 60px; vertical-align: top; font-size: 0.8em; text-transform: uppercase; text-align: center; padding-top: 2%; font-weight: 800; opacity: 0.7; padding-left: 2%; padding-right: 2%; }
.row .rank_bar { border-bottom: solid 2px var(--btn-brd-color); width: 47%; min-height: 30px; display: inline-block; vertical-align: top; position: relative; }
.row .rank_bar .shuttle { background: var(--btn-color); border-radius: 100%; height: 4vh; width: 5vh; position: absolute; left: 44%; top: 23%; border: 5px solid #e9dfd0; cursor: pointer; text-align: center; padding-top: 1vh; color: #e9dfd0; font-weight: 800; }
div#danger  { top: 29%; }
div#science { top: 49%; }
div#money   { top: 70%; }

.asStrong {position: absolute; width: 11%; bottom: 10%; left: 34%; opacity: 0; -webkit-transition: all 700ms ease-in-out; transition: all 700ms ease-in-out; }
.asStrong.active { opacity: 1; }
.owl {background: url(../img/owl_normal.png); position: absolute; bottom: 0; width: 15vh; height: 15vh; background-size: contain; left: 42%; background-repeat: no-repeat; } 
.owl:hover { background-image: url(../img/owl_over.png); }
div#bioBox, div#printBioBox {position: absolute; width: 48%; left: 45%; top: 26%; max-height: 50%; font-size: 1.5vw; line-height: 1.7em; opacity: 0.8; font-weight: 500; }

div#face_area { box-shadow: 11px 21px 20px rgba(0,0,0,0.1); position: absolute; top: 5%; left: 8%; max-width: 50%; }
div#printBioBox {opacity: 0 !important; left: 62%; top: 49%; background: #3c93b3; width: 30%; min-height: 34%; opacity: 1; color: #eae1d3; padding: 3%; font-size: 1.9vh; }
div#disclaimer { text-transform: uppercase;position: absolute; bottom: 2%; font-size: 1.3vh; right: 2%; color: #3b595d; max-width: 46%; text-align: right; font-style: italic; opacity: 0.5; }
div#disclaimer a { color: #000; }

div#fake_loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
div#loadowl {
    position: absolute;
    top: 22%;
    right: 12%;
    width: 23%;
    transform: rotate(7deg);
}
div#load-of-crap {
    position: absolute;
    top: 67%;
    left: 9%;
    opacity: 0.4;
    text-transform: uppercase;
    font-size: 1.2vh;
    letter-spacing: 0.03vh;
}
.loadbar {
    background: url(../img/loadbar_bg.png);
    position: absolute;
    top: 50.2%;
    left: 9.8%;
    width: 1%;
    min-height: 11%;
    background-repeat: no-repeat;
    background-size: auto 100%;
    transition-property: width;
    transition-duration: 7s;
    transition-timing-function: linear;
    transition-delay: 1s;
}
.load { width: 41.333%; }


@media print { 
 .btn, #disclaimer { display: none !important; } 
 div#printBioBox { opacity: 1 !important; }
}

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

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

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  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: " ";
  display: table;
}

.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 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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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:
   * https://web.archive.org/web/20180815150934/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;
  }
}


