#projectTemplate {
  opacity: 0;
}

#projectWrapper {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
/*  max-width: 88vw;*/
  padding-top: 20px;
  width: 90%;
  max-width: 90%;

  z-index: 2;
}

#lowerWrapper {
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 2;
  background-color: var(--lighter_1);
  max-width: 100vw;
  width: 100%;
}

.project {
  position: relative;

  margin: 10px;
  width: 400px;
  box-shadow: 0px 0px 7px var(--shadow);
  transition: all .2s;
  opacity: 0;

  background-color: var(--lighter_2);
}

.project:hover  {
  transform: scale(1.05);
  z-index: 10;
}
.project:hover {
  box-shadow: 0px 0px 10px var(--shadow);
}

.project > .langDisplay {
  width: 100px;
  height: 100px;
  position: absolute;
  z-index: 2;

  visibility: hidden;
}

.project > .langDisplay:before {
  content: '';
  display: block;
  position: absolute;

  width: 100%;
  height: 100%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);

  border-radius: 20px;

  z-index: 2;
}

.project > .langDisplay:after {
  content: '';
  display: block;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30%;
  height: 30%;

  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;  

  z-index: 2;
}

.project > .projectStateContainer > .projectState {
  display: inline-block;
  position: relative;
  font-size: 10pt;
  font-family: 'Comfortaa';
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  top: 40%;
  left: 40%;
  padding: 5px;
  white-space: nowrap;
  width: 141%;
  text-align: center;
  z-index: 2;
}

/* Project state container's border is part of info-marker in indev projects  */
.project > .projectStateContainer:after {
  content: '';
  position: absolute;
  display: inline-block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  box-sizing: border-box;

  z-index: 1;

  border-right: 20px solid transparent;
  border-bottom: 20px solid transparent;

  border-color: transparent;
}

.project > .projectStateContainer {
  width: 100px;
  height: 100px;
  position: absolute;
  top: -10px;
  left: -10px;
  overflow: hidden;
}

.indevState:after {
  border-color: var(--indev-back) !important;
}
.pausedState:after {
  border-color: var(--paused-back) !important;
}

.inDevState > .projectState {
  background-color: var(--indev-fore);
}

.pausedState > .projectState {
  background-color: var(--paused-fore);
}


#projectLoaderList {
  position: absolute;
  left: 50%;
  min-width: 200px;
  max-width: 200px;
  padding: 0; 

  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  flex-direction: row;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;

  list-style-type: none;
}

#projectLoaderItem {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: var(--text-color);
  animation: fade 1s infinite;
}

#projectLoaderItem:nth-child(0) {
  animation-delay: 0;
}
#projectLoaderItem:nth-child(1) {
  animation-delay: .3s;
}
#projectLoaderItem:nth-child(2) {
  animation-delay: .6s;
}

@keyframes fade {
  0% {
    background-color: var(--lighter_4);
  }
  50% {
    background-color: var(--lighter_2);
  }
  100% {
    background-color: var(--lighter_4);
  }
}

.projectContent {
  position: relative;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;

  background-color: var(--lighter_1);

  max-width: 400px;
  overflow: hidden;
}

.projectImgContainer {
  height: 300px;
  width: 100%;
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
}

.projectImg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  left: 50%;
  transition: all .2s;
}

.projectTextContainer {
  width: 100%;
  bottom: 0;
  height: 120px;
  position: relative;
  background: inherit;
  z-index: 1;
}

.projectText {
  left: 20px;
  right: 20px;
  position: absolute;
  bottom: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0px 0px 5px var(--shadow);
}

.projectName {
  font-size: 15pt;
  font-family: 'Comfortaa';
  color: var(--text-color);
  margin-bottom: 5px;
}

.projectDescription {
  font-size: 9pt;
  font-family: 'Comfortaa';
  color: var(--text-color);
  width: 100%;
}

@media screen and (max-width: 640px) {
  #lowerWrapper {
    flex-direction: column;
    align-items: center;
  }

  #projectWrapper {
    margin-left: 10px;
    margin-right: 10px;
    max-width: unset;
    width: 100% !important;
    margin: 0 !important;
  }
}
