/* #region Reset */ 
 
 /* https://piccalil.li/blog/a-modern-css-reset */

/* Box sizing rules */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
}


/* #endregion */

/* #region header */

header {
  align-items: center; 
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid white;
  padding: 1rem;
  position: sticky;
  top: 0;
  background-color: var(--mainBlack);
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-evenly;
  align-items: end;
  gap: 2rem;
  position: relative;
  font-size: 1.3rem;
  
}


/* #endregion */

/* #region index */


.games-container {
  place-items: center;
  padding: 2rem;
}

.games {
  row-gap: 2rem;
  gap: 5rem;
  margin-top: 2rem;
  justify-content: space-evenly;
  flex-wrap: wrap;

}

.game-img {
  object-position: center;
  object-fit: cover;
  width: 20rem;
  aspect-ratio: 1;
}

.cards-container {
  margin: 0;
  padding: 0;
  padding-top: 1em;
  gap: 0.3em;
  flex-wrap: wrap;
  max-width: 300px;
}

.card {
  background-color: var(--mainGrey);
  font-size: 0.55em;
  border-radius: 20px;
  padding: 0.60em;
}

/* .imgcontainer{
  position: relative;
} */

.game-card {
  position: relative;
  
}

.game-img:hover{
  box-shadow: 10px 5px 5px var(--mainPurple);
}

.category{
  pointer-events: none;
  position: absolute;
  z-index: 1;
  width: 200%;
  bottom: 2px;
  border-left: 2px solid white;
  border-right: 2px solid white;
  font-size: 1.2rem;

  /* background-color: rgb(18, 162, 124); */
  color: white;
}

/* #endregion */

/* #region details */

iframe {
  aspect-ratio: 16 / 9;
}

.details-img, iframe {
  width: 40%;
}



.gameDesc {
  font-size: 1.2rem;
  padding: 1rem;
  width: 50%;
  margin: auto;
}

.game-links{
  margin: 1rem;
  gap: 	1rem;
}

.contributions-grid {
  grid-template-columns: 1fr 1fr;
  padding-top: 4rem;
  justify-items: center;
  padding-bottom: 2rem;
  width: 80%;
  gap: 3rem;
}

.contributions-grid td {
  padding: 1rem;
}

.contributions-grid td,th {
  font-size: 1.2rem;
}

.contributions-grid td {
  text-align: left;
}

.mySlides {
  display:none;
  aspect-ratio : 16/9;
  object-fit: cover;
}
.w3-left, .w3-right, .w3-badge {
  cursor:pointer;
  display: inline;
}
.w3-badge {
  height:20px;
  width:20px;
  padding:0;
  display: inline-block;
  background-color: var(--mainGrey);
  border-radius: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.w3-badge:hover{
  background-color: var(--mainPurple);
}

.w3-container {
  margin-top: 1rem;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

/* #endregion */

 /* #region all files */

 @font-face {
  font-family: 'arvo'; 
  src: url('../font/Arvo-Regular.ttf'); 
}

@font-face {
  font-family: 'arvo-bold'; 
  src: url('../font/Arvo-Bold.ttf'); 
}

:root {
  --mainPurple : rgb(183, 17, 183);
  --mainBlack : rgb(10, 10, 10);
  --mainGrey : rgb(33, 33, 33);
}

::selection {
  color: white;
  background: var(--mainPurple);
}

body {
  background-color: var(--mainBlack);
  color: white;
  font-family: 'arvo';
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  display: grid;
  grid-template-columns: 1fr;
  
  grid-template-rows: auto 1fr auto;
}

footer {
  border-top: 1px solid white;
  color: white;
  text-align: center;
  background-color: var(--mainGrey);
}

/* #endregion */

/* #region utility */

.visible-link {
  border-bottom: 2px solid white;
} 

.active {
  color: var(--mypurple);
}

.purple {
  color: var(--mainPurple);
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.full-width {
  width: 100%;
}

.smaller-full-width {
  width: 95%;
}

.half-width {
  width: 50%;
}

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

.text-justified {
  text-align: justify;
}

.purple-background {
  background-color: var(--mainPurple);
}

.grey-background {
  background-color: var(--mainGrey);
}

.bold {
  font-family: 'arvo-bold';
}

.large-text {
  font-size: 2rem;
}

.medium-text {
  font-size: 1.5rem;
}

.small-text {
  font-size: 1rem;
}

.centered {
  margin: auto;
}

.content-centered {
  justify-content: center;
}

.small-margin {
  margin-top: 2rem;
}

.white-border {
  border: 2px solid white;

}

.block {
  display: block;
}

/* #endregion */


/* #region about */

.about {
  width: 70%;
}

.cont {
  gap: 2rem;
}
.pic {
  border-radius: 100%;
  width: 20%;
  height: 20%;
}

.about-main {
  padding: 2%;
  padding-top: 5%;
  
}

.resume {
  width: 60%;
  /* height: 700px; */
  margin: 0 auto;
  display: block;
}

.download {
  padding: 0.5rem;
  background-color: var(--mainGrey);
}

.useful {
  margin-bottom: 2rem;
}

.download:hover {
  background-color: var(--mainPurple);
  color: white;
} 

 .social-links {
  float: right;
  margin-top: 5rem;
  gap: 1rem;
}

.social-links a {
  aspect-ratio: 1;
  width: 3rem;
}

/* #endregion */


/* #region Links*/
a:link {
  text-decoration: none;
  color: white;

}

a:visited {
  text-decoration: none;
  color: white;

}

a:hover {
  color: var(--mainPurple);
}

a:active {
  text-decoration: underline;
  color: white;
}
/* #endregion */
/* #region media queries */

/* large screens */
@media (min-width: 1200px) {
  .game-img{
    width: 25rem;
  }
}

/* laptops */
@media (max-width: 992px) {

}

@media (max-width: 800px)
{
  .name-container{
    text-align: center;
    line-height: 1.3rem;
  }

  .name{
    font-size: 1.7rem;
  }

  nav {
    font-size: 1.2rem;
  }
}

/* tablets */
@media (max-width: 768px) {

}



/* cellphones */
 @media (max-width: 700px) {
  .games {
    flex-direction: column;
    flex-grow: 4rem;    
  }

  .game {
    width: 100%;
  }

  .name {
    font-size: 1.5rem;
    text-align: center;
    word-wrap: normal;
  }  

  header {
    flex-direction: column;
    justify-content: center;
    
  }  

  nav {
    margin: 0;
    align-items: middle;
    margin-top: 1rem;
  }   

   .game-img {
    height: 20rem;
  }   

  .pic {
    border-radius: 0;
    width: 50%;
  }
  .cont{
    flex-wrap: wrap;
  }

  .contributions-grid {
    width: 95%;
  }

  .gameDesc, .about {
    width: 95%;
    font-size: 1.2rem;
    text-align:justify;
  }

  iframe {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: block;
  }
/* 
  .embed {
    align-items: center;
  } */
  
  iframe, .details-img, .w3-display-container {
    width: 100%;
  }

  .w3-container {
    font-size: 1.5rem;
  }

  .w3-badge {
    height:  15px;
    width: 15px;
  }
 } 

 @media (max-width: 500px) {

  #old-name {
    display: none;
    height: 0;
    width: 0;
  }

  #new-name {
    display: block!important;
  }

  .gameDesc {
    font-size: 1.2rem;
  }

  .w3-container {
    font-size: 1rem;
  }

  .w3-badge {
    height: 10px;
    width: 10px;
  }
 }
/* #endregion */
