/* =============================================================================
   PLATFORM STYLESHEET INDEX
   =============================================================================
   * MS01 - Imports & CSS Reset
   * MS02 - Basics
   * MS03 - Typography
   * MS04 - Page Structure
   * MS05 - Content & Media
   * MS06 - Controls (Generation & Navigation)
   * MS07 - Miscellaneous
   ========================================================================== */

/* =============================================================================
   MS01 - Imports & CSS Reset
   =============================================================================
   Source:  http://meyerweb.com/eric/tools/css/reset/
   Author:  Eric Meyer
   Version: 2.0
   ========================================================================== */

@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,600i';

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =============================================================================
   MS02 - Basics
   ========================================================================== */

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
    font-family: "Open Sans", sans-serif;
    font-size: 1em;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-style: normal;
    font-weight: 300;
    line-height: 1.4em;
    text-rendering: optimizeLegibility;
}

/* =============================================================================
   MS03 - Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6, p {
    font-family: inherit;
    font-style: inherit;
}

h1 {
    font-size: 2.5em;
    line-height: 1.3em;
    text-align: center;
}

h2 {
    font-size: 2em;
    line-height: 1.250em;
}

h3 {
    font-size: 1.5em;
    line-height: 1.75em;
    margin-top: 1em;
}

h4 {
    font-size: 1.125em;
    line-height: 1.375em;
    margin-bottom: 1.375em;
}

h5 {
    font-size: 1.4em;
    letter-spacing: 0.063em;
    line-height: 1.750em;
    text-shadow: 2px 2px 2px #090F1C;
    text-transform: uppercase;
}

p, pre, table, blockquote {
    font-size: 1em;
    font-weight: 300;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    line-height: 1.600em;
    margin-top: 0em;
    margin-bottom: 0.375em;
}

ul, ol {
    font-size: 0.938em;
    font-weight: 300;
    margin-left: 1em;
    line-height: 1.6em;
    list-style-position: inside;
    list-style-type: circle;
}

@media (min-width: 30em) and (max-width: 40em) {
    h1 { font-size: 2em; }
}

@media (min-width: 20em) and (max-width: 30em) {
    h1 { font-size: 1.5em }
    h3 { font-size: 1.250em }
}

label {
    display: block;
    float: left;
    font-size: 0.625em;
    letter-spacing: 0.063em;
    vertical-align: top;
}

small { font-size: 0.750em; }

.faq p { font-size: 0.938em; }

/* =============================================================================
   MS04 - Page Structure
   ========================================================================== */

.row {
    margin: 0 !important;
}

header {
    border-bottom: 1px solid #D8D8D8;
    padding: 0.750em 1.500em;
}

nav {
    margin: 0.500em;
    padding-bottom: 1em;
    padding-left: 0 !important;
}

.content {
    margin: 0 auto;
    max-width: 90%;
    padding: 2em 0;
}

.faq {
    margin: 0 auto;
    max-width: 40em;
}

.result {
    padding: 5px !important;
}

.btn-row {
    padding-top: 2em;
}

.nav-bar {
    padding: 0.250em;
}

.nav-prompt {
    padding-top: 1.5em;
}

.episode-subtitle {
    box-sizing: border-box;
    border-top: 1px solid #808080;
    padding: 0.500em 0;
}

/* =============================================================================
   MS05 - Content & Media
   ========================================================================== */

img {
    height: auto;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
}

input, textarea {
    outline: none;
    overflow: auto;
    resize: none;
    width: 100%;
}

.center {
    text-align: center;
    display: inline-block;
}

.search-wrapper {
    margin: 0.500em 0;
}

.home img {
    margin-top: 1em;
    width: 50%;
}

.nav-item {
    padding-bottom: 0.500em;
    padding-left: 0 !important;
    padding-right: 0.500em !important;
}

.selected img {
    border: 1px solid #D8D8D8;
}

.full-image {
    background-color: black;
    border-radius: 5px;
    display: inline-block;
    padding: 0.500em;
    margin-bottom: 1em;
}

.glow img {
    margin: 1rem;
    max-height: 90px;
    -webkit-filter: drop-shadow( 0px 0px 16px rgba(255,255,255, 0.8) );
    filter: drop-shadow( 0px 0px 16px rgba(255,255,255, 0.8) );
    width: auto;
}

.scene-subtitle {
    border-top: 2px solid white;
    padding: 1em 0 2em;
}

.gif-grid .frame {
    padding: 0.250em;
}

.gif-grid .frame {
    text-align: center;
}

.gif-grid .frame.active {
    background-color: white;
}

.gif-grid {
    margin-top: 1em;
}

.gif-view .loading {
    text-align: center;
    margin-top: 25px;
}

/* =============================================================================
   MS06 - Controls
   ========================================================================== */

a,
a:link,
a:hover,
a:active,
a:visited {
    border: none;
    cursor: pointer;
    outline: 0;
    text-decoration: none;
}

button {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    letter-spacing: 0.063em;
    line-height: 1.500em;
    margin-bottom: 0.500em;
    padding: 0.500em 1.250em;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
}

button:hover:enabled {
    background-color: white;
    color: black;
    transition-timing-function: ease;
}

button:disabled {
    cursor: default;
    opacity: 0.75;
}

.logo img {
    cursor: pointer;
    max-height: 1.500em;
    vertical-align: middle;
    width: auto;
}

.search-box {
    border: 1px solid black;
    border-radius: 36px;
    box-sizing: border-box;
    font-size: 1em;
    height: 36px;
    outline: none;
    padding: 0 12px;
    position: relative;
    vertical-align: middle;
    width: 100%;
}

.btn-text {
    font-size: 1.250em;
    text-align: center;
    text-transform: uppercase;
}

.btn-row button {
    width: 100%;
}

.share-button {
    color: white;
    display: inline-block;
    padding: 2px 8px;
    margin-top: 0.500em;
    width: 2em;
    height: 2em;
    text-align: center;
}

.share-button.right {
    float: right;
}

.share-button:hover a {
    color: red;
    text-shadow: 0px 0px 4px rgba(255,0,0, 0.8);
}

.faq-link img {
    width: auto;
    height: 100px;
    position: fixed;
    z-index: 10;
    bottom: 0;
    right: 0;
    margin: 1em;
}

.faq-link img:hover {
    -webkit-filter: drop-shadow( 0px 0px 16px rgba(255,255,255, 0.8) );
    filter: drop-shadow( 0px 0px 16px rgba(255,255,255, 0.8) );
}

.nav-bar .nav-item button {
    height: 100%;
}

/* =============================================================================
   MS07 - Miscellaneous
   =============================================================================
   GIF Loading Animation
   Credit: Max (http://myxotod.com/)
   Source: http://codepen.io/seriousallie/pen/GZLdpj
   ========================================================================== */

.loader-credit {
  font-size: smaller;
}
.loader {
  margin: auto;
  width: 175px;
  height: 100px;
}
.loader span {
  display: block;
  background: white;
  width: 7px;
  height: 10%;
  border-radius: 14px;
  margin-right: 5px;
  float: left;
  margin-top: 25%;
}
.loader span:last-child {
  margin-right: 0px;
}
.loader span:nth-child(1) {
  animation: load 2.5s 1.4s infinite linear;
  -webkit-animation: load 2.5s 1.4s infinite linear;
}
.loader span:nth-child(2) {
  animation: load 2.5s 1.2s infinite linear;
  -webkit-animation: load 2.5s 1.2s infinite linear;
}
.loader span:nth-child(3) {
  animation: load 2.5s 1s infinite linear;
  -webkit-animation: load 2.5s 1s infinite linear;
}
.loader span:nth-child(4) {
  animation: load 2.5s 0.8s infinite linear;
  -webkit-animation: load 2.5s 0.8s infinite linear;
}
.loader span:nth-child(5) {
  animation: load 2.5s 0.6s infinite linear;
  -webkit-animation: load 2.5s 0.6s infinite linear;
}
.loader span:nth-child(6) {
  animation: load 2.5s 0.4s infinite linear;
  -webkit-animation: load 2.5s 0.4s infinite linear;
}
.loader span:nth-child(7) {
  animation: load 2.5s 0.2s infinite linear;
  -webkit-animation: load 2.5s 0.2s infinite linear;
}
.loader span:nth-child(8) {
  animation: load 2.5s 0s infinite linear;
  -webkit-animation: load 2.5s 0s infinite linear;
}
.loader span:nth-child(9) {
  animation: load 2.5s 0.2s infinite linear;
  -webkit-animation: load 2.5s 0.2s infinite linear;
}
.loader span:nth-child(10) {
  animation: load 2.5s 0.4s infinite linear;
  -webkit-animation: load 2.5s 0.4s infinite linear;
}
.loader span:nth-child(11) {
  animation: load 2.5s 0.6s infinite linear;
  -webkit-animation: load 2.5s 0.6s infinite linear;
}
.loader span:nth-child(12) {
  animation: load 2.5s 0.8s infinite linear;
  -webkit-animation: load 2.5s 0.8s infinite linear;
}
.loader span:nth-child(13) {
  animation: load 2.5s 1s infinite linear;
  -webkit-animation: load 2.5s 1s infinite linear;
}
.loader span:nth-child(14) {
  animation: load 2.5s 1.2s infinite linear;
  -webkit-animation: load 2.5s 1.2s infinite linear;
}
.loader span:nth-child(15) {
  animation: load 2.5s 1.4s infinite linear;
  -webkit-animation: load 2.5s 1.4s infinite linear;
}

@keyframes load {
  0% {
    background: #F7D629;
    margin-top: 25%;
    height: 10%;
  }
  50% {
    background: #F7D629;
    height: 100%;
    margin-top: 0%;
  }
  100% {
    background: #F7D629;
    height: 10%;
    margin-top: 25%;
  }
}
@-webkit-keyframes load {
  0% {
    background: #F7D629;
    margin-top: 25%;
    height: 10%;
  }
  50% {
    background: #F7D629;
    height: 100%;
    margin-top: 0%;
  }
  100% {
    background: #F7D629;
    height: 10%;
    margin-top: 25%;
  }
}
