@charset "utf-8";

:root {
  --sans-serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

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

*, *::before, *::after {
  -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;
  top: -10rem;
}

.canvas-container,
header
{
}

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

#topbanner
{
  background: var(--pink);
  color: #dbfcfa;
  padding: 0.5em;
  margin: 0;
  display: block;
  text-align: center;
  z-index: 10000;
  position: relative;
  
  
}

#topbanner a
{
  text-decoration: underline;
  color: inherit;
}

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

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

hr {
  border: 0;
  display: inline;
}

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

header {
  text-align: center;
  margin: 0 auto;
  position: relative;
  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;
  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;
}

#presskit main a
{
  text-decoration: underline;
}


#presskit main
{
  text-align: left;
  font-family: var(--sans-serif);
  font-size: .9em;
  font-weight: normal;
}

#presskit h1,
#presskit h2,
#presskit h3,
#presskit dt,
#presskit #footer
{
  font-family: all-round-gothic, sans-serif;
  font-weight: bold;
}

#presskit li,
#presskit dd,
#presskit details
{
  margin-bottom: 0.35em;
}

#presskit header
{
  position: relative;
}

#presskit header h1
{
  position: static;
  opacity: 1;
}

#presskit header h1 a
{
  display: block;
}

#presskit header h1 a::after
{
  content: "";
  display: block;
  top: 0;
  left: 0;
  z-index: 1000;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
}


/* This is just to create space for the WebGL element. */
header:after
{
  height: 50em;
  display: block;
  content: "";
  position: relative;
  top: -13em;
  left: 0;
  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;
  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#ps:before
{
  background-image: url("/images/emoji/emoji-cherry.png");
  transform: scale(2.65);
}

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

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

.emoji#switch: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#ps:before { background-image: url("/images/emoji/emoji-cherry.gif"); }
body[data-fullmotion="true"] .emoji#steam:before { background-image: url("/images/emoji/emoji-donut.gif"); }
body[data-fullmotion="true"] .emoji#egs:before { background-image: url("/images/emoji/emoji-narutomaki.gif"); }
body[data-fullmotion="true"] .emoji#switch:before { background-image: url("/images/emoji/emoji-onigiri.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;
  background-color: black;
}

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

#trailer
{
  position: relative;
  background-size: 12rem, cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 56.25vw;
  max-height: 54rem;
  max-width: 96rem;
  border-radius: 0.5em;
  overflow: hidden;
  margin: 1em auto;

  cursor: pointer;
  color: transparent;
  }

#trailer iframe
{
  transition: 1000ms all ease;
  background: #000;
  object-fit: fill;
}

#trailer.poster iframe
{
  opacity: 0;
}

#trailer.poster,
#trailer.loading
{
  background-image: url("/images/play.png"), url("/images/trailer-poster.jpg");
}

#trailer.loading
{
  animation-name: pulse;
  animation-duration: 1500ms;
  animation-iteration-count: infinite;
  animation-play-state: running;
  animation-timing-function: ease-in-out;
}

#trailer.playing
{
  animation-name: none;
}

@keyframes pulse
{
  from { opacity: 1; }
  50% { opacity: 0.35; }
  to { opacity: 1; }
}

#trailer.playing iframe
{
  opacity: 1;
}


section#gallery
{
  list-style: none;
  padding: 0; 
  position: relative;
  display: grid;
  grid-gap: 2rem;
  grid-template-rows: auto auto auto;
  grid-template-columns: auto auto auto auto;
  align-content: center;
  margin: 2rem auto 6rem auto;
}

#gallery figure
{
  position: relative;
  padding: 0;
  margin: 0;
  width: 20rem;
  height: 11.25rem;
}

#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: grid;
  grid-template-columns: 1fr 1fr;
  
  margin: 6rem auto;
}

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;
  justify-self: right;
  align-self: center;

}

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"); }

#mailingList form#elist_form
{
  justify-content: center;
  align-items: center;
  grid-gap: 0.5em;
  display: grid;
  grid-template-columns: auto;
}

form#elist_form label,
p#status
{
  text-align: center;
  font-size: 1em;
}

form#elist_form label
{
  grid-row: 1;
  grid-column: 1 / span 2;
}

p#status
{
  opacity: 0;
  transition-duration: 350ms;
  transition-timing-function: ease;
  transition-property: opacity;
  grid-row: 1;
  grid-column: 1;
  margin: -1.5em 0 0 0;
}

p#status.success,
p#status.error
{
  opacity: 1;
  margin: 0;
  color: var(--secondary);
}

form#elist_form div.email
{

  font-family: var(--mono), monospace;
  grid-row: 2;
  grid-column: 1;
  place-self: center;
}

form#elist_form input#elist_email
{
  font: inherit;
  text-align: center;
}


form#elist_form div.checkbox
{
  font-size: 0.80em;
  max-width: 100rem;
  grid-column: 1;
  grid-row: 4;
  text-align: center;
}

form#elist_form div.checkbox input
{
  vertical-align: -.25em;
  appearance: none;
  width: 1.5em; height: 1.5em;
  border: 0.25em solid white;
  position: relative;
  border-radius: 2em;
  background: white;
}

form#elist_form div.checkbox input:checked
{
  background: var(--pink);
}

form#elist_form div.checkbox span#disclaimer
{
  transition-duration: 350ms;
  transition-timing-function: ease;
  transition-property: margin-bottom, opacity;
  display: block;
  margin-top: .5em;
  margin-right: auto;
  margin-left: auto;
}

form#elist_form div.checkbox input+label+span#disclaimer
{
  opacity: 0;
  margin-bottom: -7em;
}

form#elist_form div.checkbox input:checked+label+span#disclaimer
{
  opacity: 1;
  margin-bottom: 0;
}

form#elist_form div.submit-button
{
  grid-row: 3;
  grid-column: 1;
  place-self: center;
}

input#elist_email,
button#elist_submit
{
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0.6rem;
    border: 0;
    font: inherit;
    padding: 0.25em 0.35em;
border: 0.0625em solid;
}

input#elist_email
{
  min-width: 26ch;
  background: rgba(255,255,255,0.95);
}

button#elist_submit
{
  padding: 0.25em 1em;
  border-radius: .2em;
  text-shadow: 0 -0.0625em 0 rgba(0,0,0,0.5);
  background-color: var(--pink);
  color: #fff;
  cursor: pointer;
  transition: 250ms border-color ease;
}

@media (min-width: 670px)
{
  
  form#elist_form p#status
  {
    grid-row: 1;
    grid-column: 1 / span 2;
  }
  
  form#elist_form div.email
  {
    grid-row: 2;
    grid-column: 1 / span 1;
    justify-self: end;

  }
  
  form#elist_form div.checkbox
  {
    grid-row: 3;
    grid-column: 1 / span 2;
  }

  form#elist_form div.checkbox #disclaimer
  {
    grid-row: 2;
    grid-column: 1 / span 2;
    max-width: 60rem;
  }


  form#elist_form div.submit-button
  {
    grid-row: 2;
    grid-column: 2 / span 1;
    justify-self: start;
  }
}


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


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

#screenshots ul
{
  margin: 1em auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: auto;
}

#screenshots ul li
{
  margin: 0;
  position: relative;
  width: 80rem;
  height: calc(80rem * .5625);
  transition: 250ms transform ease;
}

@media (min-width: 670px)
{  
  #screenshots ul
  {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  
  #screenshots ul li
  {
    width: 20rem;
    height: calc(20rem * .5625);
  }
}

#screenshots li a
{
  cursor: pointer;
}

#screenshots img
{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 0.5em;
  transition: 250ms border-color ease;
  transition-property: box-shadow, border-color;
  -webkit-object-fit: cover;
  object-fit: cover;
  border: 0;
}

#viewer
{
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  background: rgba(0,0,0,0.75);
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: 250ms opacity ease;
  z-index: 100;
}

#viewer #image
{
  display: block;
  width: 100vw;
  height: 56.25vw;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  max-width: 100vw;
  max-height: 56.25vw;
  transform: scale(0);
  transition: 500ms transform ease;
  cursor: pointer;
}

body.viewer
{
  overflow: hidden;
  pointer-events: none;
}

body.viewer #viewer
{
  opacity: 1;
  pointer-events: all;
}

body.viewer #viewer #image
{
  transform: scale(1);
}

body[data-viewer="screenshot-01"] #viewer #image { background-image: url("/images/nour-screenshot-01.jpg"); }
body[data-viewer="screenshot-02"] #viewer #image { background-image: url("/images/nour-screenshot-02.jpg"); }
body[data-viewer="screenshot-03"] #viewer #image { background-image: url("/images/nour-screenshot-03.jpg"); }
body[data-viewer="screenshot-04"] #viewer #image { background-image: url("/images/nour-screenshot-04.jpg"); }
body[data-viewer="screenshot-05"] #viewer #image { background-image: url("/images/nour-screenshot-05.jpg"); }
body[data-viewer="screenshot-06"] #viewer #image { background-image: url("/images/nour-screenshot-06.jpg"); }
body[data-viewer="screenshot-07"] #viewer #image { background-image: url("/images/nour-screenshot-07.jpg"); }
body[data-viewer="screenshot-08"] #viewer #image { background-image: url("/images/nour-screenshot-08.jpg"); }
body[data-viewer="screenshot-09"] #viewer #image { background-image: url("/images/nour-screenshot-09.jpg"); }
body[data-viewer="screenshot-10"] #viewer #image { background-image: url("/images/nour-screenshot-10.jpg"); }
body[data-viewer="screenshot-11"] #viewer #image { background-image: url("/images/nour-screenshot-11.jpg"); }
body[data-viewer="screenshot-12"] #viewer #image { background-image: url("/images/nour-screenshot-12.jpg"); }
body[data-viewer="screenshot-13"] #viewer #image { background-image: url("/images/nour-screenshot-13.jpg"); }
body[data-viewer="screenshot-14"] #viewer #image { background-image: url("/images/nour-screenshot-14.jpg"); }
body[data-viewer="screenshot-15"] #viewer #image { background-image: url("/images/nour-screenshot-15.jpg"); }
body[data-viewer="screenshot-16"] #viewer #image { background-image: url("/images/nour-screenshot-16.jpg"); }

.screenshot label,
#viewer label
{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}

.screenshot label+a
{
  display: contents;
  pointer-events: none;
}

.hidden
{
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  margin: 0;
}
