:root {
  --hoverBG: #000;
  --selectedBG: #000;
  --primary: #121212;
  --secondary: #f2f2f2;
  --footer: #444;
  --genre: darkorange;
  --role: cornflowerblue;
  --grey: grey;
}

@font-face {
    font-family: 'Jost';
    src: url('/fonts/jost-variablefont_wght-webfont.eot');
    src: url('/fonts/jost-variablefont_wght-webfont.eot?#iefix') format('embedded-opentype'),
        url('/fonts/jost-variablefont_wght-webfont.woff2') format('woff2'),
        url('/fonts/jost-variablefont_wght-webfont.woff') format('woff'),
        url('/fonts/jost-variablefont_wght-webfont.ttf') format('truetype'),
        url('/fonts/jost-variablefont_wght-webfont.svg#jost-variablefont_wght-webfont') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost-Bold';
    src: url('/fonts/Jost-ExtraBold.eot');
    src: url('/fonts/Jost-ExtraBold.eot?#iefix') format('embedded-opentype'),
        url('/fonts/Jost-ExtraBold.woff2') format('woff2'),
        url('/fonts/Jost-ExtraBold.woff') format('woff'),
        url('/fonts/Jost-ExtraBold.ttf') format('truetype'),
        url('/fonts/Jost-ExtraBold.svg#Jost-ExtraBold') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Jost, sans-serif;
}

h1, h2, h3, h4 , h5, b {
  font-family: monospace, sans-serif;
  text-transform: uppercase;
  font-family: Jost-Bold, sans-serif;
}

html {
  background-color: var(--secondary);
}

body {
   width: 100vw;
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   background-color: #f2f2f2;
}

.about-page {
  min-height: calc(100vh-108px);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/*.jost {
   font-family: Jost, sans-serif;
}

.jost-bold {
   font-family: Jost-Bold, sans-serif;
}*/

.jost-bold {
   font-family: Jost-Bold, sans-serif;
   font-weight: 800;
}

hr {
   border: none;
   height: 2px;
   color: #121212;  /* old IE */
   background-color: #121212;  /* Modern Browsers */
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
HEADER
--------------------------------------------------------------------------------------------------------------------------------------------------*/

.menu {
  position: fixed;
  z-index: 1111;
  background-color: var(--secondary);
  border-bottom: 2px solid var(--primary);
  width: 100vw;
  height: 72px;
  display: grid;
  align-items: center;
}

.menu > div {
  width: 90vw;
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  align-items: center;
  justify-content: center;
  margin-left: 5vw;
}

.menu-left > div {
  width: 100%;
}

.menu-left > div > img {
  height: 40px;
}

.menu-title {
  text-align: center;
}

.menu-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu-right > div {
  margin-right: 32px;
}

.menu-right > div > a {
  text-decoration: none;
}

.menu-links {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  height: 100%;
}

.menu-links > a {
   text-decoration: none;
   text-align: center;
}

.page-link {
  color: #121212;
  padding: 4px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: 8px;
  margin-right: 8px;
  display: grid;
  align-items: center;
}

.menu-links > a > div {
   transition: 0.3s;
}

.menu-links > a:hover > div {
   color: #f2f2f2;
   background-color: var(--hoverBG);
   border-radius: 4px;
   transition: 0.3s;
}


.selected-link {
   background: var(--selectedBG);
   color: #f2f2f2;
   border-radius: 4px;
}

.outbound-link {
   border-radius: 8px;
   color: #121212;
   width: 40px;
   height: 40px;
   display: grid;
   align-items: center;
   text-align: center;
   transition: 0.3s;
}

.outbound-link:hover {
  color: #f2f2f2;
  background-color: var(--hoverBG);
  transition: 0.3s;
  cursor: pointer;
}

.index-container {
  padding-top: 108px;
}


/*--------------------------------------------------------------------------------------------------------------------------------------------------
INDEX
--------------------------------------------------------------------------------------------------------------------------------------------------*/

.index-grid {
  width: 80vw;
  display: grid;
  grid-template-columns: 6fr 6fr;
  grid-gap: 24px;
}

 .index-grid > * {
    text-decoration: none;
    color: var(--primary);
  }

/*--------------------------------------------------------------------------------------------------------------------------------------------------
INDEX - UI AND GAMES
--------------------------------------------------------------------------------------------------------------------------------------------------*/

#page {
  position: relative;
}

.page-about {
  width: 80vw;
  margin-left: 10vw;
}

.gallery-filter {
  width: 100%;
  height: auto;
  padding: 16px;
  padding-top: 48px;
}

.filter-flex {
  display: flex;
  justify-content: center;
}

.filter-item {
  text-align: center;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 32px;
  padding: 8px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 1080px;
  transition: 0.3s;
}

.filter-item:hover {
  background-color: var(--hoverBG);
  color: #f2f2f2;
  transition: 0.3s;
  cursor: pointer;
}

.filter-item-active {
  background-color: var(--selectedBG);
  color: #f2f2f2;
}

.gallery {
  width: 100%;
  height: auto;
  margin-top: 32px;
}

.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  grid-gap: 24px;
  padding-left: 10vw;
  padding-right: 10vw;
}

.gallery-tags > div {
  width: auto;
  margin-bottom: 8px;
}

.gallery-role {
  width: auto;
  padding: 8px;
  color: var(--secondary);
  background-color: var(--role);
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}

.gallery-proto {
  width: auto;
  padding: 8px;
  color: var(--secondary);
  background-color: var(--grey);
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}

.gallery-genre {
  width: auto;
  padding: 8px;
  color: var(--secondary);
  background-color: var(--genre);
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}

.gallery-button {
  margin-top: 24px;
  margin-bottom: 16px;
  font-family: Jost-Bold, sans-serif;
}

.gallery-button > a {
  padding: 8px;
  color: var(--secondary);
  background-color: green;
  border: 2px solid var(--hoverBG);
  transition: 0.3s;
  text-decoration: none;
  transition: 0.3s;
  width: 100%;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: Jost-Bold, sans-serif;
}

.gallery-button > a:hover {
  text-decoration: none;
  background-color: darkgreen;
  border: 4px double var(--selectedBG);
  transition: 0.3s;
}

.gallery-item {
  height: auto;
  background-color: #fff;
  padding: 16px;
  /*box-shadow: #c9c9c9 0px 0px;*/
  border: 2px solid var(--hoverBG);
  transition: 0.3s;
  transform: scale(1);
}

.gallery-item:hover {
  /*box-shadow: #c9c9c9 8px 8px;*/
  border: 4px double var(--selectedBG);
  transition: 0.3s;
  cursor: pointer;
  transform: scale(1.01);
}

.gallery-item > img {
  width: 100%;
}

.gallery-item-text > h4 {
  padding-top: 8px;
  padding-bottom: 8px;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
MODAL - INDEX
--------------------------------------------------------------------------------------------------------------------------------------------------*/

#modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
  z-index: 1111;
  display: none;
}

#modal-container {
  position: absolute;
  width: 95vw;
  max-height: 95vh;
  overflow-y: scroll;
  background-color: var(--secondary);
  top: 0;
  left: 0;
  margin-top: 2.5vh;
  margin-left: 2.5vw;
  z-index: 1111;
  border: 2px solid var(--primary);
}

.modal-content {
  padding: 64px;
  padding-left: 128px;
  padding-right: 128px;
  padding-bottom: 0;
  margin-bottom: 64px;
  width: 100%;
  height: auto;
  color: var(--primary);
}

.games-modal-content {
  display: grid;
  grid-template-columns: 6fr 6fr;
  grid-gap: 32px;
}

.ui-modal-content {
  display: grid;
  grid-template-columns: 6fr 6fr;
  grid-gap: 32px;
}

#modal-title {
  padding-right: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
}

.modal-header > div {
  display: flex;
  align-items: center;
}

.modal-header > div > h3 {
  margin-left: 16px;
  padding: 8px;
  border-radius: 8px;
  background-color: var(--primary);
  color: var(--secondary);
  text-align: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: 12fr;
  grid-gap: 16px;
  align-items: flex-start;
}

#modal-image, .modal-thumbnail {
  width: 100%;
}

#modal-role {
  background-color: var(--role);
}

#modal-genre {
  background-color: var(--genre);
}

.modal-thumbnail {
  border: 2px solid var(--hoverBG);
  transition: 0.3s;
  height: auto;
}

.modal-thumbnail:hover {
  border: 4px double var(--selectedBG);
  transition: 0.3s;
  cursor: pointer;
}

.active-thumbnail {
  border: 4px double var(--selectedBG);
  transition: 0.3s;
}

#modal-thumbnails {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  grid-gap: 16px;
  align-items: flex-start;
  height: auto;
}

.modal-buttons {
  display: inline-block;
}

.modal-button {
  margin-top: 64px;
  display: block;
  float: left;
  margin-right: 32px;
  font-family: Jost-Bold, sans-serif;
}

.modal-button > a {
  padding: 8px;
  color: var(--secondary);
  background-color: green;
  border: 2px solid var(--hoverBG);
  transition: 0.3s;
  text-decoration: none;
  transition: 0.3s;
  width: 100%;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: Jost-Bold, sans-serif;
}

.modal-button > a:hover {
  background-color: darkgreen;
  border: 4px double var(--selectedBG);
  transition: 0.3s;
}

#modal-button {
  background-color: white;
  color: var(--primary);
  font-family: Jost-Bold, sans-serif;
}

#modal-button:hover {
  background-color: #c9c9c9;
}

.close {
  position: fixed;
  right: calc(2.5vw + 32px);
  top: calc(2.5vh + 32px);
  width: 32px;
  height: 32px;
  opacity: 1;
  cursor: pointer;
  padding: 20px;
  background-color: transparent;
  display: grid;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
  transition: 0.3s;
  z-index: 1110;
}

.close:hover {
  opacity: 1;
  background-color: red;
  border-radius: 4px;
  transition: 0.3s;
}

.close:before, .close:after {
  position: absolute;
  left: 19px;
  content: ' ';
  height: 32px;
  width: 2px;
  background-color: var(--primary);
  transition: 0.3s;
}

.close:hover:before, .close:hover:after {
  background-color: var(--secondary);
  transition: 0.3s;
}

.close:before {
  transform: rotate(45deg);
}

.close:after {
  transform: rotate(-45deg);
}

.iframe-wrapper-video {

  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  margin-bottom: 10%;
  display: grid;
  justify-content: center;
}

.floated-video {

  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 2.5%;
  background-color: #c9c9c9;
}

.left {
  position: fixed;
  left: calc(2.5vw + 32px);
  top: 0;
  width: 48px;
  height: 32px;
  opacity: 1;
  cursor: pointer;
  padding: 20px;
  display: grid;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.3s;
  transform: rotate(-90deg);
  z-index: 1110;
  border-radius: 4px;

}

.left:hover {
  opacity: 1;
  transition: 0.3s;
  background-color: var(--primary);
}

.left:before, .left:after {
  position: absolute;
  display: block;
  left: 16px;
  content: ' ';
  height: 4px;
  width: 16px;
  background-color: var(--primary);
  transition: 0.3s;
}

.left:before {
  transform: rotate(45deg) translate(3.5px, -3.5px);
}

.left:after {
  transform: rotate(-45deg) translate(-3.5px, -3.5px);
}

.right {

  position: fixed;
  right: calc(2.5vw + 32px);
  top: 0;
  width: 48px;
  height: 32px;
  opacity: 1;
  cursor: pointer;
  padding: 20px;
  display: grid;
  align-items: center;
  justify-content: right;
  text-align: center;
  transition: 0.3s;
  transform: rotate(90deg);
  z-index: 1110;
  border-radius: 4px;

}

.right:hover {
  opacity: 1;
  transition: 0.3s;
  background-color: var(--primary);
}

.right:before, .right:after {
  position: absolute;
  left: 16px;
  content: ' ';
  height: 4px;
  width: 16px;
  background-color: var(--primary);
  transition: 0.3s;
}

.right:before {
  transform: rotate(45deg) translate(3.5px, -3.5px);
}

.right:after {
  transform: rotate(-45deg) translate(-3.5px, -3.5px);
}

.left:hover:after, .left:hover:before, .right:hover:after, .right:hover:before{
  background-color: var(--secondary);
  transition: 0.3s;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
FOOTER
--------------------------------------------------------------------------------------------------------------------------------------------------*/

.footer {
  margin-top: 108px;
  width: 100vw;
  height: 108px;
  background-color: var(--secondary);
  color: var(--primary);
  border-top: 2px solid var(--primary);
}

.footer-container {
  display: grid;
  align-items: center;
  grid-template-columns: 6fr 6fr;
  height: 100%;
  width: 90vw;
  margin-left: 5vw;
}

.footer-container > div {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-end;
}

.footer-container > div > a {
  text-decoration: none;
  border-radius: 8px;
  color: #121212;
  width: 40px;
  height: 40px;
  display: grid;
  align-items: center;
  text-align: center;
  transition: 0.3s;
  margin-left: 8px;
}

.footer-container > div > a:hover {
  color: var(--secondary);
  background-color: var(--primary);
  transition: 0.3s;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
ABOUT
--------------------------------------------------------------------------------------------------------------------------------------------------*/

.about-container {
  display: grid;
  grid-template-columns: 4fr 8fr;
  grid-gap: 64px;
  width: 80vw;
}

.about-image > img {
  width: 100%;
  border-radius: 16px;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
PORTFOLIO PAGE
--------------------------------------------------------------------------------------------------------------------------------------------------*/

.portfoliopage-body {
  width: 80vw;
  margin-left: 10vw;
  padding-top: 108px;
}

.games-button-other > div > img {
  width: 100%;
  border-bottom: 2px solid var(--primary);
}

#portfoliopage-modal {
  display: none;
}

.games-grid {
  display: grid;
  grid-gap: 16px;
  grid-template-columns: 4fr 4fr 4fr;
}

.games-button {
  border: 2px solid var(--selectedBG);
  background-color: #fff;
  transition: 0.3s;
  font-family: Jost-Bold, sans-serif;
}

.games-button:hover {
  border: 4px double var(--selectedBG);
  transition: 0.3s;
  cursor: pointer;
}

.games-button > div > img {
  width: 100%;
  border-bottom: 2px solid var(--primary);
}

.games-button > div > h5 {
  padding: 8px;
  padding-top: 0;
}

li {
  margin-left: 32px;
}

.game-link {
  display: flex;
}

.game-link > div {
  margin-right: 16px;
}

.games-grid-other > a {
  text-decoration: none;
  color: var(--primary);
  font-family: Jost-Bold, sans-serif;
}

.games-grid-other {
  display: grid;
  grid-template-columns: 3fr 3fr 3fr 3fr;
  grid-gap: 16px;
}

.games-button-other {
  border: 2px solid var(--selectedBG);
  transition: 0.3s;
  font-family: Jost-Bold, sans-serif;
}

.games-button-other:hover {
  border: 4px double var(--selectedBG);
  transition: 0.3s;
  cursor: pointer;
}

.games-button-other > div > h5 {
  padding: 8px;
  padding-top: 0;
}

.image-grid-2 {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 16px;
}

.image-grid-2 > img {
  width: 100%;
}

.process-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  align-items: center;
  grid-gap: 32px;
}

.process-grid > div > img {
  width: 100%;
}

.variable-image-container-animation {
  width: 100%;
  height: 20vw;
  object-fit: cover;
  margin-bottom: 5px;
  background-color: #121212;
}

.variable-image{
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.other-items-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
}

.other-items-grid > a {
  text-decoration: none;
  color: var(--primary);
  border: none double var(--selectedBG);
  padding: 8px;
  transition: 0.3s;
  font-family: Jost-Bold, sans-serif;
}

.other-items-grid > a:hover {
  text-decoration: none;
  color: var(--primary);
  border: 4px double var(--selectedBG);
  transition: 0.3s;
}

#portfoliopage-item-auto {
  border-top: 2px var(--primary) solid;
  padding-top: 64px;
  width: 100vw;
}

.games-grid-other {
  width: 80vw;
  margin-left: 10vw;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
PORTFOLIO PAGE MODAL
--------------------------------------------------------------------------------------------------------------------------------------------------*/

#portfoliopage-modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
  z-index: 1111;
  display: none;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------
MEDIA QUERIES
--------------------------------------------------------------------------------------------------------------------------------------------------*/

@media all and (max-width: 1024px) {
  .modal-grid {
    grid-template-columns: 12fr;
    grid-row-gap: 16px;
  }

  .games-modal-content, .ui-modal-content {
    grid-template-columns: 12fr;
    grid-row-gap: 64px;
  }

  .gallery-grid {
    grid-template-columns: 6fr 6fr;
  }

  .menu > div {
    grid-template-columns: 6fr 6fr;
  }

  .menu-title {
    display: none;
  }
}

@media all and (max-width: 756px) {
  .modal-header {
    display: block;
  }

  .modal-header > div {
    margin-top: 16px;
    justify-content: flex-start;
  }

  #modal-role {
    margin-left: 0;
  }

  .gallery-grid {
    grid-template-columns: 12fr;
  }

  .filter-flex {
    display: block;
  }

  .page-link {
    padding-left: 8px;
    padding-right: 8px;
    margin-left: 4px;
    margin-right: 4px;
  }

  .menu-right > div {
    margin-right: 8px;
  }

  .modal-content {
    padding-right: 64px;
    padding-left: 64px;
  }

  .close {
    position: fixed;
    right: calc(2.5vw + 16px);
    top: calc(2.5vh + 16px);
    width: 32px;
    height: 32px;
    opacity: 1;
    cursor: pointer;
    padding: 20px;
    background-color: transparent;
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 4px;
    transition: 0.3s;
    z-index: 1110;
  }

  .left {
    left: calc(2.5vw + 16px);
  }

  .right {
    right: calc(2.5vw + 16px);
  }

  .games-button:hover {
    border: 4px double var(--selectedBG);
    transition: 0.3s;
    cursor: pointer;
  }
  .games-grid-other {
    display: grid;
    grid-template-columns: 6fr 6fr;
    grid-gap: 16px;
  }
  .process-grid {
    display: grid;
    grid-template-columns: 12fr;
    align-items: center;
    grid-gap: 32px;
  }

  .index-grid {
    grid-template-columns: 12fr;
  }

  .games-grid {
    display: grid;
    grid-gap: 16px;
    grid-template-columns: 6fr 6fr;
  }
  .image-grid-2 {
    display: grid;
    grid-template-columns: 12fr;
  }
}

@media all and (max-width: 576px) {
  .about-container {
    grid-template-columns: 12fr;
    grid-gap: 32px;
  }
}

@media all and (max-width: 420px) {
  .modal-header > div {
    display: block;
  }
  .modal-header > div > h3 {
    display: block;
    margin: 0;
    margin-bottom: 16px;
  }

  .modal-content {
    padding-right: 32px;
    padding-left: 32px;
  }

  .left {
    left: calc(2.5vw + 8px);
  }

  .right {
    right: calc(2.5vw + 8px);
  }
}
