*{
  margin: 0;
  padding: 0;
}
h1{
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 4vw;
}
.page{
  background-image: url("../img/fcdk_bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 102.5%;
  width: 100vw;
  height: 100vh;
  perspective: 100px;
}
.cont{
  position: fixed;
  top: 15%;
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}
.y_link{
  font-size: 1.8vw;
  text-align: center;
  width: 10%;
  margin-bottom: .7%;
  align-self: center;
  border-radius: 1em;
  text-decoration: none;
  color: white;
  background-color: rgba(0, 155, 255, 0.7);
  box-shadow: 0 0 5px grey;
}
.year{
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  perspective: 100px;
  background-color: rgba(0, 0, 0, 0.7);
  transition: all .5s ease;
}
.year:target{
  display: block;

}
.close{
  position: absolute;
  font-size: 2em;
  right: 1%;
  top: 1%;
  color: red;
}
.table{
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  width: 43vw;
  height: 24vh;
  transform: translateX(-50%);
  left: 50%;
  background-color:rgba(0, 155, 255, 0.5);
  font-size: 2.5vw;
  color: white;
}
.table>img{
  width: 20%;
  height: 30%;
}
.table>span{
  width: 10%;
  text-align: center;
  text-shadow: 0 0 2px black;
}
.place{
  position: relative;
  justify-content: space-around;
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  left: 50%;
  width: 80%;
  height: 100%;
  background-image: url("../img/Boisko.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  transform-origin: bottom;
  perspective: 100px;
  animation: pl 1s linear forwards;
}
.goalie,.defender,.midfield,.forward{
  display: flex;
  position: relative;
  flex-wrap: wrap-reverse;
  justify-content: center;
  top: 9%;
  width: 90%;
  transform: rotateX(-3.5deg);
  transform-origin: bottom;
  opacity: 0;
}
.goalie{
  z-index: -1;
  top:0;
  animation: op 1s ease 1s forwards;
}
.defender{
  z-index: -2;
  top: 4%;
  animation: op 1s ease 1.5s forwards;
}
.midfield{
  z-index: -3;
  animation: op 1s ease 2s forwards;
}
.forward{
  z-index: -4;
  animation: op 1s ease 2.5s forwards;
}
.player{
  position: relative;
  color: yellow;
  font-size: 4vw;
  width: 8vw;
  text-align: center;
  perspective: 100px;
  cursor: pointer;
}
.player:hover{
  z-index: 1;
}
.player:hover .stat{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.number{
  color: white;
  font-size: 1.5vw;
  position: absolute;
  top:25%;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 3px black;
}
.stat{
  display: none;
  width: 110%;
  height: 90%;
  position: absolute;
  top: -95%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: .2em;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 0 15px black;
  color: grey;
}

.fa-tshirt{
  text-shadow: 0 0 10px black;
}
.blue{
  color: blue;
}
.name{
  text-shadow: 0 0 1px black;
  color: black;
  font-size: .7ex;
}
.goals, .game, .minuts, .Rcard, .Ycard, .fa-stopwatch{
  margin: 0 4%;
}
.ball{
  margin-left: 1%;
  font-size: .35em;
  position: relative;
  bottom: -9%;
}
.Rcard, .Ycard{
  position: relative;
  width: 10%;
  height: 25%;
  background-color: red;
}
.Ycard{
  background-color: yellow;
}
img{
  width: 20%;
}

@keyframes pl {
  0%{transform: rotateX(0) translateX(-50%); }
  100%{transform: rotateX(5deg) translateX(-50%);}
}
@keyframes op {
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}
