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

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

:root {
  --gutter: 20px;
}



a {
  color: black !important;
  text-decoration: none !important; /* no underline */
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
.bold {
  font-weight: 500;
}
/*
 * 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;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
  resize: vertical;
}

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

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

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

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



.vertical-center {
  min-height: 100%;  /* Fallback for browsers do NOT support vh unit */
  min-height: 100vh; /* These two lines are counted as one :-)       */

  display: flex;
  align-items: center;
}



.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page {
  z-index: 0;
  background: #eeeeee;
}

.container-main {
  overflow: hidden;
}

.center {
  margin: auto;
}

.header {
  width: 100%;
  height: 100vh;
}
body {
  scroll-behavior: smooth;
}
.wrapper {
  min-height: 100vh;
}

.intro-vid {
  /*margin: auto;*/
  width: 100%;
}

.small {
  /*height: 100vh;
  display: flex;*/
}
.small-wrapper {
  padding-top: 18vh;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 24vw;
}
.title-1-small {
  font-size: 3em;
  margin-top: 8vh;
}

.title-block {
  display: block;
}

.subtitle-1 {
  font-size: 1.4em;
  margin-left: 5px;
}

.subtitle-2 {
  font-size: 1.2em;
  max-width: 1000px !important;
  margin: 25px auto auto;
}

.section-container {
  max-width: 1900px;
  padding-left: 50px;
  padding-right: 50px;
}

/*.product-picture {
  /*width: 30vw;*/
  /*max-width: 650px;*/
/*}*/

.section-row {
  padding-top: 12vw;
  padding-bottom: 12vw;
}
.section-row-nobottom {
  padding-top: 12vw;
  padding-bottom: 2vw;
}

.image-right-position {
  float: right;
}
.image-center-position {
  margin: auto;
  display: block;
}

.vertical-game-vid {
  /*height: 80vmax;*/
  max-height: 850px;
  width: 100%;
}

.margin-auto {
  margin: auto;
}

.small-vertical-vid-title-block {
  width: 100%;
  margin: auto;
}

.vertical-game-title-block {
  padding-left: 10vw;
  padding-top: 100px;
}

.vertical-game-button-container {
  margin-top: 70px;
  margin: auto;
}

.button {
  font-size: 1.6em;
  /*margin-right: 60px;*/
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 300;
  cursor: pointer;
  background-color: #d6d6d6;
}
.next-game {
  white-space: pre;
}
.previous-game {
  margin-right: 60px;
}
.previous-game-small {
  float: left;
}
.vertical-game-button-container-small {
  width: 100%;
  max-width: 400px;
}
.next-game-small {
  float: right;
}
.game-title {
  font-size: 3em;
  font-weight: bolder;
}
.game-genre {
  font-size: 1.7em;
  font-weight: lighter;
  font-style: italic;
}

.horizontal-game-vid {
  /*width: 60vw;*/
  width: 100%;
  max-width: 700px;
}

/*#multi-device-video {
  width: 50vw;
  max-width: 780px;
}*/


.center-img {
  width: 65vw;
  max-width: 800px;
  display: block;
  margin: 75px auto auto;
}

.game-mode-picture {
  /*width: 20vw;*/
  max-width: 400px;
}

.take-away-container {
  display: block;
  margin: auto;
  max-width: 1600px;
  padding-top: 12vw;
  /*padding-left: 50px;
  padding-right: 50px;*/
}

.gamepad-context {
  width: 100%;
  max-width: 2560px;
  margin: auto;
  display: block;
}

.take-away-subtitle {
  padding-top: 8vw;
  padding-bottom: 40px;
  margin-left: 20px;
}

.text-block {
  position: relative;
  flex-shrink: 0;
  height: 325px;
  width: 325px !important;
  margin-right: 150px;
  border-radius: 0 29px 29px 29px;
  background-color: #efefef;
  box-shadow: 4px 4px 4px 1px rgba(0, 0, 0, 0.25);
  font-weight: 300;
  padding-left: 10px;
  padding-right: 10px;
}
.cursor-pointer {
  cursor: pointer;
}

.text-block-more {
  position: absolute;
  bottom: 15px;
  right: 17px;
}

.take-away-row {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
}



/*.text-block:hover {
  height: 330px;
  width: 330px !important;
}*/

.take-away-block-title {
  font-size: 1.6em;
  margin-top: 15px;
  font-weight: 300;
}

.take-away-block-content {
  margin-top: 30px;
  text-align: justify;
  text-justify: inter-word;
}

.take-away-bold {
  font-weight: 500;
}

@media screen and (max-width: 520px) {
  .popup-title {
    font-size: 1.5em !important;
    margin-top: 0 !important;
  }
  .popup-picture {
    margin-top: 0 !important;
  }
  .take-away-block-content {
    font-size: 0.8em;
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 750px) {
  section {
    margin-bottom: 100px;
  }
}

@media screen and (min-width: 750px) and (max-width: 990px) {
  section {
    margin-bottom: 250px;
  }
}


@media screen and (max-width: 990px) {
  .big {
    display: none !important;
  }
  .title-1{
    font-size: 4em;
  }
  .test-1 {
    height: 70vh;
  }
  .test-2 {
    height: 30vh;
    display: block;
  }
  .intro-vid {
    position: relative;
    width: 120%;
    left: -10%;
    /*overflow: hidden;*/
    /*max-width: 700px;*/
  }
  .hover_bkgr_fricc > div {
    width: 85%;
  }
  .product-picture {
    width: 100%;
    max-width: 450px !important;
  }
  .game-mode-picture {
    width: 40vw;
    max-width: 300px;
  }
  /*section {
    margin-bottom: 250px;
  }*/
  .section-row-nobottom {
    margin-bottom: 25px !important;
  }
  .multi-device-video {
    width: 100%;
    max-width: 450px;
  }
}
@media screen and (min-width: 990px) {
  .small {
    display: none !important;
  }
  .title-1{
    font-size: 5em;
  }
  .test-1 {
    height: 100vh;
  }
  .test-2 {
    height: 100vh;
  }
  .intro-vid {
    /*width: 100%;
    height: 100%;*/
    max-width: 1000px;
  }
  .hover_bkgr_fricc > div {
    width: 60%;
  }
  .product-picture {
    width: 30vw;
    max-width: 650px;
  }
  .game-mode-picture {
    width: 20vw;
  }
  .multi-device-video {
    width: 50vw;
    max-width: 780px;
  }
  .previous-game {
    line-height: 3;
  }

}


.title-2 {
  font-size: 3em;
  line-height: 1.1;
}

.game-pro-title-section {
  width: 100vw;
  height: 80vh;
}
.gamepro-intro {
  width: 100%;
  max-width: 1200px;
}
.gamepro-replay {
  position: relative;
  top: -10vw;
}
.subtitle-2-gamepro {
  font-size: 1.2em;
  max-width: 750px !important;
  margin: 25px auto auto;
  padding: 200px 20px;
}
.gamepro-jump {
  /*font-size: 1.6em;*/
  /* margin-right: 60px; */
  width: fit-content;
  padding: 10px 15px;
  border-radius: 30px;
  font-weight: 400;
  cursor: pointer;
  color: white;
  background-color: #292929;
  margin-top: 40px;
}
.gamepro-jump-small {
  margin: 0 auto;
}
.line-height {
  line-height: 1.3;
}

.app {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
}
.app > * {
  grid-column: 2 / -2;
}
.app > .full {
  grid-column: 1 / -1;
}
.hs {
  display: grid;
  height: 110%;
  grid-gap: 10vw;
  grid-template-columns: 325px;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  overflow-x: scroll;
  /*left: -15vw;
  position: relative;*/
  list-style-type: none;
}
/*.text-block:last-child {
  padding-right: 10px;
  margin-right: 10px;
}*/

.hs-second {
  margin-top: 50px;
}

.item {
  background-color: gray;
}
/*.hs::before,
.hs::after {
  content: '';
  width: 10px;
}*/


/* 29/07 moved to responsive */
/*.no-scrollbar {
  scrollbar-width: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}*/


/* Popup box BEGIN */
.hover_bkgr_fricc{
  background:rgba(0,0,0,.4);
  cursor:pointer;
  display:none;
  height:100%;
  position:fixed;
  text-align:center;
  top:0;
  width:100%;
  z-index:10000;
}
.hover_bkgr_fricc .helper{
  display:inline-block;
  height:100%;
  vertical-align:middle;
}
.hover_bkgr_fricc > div {
  background-color: #fff;
  box-shadow: 10px 10px 60px #555;
  display: inline-block;
  height: auto;
  max-width: 850px;
  min-height: 250px;
  vertical-align: middle;
  /*width: 60%;*/
  position: relative;
  border-radius: 8px;
  padding: 15px 5%;
  max-height: 90%;
}
.popupCloseButton {
  background-color: #fff;
  /*border: 3px solid #999;*/
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  font-family: arial;
  /*font-weight: bold;*/
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 25px;
  line-height: 30px;
  width: 30px;
  height: 30px;
  text-align: center;
}
.popupCloseButton:hover {
  background-color: #ccc;
}
.trigger_popup_fricc {

}

.popup {
  display: none;
}
/* Popup box BEGIN */
.popup-picture {
  /*width: 100%;
  height: auto;*/
  /*max-width: 100%;*/
  /*max-height: 100%;*/
  width: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: contain;
  /*margin-top: 20%;*/
}
.popup-title {
  font-size: 2.2em;
  margin-top: 30px;
  font-weight: 300;
}
@media screen and (min-height: 801px) {
  #popup-game-mode-picture {
    max-height: 450px;
    width: auto !important;
  }
}

@media screen and (max-height: 800px) {
  #popup-game-mode-picture {
    max-height: 220px !important;
    /*width: auto !important;*/
  }
  .popup-picture {
    max-height: 250px !important;

  }
}

.text-title-container {
  display: flex;
  flex-direction: column;
}
.text-title-block {
  margin: auto;
}

.visible{
  opacity:1!important
}
#small-intro-replay, #big-intro-replay, #big-back-trigger-replay, #small-back-trigger-replay, #horizontal-game-video-replay,
#touchstick-video-replay, #multi-device-video-replay, #small-multi-device-video-replay, #gamepro-intro-video-replay,
#gamepro-magnet-video-replay {
  opacity: 0;
}
.intro-vid-block {
  margin: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.center-text-div {
  justify-content: center;
  display: flex;
}
.replay-button-block {
  display: flex;
  align-items:center;
  cursor: pointer;
}
.replay-button-text {
  font-size: 1.3em;
  margin-left: 5px;
  color: #6899ef;
}
.replay-button-img {
  margin-top: 3px;
}
#big-intro-replay {
  justify-content: center;
}

/*#horizontal-game-popup {
  width: 100%;
}*/

.ipad-mini-title {
  margin-top: 20vw;
  margin-bottom: 10vw;
  max-width: 800px;
  width: 60%;
}

.ipad-mini-gaming {
  /*margin-bottom: 15vw;*/
  margin-bottom: 200px;
  display: block;
  width: 100%;
  max-width: 1800px;
  /*max-width: 800px;
  width: 60%;*/
}

.gamepro-game {
  padding-top: 200px;
  padding-bottom: 200px;
  display: block;
  margin: auto;
  width: 80%;
  max-width: 600px;
}

.gamepro-highlight {
  padding-top: 200px;
  padding-bottom: 200px;
  display: block;
  margin: auto;
  width: 100%;
  max-width: 1600px;
}
.gamepro-context-picture {
  padding-top: 200px;
  padding-bottom: 200px;
  width: 100%;
  max-width: 2560px;
  display: block;
  margin: auto;
}

.personal-introduction-block {
  margin-top: 20vh;
  margin-bottom: 10vh;
}
.personal-introduction-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 25px;
}
.personal-introduction-title-2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 145px;
}
.personal-introduction-subtitle {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 145px;
}
.personal-introduction-title-1 {
  margin-left: 0 !important;
  font-size: 44px;
}
.link {
  font-style: italic;
  text-decoration: underline !important;
}
.underline {
  text-decoration: underline !important;
}
.resume-link {
  font-size: 36px;
}
.external-link-block {
  margin-top: 245px;
}
.external-link-item {
  padding-bottom: 60px;
}
.overflow-hidden {
  overflow: hidden;
}
.container-contact {
  max-width: 800px;
  margin: auto;
}

@media only screen and (max-width: 1250px) {
  .text-block {
    height: 290px;
    width: 290px !important;
  }
  .take-away-block-title {
    font-size: 1.4em;
    margin-top: 5px;
    font-weight: 300;
  }
  .take-away-block-content {
    margin-top: 15px;
  }
  .hs {
    grid-gap: 7vw;
  }
}

@media only screen and (max-width: 1100px) {
  .hs {
    grid-gap: 3vw;
  }
}

@media only screen and (max-width: 1045px) {
  .hs {
    height: 100%;
  }
  .title-2 {
    font-size: 2em;
  }
  .subtitle-2 {
    font-size: 1em;
  }
}
@media only screen and (min-width: 1045px) {
  .no-scrollbar {
    scrollbar-width: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
}

@media only screen and (max-width: 590px) {
  .gamepro-game, .gamepro-highlight, .gamepro-context-picture {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .subtitle-2-gamepro {
    padding: 80px 20px;
  }
}

@media only screen and (min-width: 1350px) {
  .gamepro-intro {
    max-width: 1600px;
  }
}

@media only screen and (min-width: 1100px) {
  .subtitle-2-gamepro {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 749px) {
  .personal-introduction-subtitle {
    font-size: 22px !important;
  }

  .personal-introduction-title-2, .personal-introduction-title {
    font-size: 38px !important;
  }

  .personal-introduction-title-1 {
    font-size: 26px !important;
  }
}