/*! 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.
 */
 @import url('https://fonts.googleapis.com/css2?family=Bitter:wght@300&family=Oswald:wght@300;500&display=swap');

 /* Reset */
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: separate;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

input, textarea {
  margin: 0;
  border: none;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 100%;
}

textarea {
  resize: none;
}

select {
  margin: 0;
}

button {
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  /* show a hand cursor on hover; some argue that we
  should keep the default arrow cursor for buttons */
  cursor: pointer;
}


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

img {
  height: auto;
  max-width: 100%;

}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
  resize: vertical;
}

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

   body {
    color: #222;
    padding-top: 2rem;
    font-family: "Bitter", Arial, sans-serif;
  }


    :root {
      --text-base-size: 1rem;
      --text-scale-ratio: 1.333;
      --text-size-small: 1rem;
      --text-size-xsmall: .813rem;
      /* type scale */
      --text-x1: calc(var(--text-base-size) * var(--text-scale-ratio));
      --text-x2: calc(var(--text-x1) * var(--text-scale-ratio));
      --text-x3: calc(var(--text-x2) * var(--text-scale-ratio));
      --text-x4: calc(var(--text-x3) * var(--text-scale-ratio));
      --text-x5: calc(var(--text-x4) * var(--text-scale-ratio));
      --text-x6: calc(var(--text-x5) * var(--text-scale-ratio));
    }
  

main {

  width: 80vw;
  margin: 0 auto;
}

article {
  display: grid;
  grid-template-columns: auto;  
  grid-template-rows: auto;  
  gap: 1rem;
}

section {
  padding:1rem;
}

/* this is the code responsive story */

h1.story:before {
  content: "Here's where our story begins ...";
}

@media screen and (min-width: 500px) {
  h1.story:before {
    content: "... and here's the next few words ...";
  }
}





/* this is code example for typography */

p {
  font-family: 'Bitter', serif;
  font-size: var(--text-base-size);

  line-height: 150%;
}

.typescale-x6 {
  font-size: var(--text-x6);
}

.typescale-x5 {
  font-size: var(--text-x5);
}

.typescale-x4 {
  font-size: var(--text-x4);
}

.typescale-x3 {
  font-size: var(--text-x3);
}

.typescale-x2 {
  font-size: var(--text-x2);
}

.typescale-x1 {
  font-size: var(--text-x1);
}

.typescale-base {
  font-size: var(--text-base-size);
  line-height: 150%;
}

.typescale-small {
  font-size: var(--text-size-small);
  line-height: 150%;
}

.typescale-xsmall {
  font-size: var(--text-size-xsmall);
  line-height: 150%;
}

.all-caps {
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eye-brow {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: var(--text-base-size);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--text-x6);
  line-height: 110%;
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
}

h2 {
  font-size: var(--text-x5);
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
  line-height: 110%;
}

h3 {
  font-size: var(--text-x4);
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
  line-height: 120%;
}

h4 {
  font-size: var(--text-x3);
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
  line-height: 120%;
}

h5 {
  font-size: var(--text-x2);
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
  line-height: 120%;
}

h6 {
  font-size: var(--text-x1);
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
  line-height: 120%;
}

.core-lab-sans-medium {
  font-family: 'Oswald', sans-serif; 
  font-weight: 500;
  line-height: 100%;

}

.core-lab-sans {
  font-family: 'Oswald', sans-serif; 
  font-weight: 300;
  line-height: 100%;

}

.core-lab-serif {
  font-family: 'Bitter', serif;
  font-weight: 900;
  line-height: 100%;

}

/* end code example for typography */


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

body{
    background-color:rgb(62, 62, 151);
    color:rgb(201, 49, 49);
    
}

html{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='70' height='84' viewport='0 0 100 100' style='fill:black;font-size:42px;'><text y='50%'>🕷</text></svg>") 16 0,auto; /*!emojicursor.app*/
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60000, 0 0 40px #e60000, 0 0 50px #e60000, 0 0 60px #e60000, 0 0 70px #e60000;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4d4d, 0 0 40px #ff4d4d, 0 0 50px #ff4d4d, 0 0 60px #ff4d4d, 0 0 70px #ff4d4d, 0 0 80px #ff4d4d;
  }
}
@media only screen and (min-width: 30em) {
    h1.story:before {
        content:"Once upon a time,";
        
    }
    h1.story:hover{
        font-size: 100px;
        animation: glow 1s ease-in-out infinite alternate;
        color:white;
        font-weight: 900;
    }
}

@media only screen and (min-width: 35em) {
    h1.story:before {
        content:"a teenage boy got bitten by a spider in Queens";
    }
}

@media only screen and (min-width: 40em) {
    h1.story:before {
        content:"He got superpowers from the large hairy spider,";
    }
}

@media only screen and (min-width: 45em) {
    h1.story:before {
        content:"then he became a superhero.";
    }
}

@media only screen and (min-width: 50em) {
    h1.story:before {
        content:"He made himself a suit. ";
    }
}

@media only screen and (min-width: 55em) {
    h1.story:before {
        content:"The suit became his tool to pursuit,";
    }
}

@media only screen and (min-width: 60em) {
    h1.story:before {
        content:"saving lives left and right!";
    }
}

@media only screen and (min-width: 70em) {
    h1.story:before {
        content:"The end.";
    }
}



@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;
  }
}