:root{
  --dark: rgb(6,6,7);
  --mid: rgb(30,30,43);
  --light: rgb(65,65,75);
  --textlight: rgb(210,210,200);
  --links: rgb(207, 182, 55);
  --bgeffect: rgb(202, 208, 222);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--textlight);
  font-weight: 500;
  font-size: 1.2em;
  overflow: hidden;
  background-color: rgb(233, 234, 240);
}

a{
  color:pink;
}

a:visited{
  color:pink;
}

.nav{
  position: absolute;
  top: 87%;
  bottom: 0;
  width: 100%;
  background-color: var(--bgeffect);
  box-shadow: 0px -10px 10px 10px var(--bgeffect);
  z-index: 100;
}

.nav ul{
  position: absolute;
  text-decoration: none;
  list-style-type: none;
  margin: 0;
  padding-left: 3em;
  padding-right: 3em;
  top: -5%;
  width: 100%;
  bottom: 10px;
}

.nav li{
  float:left;
  padding: 0.5em;
  width: 5%;
  height: 800px;
  color:black;
  font-size: 1.6vh;
  text-align: center;
  font-weight: 600;
  animation: zoomOut 0.2s ease-out forwards;
  border-radius: 0.6em;
  border: 3px solid rgba(255,255,255,0.3);
  margin: 0em 0.75em;
  box-shadow: 0 0 5px 1px rgba(0,0,0,0.5);
  background-color: rgba(0, 0, 0, 0.1);
  filter: grayscale(100%);
}

.nav li:hover:not(.cat){
  animation: zoomIn 0.05s ease-out forwards;
  filter: none;
}

.nav .select{
  background-color: rgba(228, 157, 52, 0.5);
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.5);
  border: 3px solid white;
  filter: none;
}

.nav li img{
  position:relative;
  width: 100%;
  height: 8vh;
  border-radius: 0.4em;
}

.nav .cat{
  position: absolute;
  left: -20px;
  top: -2em;
  z-index: 1000;
  overflow: visible;
  transform: rotate(-15deg);
  box-shadow: none;
  border-radius: 0.5em;
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
  color:black;
  font-size: 1.0em;
  outline: 3px solid white;
  background-color: rgba(213, 225, 226, 0.6);
  pointer-events: none;
  padding: 0.2em;
}

.nav .navMove{
  position: fixed;
  top: 85%;
  font-size: 2em;
  padding:1em 0.1em;
  z-index: 1000000;
}

.nav .navMove:hover{
  transform: scale(1.15);
}

.nav a{
  text-decoration: none;
  color: green;
}

canvas{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
}

.main{
  position: absolute;
  top: 10px;
  bottom: 10%;
  left: 20px;
  right: 20px;
}

.page{
  display: none;
  position: absolute;
  width: 100%;
  height: 80%;
}

.main .aboutme{
  position: relative;
  width:100%;
  height:85%;
  color: black;
}

.main .aboutme img{
  float:left;
  border-radius:1em;
  margin: 2.5em;
  box-shadow: 0px 3px 10px 2px rgba(0, 0, 0,0.5);
}

.main .aboutme span{
  padding: 2em;
  font-family: "Lexend", sans-serif;
  font-size: 0.8em;
}

.card{
  position: absolute;
  margin-right: 500px;
  left: 0px;
  top: 0px;
  width: 25%;
  height: 75%;
  backface-visibility: hidden;
  animation: none;
  border: 1px solid black;
}

.back{
  backface-visibility: visible;
}

.flip{
  animation: cardFlip 5s forwards;
  animation-timing-function: ease-in;
}

.unrealCourse{
  filter: grayscale(50%);
}

.unrealCourse:hover{
  background-color: rgba(0, 255, 255, 0.05);
  filter: none;
  border: 1px solid white;
}

.unrealCourse:hover h1{
  color: orange;
}

.unrealCourse:hover{
  color: rgb(255, 239, 211);
}

.unityList{
  position: relative;
  display: grid;
  grid-template-rows: auto;
  height: 80%;
  overflow: hidden;
  font-size: 0.9em;
}

.unityList .item{
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid black;
  color: black;
  background-color: rgb(19, 21, 24);
  overflow: hidden;
  white-space: nowrap;
}

.item .left{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  clip-path: polygon(
    0 0, /* left top */
    100% 0, /* right top */ 
    70% 100%, /* right bottom */
    0 100% /* left bottom */
  );
  background-image: linear-gradient(to top right,rgb(236, 217, 8), rgb(219, 218, 187));
  animation: unityItemL 5s infinite alternate ease-in-out;
  height: 100%;
}

.item .right{
  color:white;
  position: absolute;
  right:0;
  width: 70%;
  clip-path: polygon(
    10% 0, /* left top */
    100% 0, /* right top */ 
    100% 100%, /* right bottom */
    0 100% /* left bottom */
  );
  background-image: linear-gradient(to top left,rgb(46, 46, 73), rgb(56, 87, 100));
  animation: unityItemR 5s infinite alternate ease-in-out;
  height:  100%;
}

.item h1{
  color:black;
  font-size: 1.2em;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  text-align: center;
  padding: 0.25em;
  margin-top: 2em;
  font-weight: 800;
  text-shadow: 2px 2px 5px white;
}

h2{
  color:rgb(194, 195, 201);
  font-size: 0.9em;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding-left: 35%;
  overflow: hidden;
  white-space: wrap;
}

.item img{
  position: absolute;
  left: 30%;
  width: 25%;
  height: 100%;
}

@keyframes unityItemL {
  from{
    clip-path: polygon(
      0 0, /* left top */
      95% 0, /* right top */ 
      80% 100%, /* right bottom */
      0 100% /* left bottom */
    );
  }
  to{
      clip-path: polygon(
      0 0, /* left top */
      90% 0, /* right top */ 
      78% 100%, /* right bottom */
      0 100% /* left bottom */
    );
  }
}

@keyframes unityItemR {
  from{
    clip-path: polygon(
      35% 0, /* left top */
      100% 0, /* right top */ 
      100% 100%, /* right bottom */
      30% 100% /* left bottom */
    );
  }
  to{
      clip-path: polygon(
        30% 0, /* left top */
        100% 0, /* right top */ 
        100% 100%, /* right bottom */
        26% 100% /* left bottom */
    );
  }
}

@keyframes slideLeft{
  from{
    left: -100%;
  }
  to{
    left:0%;
  }
}

@keyframes cardFlip {
  20%{
    transform: perspective(350px) rotateY(530deg) rotateZ(3deg);
    animation-timing-function: ease-in-out;
  }
  80%{
    transform: perspective(450px) rotateY(550deg) rotateZ(5deg);
    animation-timing-function: ease-in-out;
  }
  100%{
    transform: perspective(450px) rotateY(360deg) rotateZ(0deg);
    animation-timing-function: ease-in;
  }
}

@keyframes zoomOut {
  from {
      transform: scale(1.05);
      margin-top: -1.15em;
  }
  to {
      transform: scale(1,1);
      margin-top: -1.0em;
  }
}

@keyframes zoomIn {
  from {
      transform: scale(1,1);
      margin-top: -1.0em;
  }
  to {
      transform: scale(1.05);
      margin-top: -1.15em;
  }
}