#portfolio{
  min-height:100vh;
  width: 100%;
  margin: auto;
  padding-left: 63px;
  display:flex;
  padding-top: 10px;
}

#projectcenter{
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  width: 80%;
  max-width: 1500px;
  height: 50%;
  margin: auto;
  padding: auto;
  padding-top: 90px;
  align-items: center;
}

#cardcontainer{
  min-width:350px;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

#cardcontainer a{
  text-decoration: none;
}

#moretocome{
  margin: auto;
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
  padding: 15px;
  animation: textcolorswitch 3s linear infinite;
}

#projectcard{
  border-radius: 40px;
  min-width: 300px;
  min-height: 150px;
  max-width: 300px;
  margin: auto;
  position: relative;
  display: flex;
  justify-content:flex-start;
  align-items:flex-start;
  flex-wrap: wrap;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0px);
}

 #projectcard .project-icon{
  position: absolute;
  top:0;
  right: 0;
  margin-top: 15px;
  margin-right: 15px;
  min-width: 40px;
  min-height: 40px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 30px);
  display: flex;
}
#projectcard .project-icon svg{
  margin: auto;
  max-width: 40px;
  max-height: 40px;
  z-index: 5;
}

 #projectcard .project-icon p{
   min-width: 100px;
   position: absolute;
   left:-70px;
   margin-top: 6.5px;
   font-size: 1.2em;
   font-weight: bolder;
   color: white;
   text-shadow: 1px 1px 2px black;
   text-align: right;
   /*animation: rightdisappear 0.5s linear;*/
   z-index: 4;
 }

#projectcard .project-icon-ide{
  position: absolute;
  top:0;
  right: left;
  margin-top: 15px;
  margin-left: 15px;
  min-width: 40px;
  min-height: 40px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 30px);
}

#cardblock{
  width: 100%;
  padding-bottom: 20px;
  background-color: var(--light-primary-color);
  border-radius: 38px;
}

#cardblock *{
  line-height: 1.5em;
  width: 90%;
  margin: auto;
  margin-bottom: 10px;
}

#project-cover{
  border-radius: 38px 38px 0px 0px;
  background-color: red;
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  margin-top: -1px;
  margin-left: -1px;
  margin-bottom: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 1px);
}

#project-cover img{
  border-radius: 38px 38px 0px 0px;
  width: 100%;
  margin: auto;
}

#project-title{
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.3em;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 30px);
}

#cardblock * p{
  font-weight: normal;
  font-size: 1em;
}

#cardblock * p span{
  margin-top:15px;
  font-size: 0.95em;
  font-style: italic;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 10px);
}

#project-text{
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 20px);
}

#project-role{
  font-weight: bold;
  font-size: 1.1em;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 30px);
}

#project-btn{
  max-width: 100px;
  margin: auto;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 40px);
  padding: 5px;
  border-radius: 5px;
}

#project-btn p{
  width: 100%;
  font-size: 1em;
  font-weight: bolder;
  text-align: center;
  margin: auto;
}

#cardcontainer:hover{
}

#projectcard:hover #project-btn{
  animation: backgroundcolorswitch 3s linear infinite;
}
#projectcard:hover #project-btn p{
  color: white;
  animation: none;
}

#projectcard:hover .project-icon p{
  visibility: visible;
  /*animation: rightappear 0.5s linear;*/
}
@keyframes rightappear {
0%{
  left:0px;
  opacity:0;
}
50%{
  opacity: 0;
}
100%{
    left:-70px;
    opacity: 1;
  }
}
@keyframes rightdisappear {
0%{
  visibility: visible;
  left:-70px;
  opacity: 1;
}
50%{
  opacity: 0;
}
100%{
    left:0px;
    opacity:0;
    visibility: hidden;
  }
}
