html, body
{
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  color: #2e313a;
  margin: 0;
  background: url(../images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  letter-spacing: 0;
}

figure {
  width: 100%;
  margin: 0;
  float: left;
  position: relative;
  cursor: pointer;
}
figure:before,
figure:after {
  position: absolute;
}
figure:before {
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin-top: -36px;
  margin-left: -36px;
  content: url(../images/gif.png);
}
figure.play:before {
  display: none;
}

.gif
{
    background-image: url(../images/gif.png);
    background-repeat: no-repeat;
    background-size: 72px 72px;
    background-position: 0 0;
    height: 72px;
    left: 50%;
    position: relative;
    top: 50%;
    width: 72px
}

@font-face
{
  font-family: alternate-gothic-no-2-d;
  src: url('../fonts/AlternateGothicNo2DRegular.ttf'),
  url('../fonts/AlternateGothicNo2DRegular.ttf');
}

@font-face
{
  font-family: adobe-garamond-pro-italic;
  src: url('../fonts/AdobeGaramondProItalic.ttf'),
  url('../fonts/AdobeGaramondProItalic.ttf');
}

@font-face
{
  font-family: adobe-garamond;
  src: url('../fonts/AdobeGaramond.ttf'),
  url('../fonts/AdobeGaramond.ttf');
}

#wrap
{
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
}

.header
{
  width: 100%;
  margin: auto;
}

.slide
{
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  grid-auto-rows: max-content;
  align-items: start;
  align-content: start;
  gap: 24px;
  width: 100%;
  max-width: 1680px;
  height: 100%;
  color: #000;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  padding: 80px 64px 32px;
  box-sizing: border-box;
  text-align: left;
  overflow-x: hidden;
  overflow-y: auto;
}

.rsOverflow
{
  touch-action: pan-y pinch-zoom;
}

.rsDefault .rsThumbsHor
{
  height: 88px;
}

.rsDefault .rsThumb
{
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.rsDefault.rsHor .rsArrow
{
  top: 18px;
  width: 44px;
  height: 44px;
}

.rsDefault.rsHor .rsArrowLeft
{
  left: auto;
  right: 76px;
}

.rsDefault.rsHor .rsArrowRight
{
  right: 22px;
}

.label
{
  border-radius: 4px;
  font-family: Helvetica;
  font-size: 0.9em;
  text-align: center;
  color: #fff;
  padding: 5px;
  line-height: normal;
  padding-left: 6px;
  padding-right: 6px;
  display: inline-block;
  margin-bottom: 0.3em;
  margin-right: 0.3em;
}

.code
{
  background-color: #492E34;
  content: "Script";
}

.gamedesign
{
  background-color: #7C334B;
  content: "Game Design";
}

.leveldesign
{
  background-color: #A63661;
  content: 'Level Design';
}

.vfx
{
  background-color: #C83456;
  content: "VFX";
}

.two-d
{
  background-color: #F65E43;
  content: "2D Art";
}

/*
.screenshot
{
  display: block;
  height: 360px;
  width: 640px;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  float: left;
}*/

.screenshot
{
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 2px;
  position:relative;
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: 100%;
  box-shadow: 4px 4px 20px -6px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

ul
{
  margin: 0.6em 0 1em;
  padding-left: 1.2em;
  font-weight: 600;
}

li {
  margin: 0.25em 0;
}

.video,
[id^="loading-container"] {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 2px;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    box-shadow: 4px 4px 20px -6px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}

.video {
    visibility: hidden;
    display: none;
    height: auto;
    object-fit: contain;
    z-index: 1;
}

.video.loaded {
    visibility: visible;
    display: block;
}

.loading-gif {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

[id^="loading-container"] {
    display: none;
    z-index: 0;
}

.centered-project > [id^="loading-container"],
.centered-project > .video {
    aspect-ratio: 4 / 3;
}

/* different aspect ratios for images */
/*.threetwo
{
  width: 540px;
  height: 360px;
  margin-left: 50px;
}

.fourthree
{
  width: 480px;
  height: 360px;
  margin-left: 80px;
}

.square
{
  width: 360px;
  height: 360px;
  margin-left: 140px;
}*/

/* different aspect ratios for images */
.threetwo
{
  padding-top: calc(0.66 * 66.66%);
}

.fourthree
{
  padding-top: calc(0.66 * 75%);
}

.square
{
  width: 39%;
  padding-top: calc(0.39 * 100%);
}

/* images for the slides */
.ka  { background-image: url("../images/ka_gif.gif"); }
.ssq { background-image: url("../images/ssq_gif.gif"); }
.goe { background-image: url("../images/goe_gif.gif"); }
.geo { background-image: url("../images/geo_gif.gif"); }
.mr2 { background-image: url("../images/mr2_gif.gif"); }
.ichi { background-image: url("../images/ichi_gif.gif"); }
.paz { background-image: url("../images/paz_gif.gif"); }
.duet { background-image: url("../images/duet_gif.gif"); }
.eot { background-image: url("../images/eot_gif.gif"); }
.ice { background-image: url("../images/ice_gif.gif"); }
.toki { background-image: url("../images/toki_gif.gif"); }
.ak { background-image: url("../images/picture.jpg"); } 
.stagerush { background-image: url("../images/stagerush.jpg"); } 
.directx12 {
  aspect-ratio: 4 / 3;
}

.youtube
{
  border-width: 0px;
  border-radius: 4px;
}

.screenshot iframe, .screenshot object, .screenshot embed
{
  position:absolute;
  top:0;
  left:0;
  margin: 0;
  padding: 0;
  width:100%;
  height:100%;
}

.description, .description-me
{
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  height: auto;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.description p, .description-me p
{
  margin: 0 0 0.85em;
  line-height: 1.6;
}

.description ul, .description-me ul
{
  margin: 0.35em 0 0.95em;
  padding-left: 1.15em;
}

.description li, .description-me li
{
  margin: 0.5em 0;
  font-weight: 600;
  line-height: 1.5;
}


.bold
{
  font-weight: bold;
}

.title-project
{
  font-family: alternate-gothic-no-2-d;
  display: block;
  font-size: 1.875rem;
  font-weight: normal;
  font-style: normal;
  color: #2e313a;
  margin-top: 0px;
  /*text-shadow: 2px 2px 2px rgba(150, 150, 150, 0.4);*/
  margin-bottom: 0.3em;
  padding-bottom: 0;
  line-height: 1.05;
}

.intro
{
  grid-column: 1 / -1;
  width: 100%;
  max-width: 720px;
  text-align: center;
  margin: auto;
  box-sizing: border-box;
}

.verticalalign
{
  position: relative;
  top: auto;
}

#title
{
  font-family: alternate-gothic-no-2-d;
  font-size: 3rem;
  font-weight: normal;
  width: 100%;
  font-style: normal;
  color: #2e313a;
  margin-top: 0;
  text-shadow: 2px 2px 2px rgba(150, 150, 150, 0.4);
  margin-bottom: 0px;
}

#sub-title
{
  font-family: adobe-garamond-pro-italic;
  font-size: 13pt;
  font-weight: normal;
  font-style: normal;
  color: #2e313a;
  margin-bottom: 0px;
  margin-top: -0.5em;
  text-align: right;
  margin-right: 15px;
  letter-spacing: 0;
}

#intro-text
{
  font-family: 'Open Sans', sans-serif;
  font-weight: normal;
  font-style: normal;
  color: #2e313a;
  margin-bottom: 1em;
  margin-top: 1.5em;
  line-height: 1.6em;
  font-size: 1.125rem;
  text-align: center;
  letter-spacing: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

#intro-text a:link, #intro-text a:visited, #intro-text a
{
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.icon
{
  width: 44px;
  height: 44px;
  background-size: 32px 32px;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  border-radius: 50%;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

#linkedin { background-image: url('../images/icon_linkedin.svg'); }
#email { background-image: url('../images/icon_email.png'); }
#github { background-image: url('../images/icon_github.png'); }
#fb { background-image: url('../images/icon_fb.png'); }

#contact
{
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

#contact a:link, #contact a:visited, #contact a
{
  color: #000;
  font-style: italic;
  text-decoration: none;
}

#contact a:focus-visible
{
  outline: 2px solid #2e313a;
  outline-offset: 3px;
}

@media (hover: hover)
{
  #contact a:hover
  {
    transform: translateY(-3px) scale(1.08);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
  }
}

@media (prefers-reduced-motion: reduce)
{
  #contact a
  {
    transition: none;
    transform: none;
  }
}

a:link,a:visited,a
{
  /*color: #f03;*/
  color: #000;
  font-style: italic;
  text-decoration: none;
  cursor: pointer;
}

a:hover,a:active
{
  text-decoration: underline;
  font-style: italic;
  cursor: pointer;
  color: #000;
}

@media only screen and (max-width: 1100px), only screen and (max-aspect-ratio: 4/3)
{
  .slide
  {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1024px;
    padding: 80px 24px 24px;
  }

  .description, .description-me
  {
    grid-column: 1;
    grid-row: 2;
  }
}

@media only screen and (max-width: 480px)
{
  .slide
  {
    padding: 76px 14px 20px;
  }

  #title
  {
    font-size: 2.25rem;
  }

  .description, .description-me
  {
    padding: 18px;
  }

  .rsDefault .rsThumbsHor
  {
    height: 72px;
  }

  .rsDefault .rsThumb
  {
    width: 60px;
    height: 60px;
  }
}
