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


/* Custom Properties */
:root {
  --color-white:white;
  --color-black: black;
  --color-purple: rgb(61, 1, 61);
  --color-blue: rgb(0, 119, 230);
}

@font-face {
  font-family: Naruto;
  src: url(../fonts/njnaruto.ttf) format('opentype');
}

/* Algemene styling */
h1 {
  color:var(--color-white);
}

body {
  background-image: url("../images/naruto_background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  backdrop-filter: brightness(70%);
  height: auto;
  border: none;
  margin: 0;
  display: flex;
  flex-flow: column;
  overflow: hidden;
}

main {
  flex: 1;
}

ul li{
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

/* Button geen styling  https://stackoverflow.com/questions/2460100/remove-the-complete-styling-of-an-html-button-submit*/
button {
  background: none;
  color: inherit;
  border: none;
  font: inherit;
  outline: inherit;
  cursor: pointer;
}

/* Logo */
header img {
  height: 5em;
  width: 10em;
}
header{
  margin: 1em;
  display: flex;
  justify-content: center;
}


/* MAIN */
/* mainscreen */
section h1 {
  font-size: 6vw;
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 1px var(--color-black);
  margin: 0;
}

section p:first-of-type{
 font-family: poppins, Arial, Helvetica, sans-serif;
 font-size: 1.2em;
 font-weight:600;
 width: 40%;
 text-align: center;
}

section p:last-of-type{
  font-family: poppins, Arial, Helvetica, sans-serif;
  font-size: 1.2em;
  font-weight:700;
  width: 40%;
  text-align: center;
 }

body > section:first-of-type {
  position: absolute;
  display: flex;
  width: 100vw;
  height: 100vh;
  z-index: 6;
  background-image: url("../images/lucht_achtergrond.jpg");
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

body > section:first-of-type.hidden_section{
  display: none;
}

section img {
  width: 10vw;
}

/* Information Sasuke Uchiha */
.Information {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-rows: 80px 1fr;
  grid-column-gap: 30px;
  height: auto;
}

.Information h1 {
  display: flex;
  font-size: 1.5em;
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 1px var(--color-black);
  align-items: center;
  margin-left: 1.5em;
}

.Information h2{
  display: flex;
  color:var(--color-white);
  font-family: poppins, Arial, Helvetica, sans-serif;
  font-size: 1.5em;
  align-items: center;
}

.Information p {
  font-family: poppins, Arial, Helvetica, sans-serif;
  margin: 0 2em 2em 0;
  color:var(--color-white);
  font-size: 1.2em;
}

.TextBox{
  width: auto;
  height: 150px;
  overflow-y: auto;
  margin-bottom: 2em;
  margin-right: 2em;
}

video {
  margin: 0 2em 0 2em;
}


ul {
  display: grid;
  grid-template-columns: 1fr 50% 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 2em;
  height: 88vh;
  margin: 0;
  padding: 0;
}

/* Grootte van de circles(Sharingan) */
li img {
width: 8em;
}

/* Sasuke Uchiha */
ul li:nth-of-type(2) {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  align-items: center;
  color:var(--color-white);
  text-align: center;
}

ul li:nth-of-type(2) img:nth-of-type(3) {
  position: absolute;
  width: 34em;
}
/* Sharingan Sasuke Uchiha links */
ul li:nth-of-type(2) img:nth-of-type(1){
  position: relative;
  top: 281px;
  left: -68px;
  width: 28px;
  
}
/* Sharingan Sasuke Uchiha rechts */
ul li:nth-of-type(2) img:nth-of-type(2){
  position: relative;
  top: 253px;
  left: 68px;
  width: 28px;
}

/* Alle ogen */
ul li:nth-of-type(1) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 2px var(--color-black);
  align-items: center;
  color:var(--color-white);
  text-align: center;
  font-size: 1.2em;
}

ul li:nth-of-type(3) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 2px var(--color-black);
  align-items: center;
  color:var(--color-white);
  text-align: center;
  font-size: 1.2em;
}

ul li:nth-of-type(4) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 2px var(--color-black);
  align-items: center;
  color:var(--color-white);
  text-align: center;
  font-size: 1.2em;
}

ul li:nth-of-type(5) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 2px var(--color-black);
  align-items: center;color:var(--color-white);
  text-align: center;
  font-size: 1.2em;
}

ul li:nth-of-type(6) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 2px var(--color-black);
  align-items: center;
  color:var(--color-white);
  text-align: center;
  font-size: 1.2em;
}

ul li:nth-of-type(8) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  -webkit-text-stroke: 2px var(--color-black);
  align-items: center;
  color:var(--color-white);
  text-align: center;
  font-size: 1.2em;
}

/* Informatie */
ul li:nth-of-type(7) {
  font-family: Naruto, Arial, Helvetica, sans-serif;
  border-radius: 20px;
  background-color: var(--color-purple);
  z-index: 1;
  border: 8px solid var(--color-white);
  outline: 8px solid var(--color-black);
}

button:nth-of-type(1) img:nth-of-type(1),button:nth-of-type(1) img:nth-of-type(2), button:nth-of-type(1) img:nth-of-type(3) {
  position: absolute;
}

button:nth-of-type(1):hover img {
  animation-name:Sharingan-rotate;
  animation-duration:2s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
}
@keyframes Sharingan-rotate {
  0% {
    transform:rotate(0deg);
  }
  85%{
    transform: rotate(360deg);
  }

  100% {
    transform:rotate(360deg);
  }
}

button:nth-of-type(1):hover img:nth-of-type(1) {
  opacity:1;
  animation-delay:0s;
}

button:nth-of-type(1):hover img:nth-of-type(2) {
  opacity: 0.5;
  animation-delay:0.05s;
}

button:nth-of-type(1):hover img:nth-of-type(3) {
  opacity: 0.25;
  animation-delay:0.1s;
}

button:nth-of-type(1):hover img:nth-of-type(4) {
  opacity: 0.175;
  animation-delay:0.15s;
}



/* Sasuke Sharingan draaien algemeen*/
.RotateSharingan {
  animation-name:SharinganRotateSasuke;
  animation-duration:1.5s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
}
@keyframes SharinganRotateSasuke {
  0% {
    transform:rotate(0deg) scale(1.6);
  }
  85%{
    transform: rotate(3turn) scale(1);
  }
  100% {
    transform: rotate(3turn) scale(1);
  }
}

/* 3. Vuur effect */
.fire {
  opacity: 0;
  position: relative;
  width: 200px;
  top: 220px;
  z-index: 5;
}

.fire_change {
  animation-name:FireMouth;
  animation-duration: 4s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
  animation-delay: 1s;
}
@keyframes FireMouth {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  30% {
  }
  50%{
    transform: scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(120);
  }
}

/* 4. Blood effect + Rechter oog */
.blood {
  opacity: 0;
  position: relative;
  width: 70px;
  top: 55px;
  left: 70px;
  z-index: 1000;
}

.blood_change {
  animation-name:Bloodeye;
  animation-duration: 3s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
  animation-delay: 1s;
}
@keyframes Bloodeye {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.RotateSharinganRightEye {
  animation-name:SharinganRotateRightEyeSasuke;
  animation-duration:5s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
}
@keyframes SharinganRotateRightEyeSasuke {
  0% {
    transform:rotate(0deg) scale(1);
  }
  20%{
    transform:rotate(4turn) scale(1)
  }
  50%{
    transform: rotate(6turn) scale(2);
  }
  100% {
    transform: rotate(4turn) scale(1);
  }
}

/* 3. Kunai */
.kunai {
  opacity: 0;
  position: relative;
  width: 100px;
  top: -100px;
  z-index: 2000;
}

.kunai_change {
  animation-name:Kunai;
  animation-duration: 4s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
  animation-delay: 1s;
}
@keyframes Kunai {
  0% {
    opacity: 1;
    transform: perspective(300px) rotatex(70deg) translateY(500px);
  }
  25% {
    opacity: 1;
    transform: perspective(300px) rotatex(70deg) translateY(-500px);
  }
  30% {
    opacity: 1;
    transform: perspective(300px) rotatex(70deg) translateY(-500px) rotateZ(180deg);
  }
  40% {
    opacity: 1;
    transform: perspective(300px) rotatex(70deg) translateY(-500px) rotateZ(180deg);
  }
  50% {
    opacity: 1;
    transform: perspective(300px) rotatex(70deg) rotateZ(180deg) translateY(-500px);
  }
  75%{
    opacity: 1;
    transform: perspective(300px) rotatex(70deg) rotateZ(180deg) translateY(-500px);
  }
  100% {
    opacity: 0;
    transform: perspective(300px) rotatex(70deg) rotateZ(180deg) translateY(-500px);
  }
}

/* 5. Susanoo */
.susanoo {
  opacity: 0;
  position: relative;
  width: 750px;
  top: 400px;
  z-index: 1;
}

.susanoo_change {
  animation-name:Susanoo;
  animation-duration: 4s;
  animation-iteration-count:1;
  animation-timing-function:cubic-bezier(.69,.19,.18,.87);
  animation-delay: 1s;
}
@keyframes Susanoo {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.8;
    transform: translateY(-1100px);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-1100px);
  }
  100% {
    opacity: 0;
    transform: translateY(-500px);
  }
}

/* 6. Teleport */
.sasukeUchihaMiddle {
  opacity: 1;
}

.sasukeUchihaMiddle_change {
  animation-name:teleport;
  animation-duration: 4s;
  animation-iteration-count:1;
  animation-delay: 1s;
}
@keyframes teleport {
  0% {
    opacity: 0;
    transform: translateY(-1000px);
  }
  10%{
    opacity: 0;
    transform: translateY(-200px) rotate(180deg);
  }
  20%{
    opacity: 1;
    transform: translateY(-200px) rotate(180deg);
  }
  30%{
    opacity: 0;
    transform: translateY(-200px) rotate(180deg)
  }
  40% {
    opacity: 0;
    transform: translateX(0px) rotate(0deg)
  }
  50% {
    opacity: 1;
    transform: translateX(0px) rotate(0deg)
  }
  60%{
    opacity: 0;
    transform: translateX(0px) rotate(0deg)
  }
  70%{
    opacity: 0;
    transform: translateY(-200px) rotate(180deg);
  }
  80%{
    opacity: 1;
    transform: translateY(-200px) rotate(180deg);
  }
  90%{
    opacity: 0;
    transform: translateY(-200px) rotate(180deg);
  }
  100% {
    opacity: 0;
  }
}


/* @Media voor kleinere scherm */
@media only screen and (max-width: 1900px) {
  .Information h2 {
    font-size: 1.2em;
  }
  .Information p {
    font-size: 0.8em;
  }
  .kunai {
    opacity: 0;
    position: relative;
    width: 100px;
    top: -100px;
    z-index: 2000;
  }
}

@media only screen and (max-height: 900px) {
  ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  }
  li img {
    width: 6em;
  }
}

/* Scrollbar design */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4); 
  border-radius: 8px;
  -webkit-border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: var(--color-white); 
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

/* Easteregg */
.naruto {
  position: absolute;
  opacity: 0;
  top: 150px;
  width: 400px;
  z-index: -10;
}

.naruto_change {
  animation-name:easteregg;
  animation-duration: 4s;
  animation-iteration-count:1;
  animation-delay: 3s;
  /* Draai vanaf onderkant */
  transform-origin: bottom;
}
@keyframes easteregg {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: rotate(50deg);
  }
  80% {
    opacity: 1;
    transform: rotate(-50deg);
  }
  100% {
    opacity: 1;
  }
}