/*! 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
   ========================================================================== */

html {--s: 150px; /* control the size */
  --c1: #222;
  --c2: #000;
  
  --_s: calc(2*var(--s)) calc(2*var(--s));
  --_g: var(--_s) conic-gradient(at 40% 40%,#0000 75%,var(--c1) 0);
  --_p: var(--_s) conic-gradient(at 20% 20%,#0000 75%,var(--c2) 0);
  background:
    calc( .9*var(--s)) calc( .9*var(--s))/var(--_p),
    calc(-.1*var(--s)) calc(-.1*var(--s))/var(--_p),
    calc( .7*var(--s)) calc( .7*var(--s))/var(--_g),
    calc(-.3*var(--s)) calc(-.3*var(--s))/var(--_g),
    conic-gradient(from 90deg at 20% 20%,var(--c2) 25%,var(--c1) 0) 
     0 0/var(--s) var(--s);
  animation: squares 5s infinite;

  font-size: 1em;
  line-height: 1.4;
  color: azure;
}


@keyframes squares {
  0% {
   background-position: 
    calc( .9*var(--s)) calc( .9*var(--s)),
    calc(-.1*var(--s)) calc(-.1*var(--s)),
    calc( .7*var(--s)) calc( .7*var(--s)),
    calc(-.3*var(--s)) calc(-.3*var(--s)),0 0
  }
  25% {
   background-position: 
    calc(1.9*var(--s)) calc( .9*var(--s)),
    calc(-1.1*var(--s)) calc(-.1*var(--s)),
    calc(1.7*var(--s)) calc( .7*var(--s)),
    calc(-1.3*var(--s)) calc(-.3*var(--s)),0 0
  }
  50% {
   background-position: 
    calc(1.9*var(--s)) calc(-.1*var(--s)),
    calc(-1.1*var(--s)) calc( .9*var(--s)),
    calc(1.7*var(--s)) calc(-.3*var(--s)),
    calc(-1.3*var(--s)) calc( .7*var(--s)),0 0
  }
  75% {
   background-position: 
    calc(2.9*var(--s)) calc(-.1*var(--s)),
    calc(-2.1*var(--s)) calc( .9*var(--s)),
    calc(2.7*var(--s)) calc(-.3*var(--s)),
    calc(-2.3*var(--s)) calc( .7*var(--s)),0 0
  }
  100% {
   background-position: 
    calc(2.9*var(--s)) calc(-1.1*var(--s)),
    calc(-2.1*var(--s)) calc(1.9*var(--s)),
    calc(2.7*var(--s)) calc(-1.3*var(--s)),
    calc(-2.3*var(--s)) calc(1.7*var(--s)),0 0
  }
}
/*
 * 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 {
    color:rgb(205, 1, 212);
    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;
  }
}

.scrollparent{
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

@font-face {
  font-family: 'Spartan';
  src: url('LeagueSpartan-ExtraBold.ttf')
}

@font-face{
  font-family: 'Prociono';
  src: url('Prociono.ttf')
}

/* ----------------------------------------------
 * Generated by Animista on 2023-11-21 9:13:26
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-in-blurred-right
 * ----------------------------------------
 */
 @keyframes slide-in-blurred-right {
  0% {
    transform: translateX(1000px) scaleX(2.5) scaleY(0.2);
    transform-origin: 0% 50%;
    /*filter: blur(40px);*/
    opacity: 0;
  }
  100% {
    transform: translateX(0) scaleY(1) scaleX(1);
    transform-origin: 50% 50%;
    /*filter: blur(0);*/
    opacity: 1;
  }
}

@keyframes slide-in-blurred-left {
  0% {
    transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
    transform-origin: 0% 50%;
    /*filter: blur(40px);*/
    opacity: 0;
  }
  100% {
    transform: translateX(0) scaleY(1) scaleX(1);
    transform-origin: 50% 50%;
    /*filter: blur(0);*/
    opacity: 1;
  }
}

@keyframes slide-in-blurred-mid {
  0% {
    transform: translateY(1000px) scaleY(2.5) scaleX(0.2);
    transform-origin: 50% 0%;
    /*filter: blur(40px);*/
    opacity: 0;
  }
  100% {
    transform: translateX(0) scaleY(1) scaleX(1);
    transform-origin: 50% 50%;
    /*filter: blur(0);*/
    opacity: 1;
  }
}


#nameplate{
  font-size: xx-large;
  text-align: center;
  background-color: rgb(20, 20, 20);
}

@media screen and (min-width: 512px) { /*For desktop displays*/
  .scrollsnapper {
    height: 100vh;
    scroll-snap-type: y mandatory;
    scroll-snap-align: start;
  }

  .fancy{
    font-size:150px;
  }

  div.game{
    width: 27vw;
  }

  #nameplate{
    display:flex;
    justify-content:space-around;
    align-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;  
  }
}

@media screen and (max-width: 512px) { /*For mobile displays*/
  .fancy{
    font-size: 18vw;
  }

  .framed{
    width: 40vw;
  }
}


/*"Game Dev, Web Dev, engineer"*/
#roles{ 
  font-family: 'Prociono';
}

/*email, linkedin, itch*/
#contact{
  font-family: 'Prociono';
}

.fancy {
  font-family: 'Spartan';

  @supports (background-clip: text) or (-webkit-background-clip: text) {
    background-image: url('snow.jpg');
    background-size: 50% auto;
    background-position: center;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.framed {
  --s: 10px; /* control the size */
  padding: var(--s);
  border: calc(2*var(--s)) solid #0000;
  outline: 1px solid #fff;
  outline-offset: calc(-1*var(--s));
  background: conic-gradient(from 90deg at 1px 1px,#0000 25%,#fff 0);
}

#statement{    
  display: flex;
  justify-content: space-evenly;
  align-content: space-around;
  align-items: stretch;
  flex-wrap: wrap;
}

/*Collaborators box */

#Collaborators figure{
  background-color: rgb(20, 20, 20);
  height: 50px;
}

.person {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);

  margin: 0 15px 30px;

  overflow: hidden;

  border-radius: 25px;
}
.person_link {
  display: grid;
  padding: 15px 20px;
  background-color: #121212;

  overflow: hidden;

  position: relative;
}
.person_link:hover,
.person_link:hover .person_date {
  text-decoration: none;
  color: #FFF;
}
.person_link:hover .person_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}
.person_name {
  margin: 0 0 25px;

  overflow: hidden;

  font-weight: bold;
  color: #FFF;

  z-index: 2;
  position: relative;
}

.portrait{
  object-fit:cover;
  height:25px;
  width:25px;
  border-radius: 50%;
  z-index: 2;
  position: relative;
  justify-self: left;
}

.person_date-box {
  font-size: 18px;
  color: #FFF;

  z-index: 2;
  position: relative;
}
.person_date {
  font-weight: bold;
  color: #f9b234;

  -webkit-transition: color .5s ease;
  -o-transition: color .5s ease;
  transition: color .5s ease
}
.person_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;

  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;

  border-radius: 50%;

  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}
.person:nth-child(2n) .person_bg {
  background-color: #8D53BC;
}
.person:nth-child(3n) .person_bg {
  background-color: #e44002;
}
.person:nth-child(4n) .person_bg {
  background-color: #952aff;
}
.person:nth-child(5n) .person_bg {
  background-color: #cd3e94;
}
.person:nth-child(6n) .person_bg {
  background-color: #4c49ea;
}



@media only screen and (max-width: 979px) {
  .person {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }
  .person_name {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

}
@media only screen and (max-width: 639px) {
  .person {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .person_name {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
  }
  .person_link {
    padding: 22px 40px;
  }
  .person_date-box {
    font-size: 16px;
  }
}

/*Games*/

div{
  margin: 10px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid white;
  border-radius: 5px;
  text-justify: center;
  background-color: #000;
  padding-right: 20px;
  padding-left: 20px;
}

#gametable{
  display:flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

div.game{
  /*height: 250px;*/
  vertical-align: baseline;
}


div.game:not(.inview){
  opacity: 0;
}

div.game.right.inview{
	animation: slide-in-blurred-right 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) ;
}

div.game.left.inview{
  animation: slide-in-blurred-left 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.2s both;
}

div.game.mid.inview{
  animation: slide-in-blurred-mid 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.3s both;
}

.title {
  color:azure;
  text-decoration: none;
  background-image: linear-gradient(rgb(205, 1, 212), rgb(205, 1, 212));
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: 100% 0%;
   transition: background-size .7s, background-position .5s ease-in-out;
}

.title:hover {
  background-size: 100% 100%;
  background-position: 0% 100%;
  transition: background-position .7s, background-size .5s ease-in-out;
}

.link{
  color:rgb(205, 1, 212);
}

img.cover{
  height: 150px;
  max-width: 100%;
  margin: 0 auto;
  display:block;
}

.gamelinks{
  display:flex;
  justify-content: space-around;
}

#about{
  margin: 5%;
}