@charset "utf-8";

:root {
  --body-text: #006a82;
  --turq-bg-top: #47ccd1;
  --turq-bg-bot: #dbfcfa;

  --pink-bright: #ec006b;
  --pink-muted: #d3426b;
  --turq-subhead: #ccfffc;
  --turq-underlines: #5ae7ee;
  --turq-button: #13bfc8;
  --turq-button: #005E75;
  --turq-shadow: #5ae7ee80;
  
  --pink: #d3426b;
  --purp: #633f89;
}

@supports (color: color(display-p3 1 1 1 / 1)) {
  :root {
    --body-text: color(display-p3 0.00 0.42 0.51 / 1.00);
    --turq-bg-top: color(display-p3 0.28 0.80 0.82 / 1.00);
    --turq-bg-bot: color(display-p3 0.86 0.99 0.98 / 1.00);
    
    --pink-bright: color(display-p3 0.93 0.00 0.42 / 1.00);
    --pink-muted: color(display-p3 0.83 0.26 0.42 / 1.00);
    --turq-subhead: color(display-p3 0.80 1.00 0.99 / 1.00);
    --turq-underlines: color(display-p3 0.35 0.91 0.93 / 1.00);
    --turq-button: color(display-p3 0.07 0.75 0.78 / 1.00);
    --turq-button: color(display-p3 0.00 0.37 0.46 / 1.00);
    --turq-shadow: color(display-p3 0.35 0.91 0.93 / 0.50);

    --pink: color(display-p3 0.83 0.26 0.42 / 1.00);
    --purp: color(display-p3 0.39 0.25 0.54 / 1.00);
  }
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

header,
footer,
nav,
main,
section,
figure,
article,
aside {
  display: block;
}

.canvas-container
{
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50em;
  margin: 0 auto;
  overflow: hidden;
  max-width: 100vw;
  top: -10rem;
}

.canvas-container,
header
{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-user-drag: none;
  -moz-user-drag: none;
  -ms-user-drag: none;
  user-drag: none;
}

html {
  font-size: 3.2px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  font-family: all-round-gothic, sans-serif;
  font-weight: 500;
  color: #006a82;
  color: var(--body-text);
  position: relative;
  background-color: #dbfcfa;
  background-color: var(--turq-bg-bot);
  background-image: linear-gradient(#47ccd1 0%, #47ccd1 20rem, #dbfcfa 70rem);
  background-image: linear-gradient(var(--turq-bg-top) 0%, var(--turq-bg-top) 20rem, var(--turq-bg-bot) 70rem);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

hr {
  border: 0;
  display: inline;
}

section {
  max-width: 88.6rem;
  margin: 0 auto;
  clear: both;
}

form {
  max-width: 93.4rem;
  margin: 0 auto;
  clear: both;
}

header {
  text-align: center;
  margin: 0 auto;
  position: relative;
  width: 100%;
  background-image: url("/images/NourWithSubtitle.svg");
  background-repeat: no-repeat;
  background-position: 50% 4rem;
  background-size: 60rem auto;
  opacity: 0.9;
  
}

body.webgl header
{
  cursor: grab
}

header h1 {
  color: white;
  font-size: 10em;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 auto;
  line-height: 0.65em;
  position: relative;
  display: inline-block;
  top: 0;
  visibility: hidden;
  opacity: 0;
}

header p {
  font-size: 1.425em;
  font-weight: 500;
  letter-spacing: 0.0225em;
  position: relative;
  left: 1.35rem;
  color: #ccfffc;
  color: var(--turq-subhead);
  opacity: 1;
  margin: 0 auto;
  line-height: 1em;
  visibility; hidden;
  opacity: 0;
}

main,
footer {
  max-width: 100rem;
  margin: 0 auto;
  text-align: center;
}

/* This is just to create space for the WebGL element. */
header:after
{
  height: 50em;
  display: block;
  content: "";
  position: relative;
  top: -13em;
  left: 0.25em;
  opacity: 1;
  z-index: -1;
  transition: opacity;
  margin-bottom: -24em;
  background-size: 150rem 100rem;
  background-position: center;
  background-repeat: no-repeat;
}

body[data-webgl="false"] header:after
{
  background-image: url("/images/tub.png");
}

body.noscript[data-webgl="false"] header:after
{
  background-image: none !important;
}

body[data-webgl="true"] header
{
  cursor: grab;
}

body[data-webgl="true"] header:after
{
  background-image: none;
}

.canvas-container,
.canvas-container canvas
{
  z-index: -1;
}

main
{
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
  font-size: 1.35em;
}

main p
{
  margin: 0.5em auto;
  line-height: 1.25em;
  text-shadow: 0.05em 0 0 #dbfcfa;
  text-shadow: 0.05em 0 0 var(--turq-bg-bot);
}

main em
{
  font-style: normal;
  position: relative;
  display: inline-block;
}

section#what
{
  max-width: 100rem;
}

.emoji:before
{
  display: inline-block;
  height: 1.25em;
  width: 1em;
  margin: 0 0.15em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  content: "";
  position: relative;
  transform: scale(1.5);
}

.emoji#author:before
{
  background-image: url("/images/emoji/emoji-soda.png");
  top: 0.15em;
  transform: scale(1.35);
}

.emoji#publisher:before
{
  background-image: url("/images/emoji/emoji-panic.png");
  transform: scale(1.35);
  top: 0.25em;
  left: -0.125em;
}

.emoji#ps5:before
{
  background-image: url("/images/emoji/emoji-cherry.png");
  transform: scale(2.65);
}

.emoji#pc:before
{
  background-image: url("/images/emoji/emoji-donut.png");
  left: -0.125em;
  top: 0.25em;
}

.emoji#mac:before
{
  background-image: url("/images/emoji/emoji-narutomaki.png");
  top: 0.25em;
  transform: scale(1.65);
}

.emoji#fluke:before
{
  background-image: url("/images/emoji/emoji-onigiri.png");
  top: 0.25em;
  transform: scale(1.35);
}

.emoji#maximilian:before
{
  background-image: url("/images/emoji/emoji-onigiri.png");
  top: 0.25em;
  transform: scale(1.35);
}

body[data-fullmotion="true"] .emoji#author:before { background-image: url("/images/emoji/emoji-soda.gif"); }
body[data-fullmotion="true"] .emoji#publisher:before { background-image: url("/images/emoji/emoji-panic.gif"); }
body[data-fullmotion="true"] .emoji#ps5:before { background-image: url("/images/emoji/emoji-cherry.gif"); }
body[data-fullmotion="true"] .emoji#pc:before { background-image: url("/images/emoji/emoji-donut.gif"); }
body[data-fullmotion="true"] .emoji#mac:before { background-image: url("/images/emoji/emoji-narutomaki.gif"); }
body[data-fullmotion="true"] .emoji#fluke:before { background-image: url("/images/emoji/emoji-narutomaki.gif"); }
body[data-fullmotion="true"] .emoji#maximilian:before { background-image: url("/images/emoji/emoji-narutomaki.gif"); }

p a
{
  color: var(--pink-muted);
  position: relative;
  display: inline-block;
  text-shadow: 0.1em 0 0 #dbfcfa;
  text-shadow: 0.1em 0 0 var(--turq-bg-bot);
  z-index: 100;
}

a.emoji:after
{
  width: calc(100% - 1.4em);
  left: auto;
  right: 0;

}

p a:after,
p em:after
{
  content: "";
  display: inline-block;
  border-bottom: 0.085em solid #5ae7ee;
  border-bottom: 0.085em solid var(--turq-underlines);
  position: absolute;
  width: 100%;
  height: 100%;
  top: -0.175em;
  left: 0;
  z-index: -1;
}

p a:hover:after
{
  border-bottom-color: #ec006b;
  border-bottom-color: var(--pink-bright);
}

p em:after
{
  border-bottom-color: #005E75;
  border-bottom-color: var(--turq-button);
}

section.trailer
{
  position: relative;
  padding: 0;
  width: 96rem;
  max-width: 96rem;
  margin: 4rem auto;
  cursor: pointer;
}

section.trailer video
{
  width: 96rem;
  height: 54rem;
  border-radius: 4rem;
  position: relative;
  display: block;
}

section.trailer:after
{
  opacity: 1;
  content: "";
  display: block;
  top: 0; left: 0;
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12rem;
  background-image: url("/images/play.png");
  transition: opacity 250ms ease-in-out;
}

section.trailer[data-state="playing"]:after
{
  opacity: 0;
}

section.trailer[data-state="playing"] video
{
  z-index: 100;
}

section#gallery
{
  list-style: none;
  padding: 0; 
  position: relative;
  left: -1rem;
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  -ms-grid-columns: 1fr 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  -ms-align-content: center;
  align-content: center;
  margin: 2rem auto 6rem auto;
  width: 96rem;
  max-width: 100vw;
}

#gallery figure
{
  position: relative;
  padding: 0;
  margin: 1rem;
  width: 22.5rem;
  height: 12.65625rem;
}

#gallery figure:nth-of-type(1) { -ms-grid-row: 1; -ms-grid-column: 1; }
#gallery figure:nth-of-type(2) { -ms-grid-row: 1; -ms-grid-column: 2; }
#gallery figure:nth-of-type(3) { -ms-grid-row: 1; -ms-grid-column: 3; }
#gallery figure:nth-of-type(4) { -ms-grid-row: 1; -ms-grid-column: 4; }
#gallery figure:nth-of-type(5) { -ms-grid-row: 2; -ms-grid-column: 1; }
#gallery figure:nth-of-type(6) { -ms-grid-row: 2; -ms-grid-column: 2; }
#gallery figure:nth-of-type(7) { -ms-grid-row: 2; -ms-grid-column: 3; }
#gallery figure:nth-of-type(8) { -ms-grid-row: 2; -ms-grid-column: 4; }
#gallery figure:nth-of-type(9) { -ms-grid-row: 3; -ms-grid-column: 1; }
#gallery figure:nth-of-type(10) { -ms-grid-row: 3; -ms-grid-column: 2; }
#gallery figure:nth-of-type(11) { -ms-grid-row: 3; -ms-grid-column: 3; }
#gallery figure:nth-of-type(12) { -ms-grid-row: 3; -ms-grid-column: 4; }

#gallery figure a
{

  list-style: none;
  display: block;
}

#gallery figure img
{
  height: 100%;
  width: 100%;
  border-radius: 2rem;
}


section#features p:nth-of-type(1)
{
  color: #d3426b;
  color: var(--pink);
}
section#features p:nth-of-type(2)
{
  color: #633f89;
  color: var(--purp);
}

hr.noodle,
hr.gummi
{
  border: 0;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 54rem;
  height: 8rem;
}

hr.noodle
{
  background-image: url("/images/hr-noodle.png");
}

hr.gummi
{
  background-image: url("/images/hr-gummi.png");
}

section#quote
{
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
  margin: 6rem auto;
  position: relative;
  left: -4rem;
}

section#quote:before
{
  content: "";
  position: relative;
  width: 30rem;
  height: 40rem;
  border-radius: 4rem;
  background-image: url("/images/tj-headshot.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(-4deg);
  margin: 0;
  -ms-justify-self: right;
  justify-self: right;
  -ms-align-self: center;
  align-self: center;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}

section#quote blockquote,
section#quote blockquote[data-quote="1"]
{
  margin: 0;
  padding: 0;
  background-image: url("/images/quotes/TjQuoteMain.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
  width: 100%;
  height: 100%;
  color: transparent;
  -ms-justify-self: left;
  justify-self: left;
  -ms-align-self: center;
  align-self: center;
  position: relative;
  top: 2rem;
  left: -1rem;
  -ms-grid-column: 2;
  -ms-grid-row: 1;
}

section#quote blockquote[data-quote="2"] { background-image: url("/images/quotes/TjQuote2.png"); }
section#quote blockquote[data-quote="3"] { background-image: url("/images/quotes/TjQuote3.png"); }
section#quote blockquote[data-quote="4"] { background-image: url("/images/quotes/TjQuote4.png"); }

form#nour_form
{
  display: -ms-grid;
  display: grid;
  margin: 1em auto;
  -ms-grid-columns: 8fr 5fr;
  grid-template-columns: 8fr 5fr;
  -ms-grid-rows: 1fr;
  position: relative;
}

form#nour_form label
{
  visibility: hidden;
  position: absolute;
}

form#nour_form input
{
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}

form#nour_form button
{
  -ms-grid-column: 2;
  -ms-grid-row: 1;
}

form#nour_form input,
form#nour_form button
{
  -webkit-appearance: none;
  appearance: none;
  display: block;
  border: 0;
  margin: 0.5rem;
  padding: 0.25em 0.5em;
  font-size: 0.65em;
  font-family: inherit;
  border-radius: 0.8rem;
  position: relative;
}

section.trailer video,
section#gallery figure img,
section#quote:before,
form#nour_form input
{
  box-shadow: 0 0.1rem 0.5rem #5ae7ee80;
  box-shadow: 0 0.1rem 0.5rem var(--turq-shadow);
}

form#nour_form button
{
  color: white;
  background-color: #005E75;
  background-color: var(--turq-button);
  padding: 0.5em 2em;
  cursor: pointer;
  white-space: nowrap;
}


footer
{
  margin: 6rem auto;
  font-size: 0.75em;
}

footer:before
{
  height: 8rem;
  width: 16rem;
  margin: 1rem auto;
  content: "";
  display: block;
  background-size: 8rem, 6rem;
  background-repeat: no-repeat;
  background-position: 0% 50%, 100% 50%;
  background-image: url("/images/TjLogoOnlyColorSquare.png"), url("/images/Panic.png");
}

/* Start auto-resizing */
@media screen and (min-width: 240px) {
  html {
    font-size: 1vw;
  }
  
  body {
    font-size: 4rem;
  }
  
  section#what p br
  {
    display: none;
  }
}

/* Start auto-resizing */
@media screen and (min-width: 620px) {
  body {
    font-size: 3rem;
  }
  
  section#what p br
  {
    display: block;
  }
}

/* Stop auto-resizing */
@media screen and (min-width: 1000px) {
  html {
    font-size: 10px;
  }
}
