@keyframes project-panel {
  0% { clip-path: polygon(
      0 570px, 0 570px, 200px 570px, 200px 570px,
      400px 570px, 400px 570px, 600px 570px, 600px 570px,
      800px 570px, 800px 570px, 1000px 570px, 1000px 570px,
      1500px 1000px, 1500px -500px, /*connecting piece*/
      1000px 0, 1000px 0, 800px 0, 800px 0,
      600px 0, 600px 0, 400px 0, 400px 0,
      1600px -600px, 1600px 1100px /*connecting piece*/
      ); }
  100% { clip-path: polygon(
        0 570px, 200px 0, 400px 0, 200px 570px,
        400px 570px, 600px 0, 800px 0, 600px 570px,
        800px 570px, 1000px 0, 1200px 0, 1000px 570px,
        1500px 1000px, 1500px -500px, /*connecting piece*/
        1000px 0, 800px 570px, 600px 570px,800px 0,
        600px 0, 400px 570px, 200px 570px,400px 0,
        1600px -600px, 1600px 1100px /*connecting piece*/
    ); }
}

.projectitem {
  width: auto;
  position: relative;
  overflow: hidden;
  transition: linear-gradient 1s;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: #090a1c;
  scroll-snap-align: start;
  text-align: center;
  position: relative;
}

.projectitem p {
  position: relative;
 margin-left: 5px;
  font-size: 1em;
  text-align: justify;
  font-family: opensans, Verdana, Geneva, sans-serif;
  max-width: 500px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.projectitem .pbackdrop {
  /*background: #1e1a1a;*/
    background-color: #BB0000;
  	content: "";
  	position: absolute;
  	max-width: 1200px;
  	width: 100%;
  	height: 100%;
  	max-height: 500px;

    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);

    z-index: 2;
  	background-position: center;
  	background-repeat: no-repeat;
  	background-size: cover;

    opacity: 0.4;

  transition:
    clip-path 1s, opacity 1s;
  clip-path: polygon(
        0 570px, 200px 0, 400px 0, 200px 570px,
        400px 570px, 600px 0, 800px 0, 600px 570px,
        800px 570px, 1000px 0, 1200px 0, 1000px 570px,
        1500px 1000px, 1500px -500px, /*connecting piece*/
        1000px 0, 800px 570px, 600px 570px,800px 0,
        600px 0, 400px 570px, 200px 570px,400px 0,
        /*200px 0, 0px 570px, -200px 570px, 0px 0,*/
        1500px -600px, 1500px 1100px /*connecting piece*/
    );
}

.phidden .pbackdrop {
  opacity: 0;
  clip-path: polygon(
      0 570px, 0 570px, 200px 570px, 200px 570px,
      400px 570px, 400px 570px, 600px 570px, 600px 570px,
      800px 570px, 800px 570px, 1000px 570px, 1000px 570px,
      1500px 1000px, 1500px -500px, /*connecting piece*/
      1000px 0, 1000px 0, 800px 0, 800px 0,
      600px 0, 600px 0, 400px 0, 400px 0,
      /*200px 0, 200px 0, 0px 0, 0px 0,*/
      1500px -600px, 1500px 1100px /*connecting piece*/
    );
}

.textcontent {
  position: relative;
  max-width: 600px;
  min-width: 400px;
  height: 100%;
  z-index: 50;
  margin-left: 1em;
  margin-right: 1em;
  overflow-x: visible;
}

.imagecontent {
  position: relative;
  max-width: 600px;
  min-width: 400px;
  height: 100%;
  z-index: 50;
  margin-left: 1em;
  margin-right: 1em;
  overflow-x: visible;
}



.pheader {
  width: 100%;
  top: 50px;
  z-index: 50;
  margin-top: 0px;
  /*outline: solid 2px red;*/
}
.pheader h1 {
  margin-top: 0px;
  color: #55ddaaff;
}




.narrowprojectarea {
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 500px;
  top: 55%;
  -ms-transform: translateY(-55%);
  transform: translateY(-55%);
  display: flex;
  justify-content: center;
}

.narrowprojectarea .pglow {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  max-height: 500px;
  margin: 0;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  z-index: 0;
  opacity: 0;
  background-image: linear-gradient(to top, #090a1c, #11111c, #090a1c);
    transition:
      opacity 0.2s;
}

.narrowprojectarea:hover .pglow {
  opacity: 1;
  z-index: 0;
}

/*@media screen and (max-width: 800px) {
  .narrowprojectarea {
    max-height: 1000px;
    background-color: green;
  }

  .itembox {
    flex-direction: column;
  }

  .projectitem {
    height: 200vh;
  }
}*/
