.ProjectDetailsContainer {
  display: none;
  align-items: center;
  justify-content: center;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #2e2e2e9c;
  z-index: 3;
}

.ProjectDetailsContainer.Active {
  display: flex;
  animation: slideDown 200ms ease-out;
}

.ProjectDetailsContainer.Hiding {
  display: flex;
  animation: slideUp 110ms ease-out both;
}

@keyframes slideUp {
  0% {
    opacity: 1;
    margin-top: 0;
  }
  100% {
    opacity: 0.5;
    margin-top: -2rem;
  }
}

@keyframes slideDown {
  0% {
    opacity: 0.5;
    margin-top: -2rem;
  }
  100% {
    opacity: 1;
    margin-top: 0;
  }
}

.ProjectDetails {
  position: relative;
  width: 90%;
  height: 90%;
  min-width: 25rem;
  
  border-radius: 8px;
  background-color: #455763;
  color: white;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding: 2rem 3.5rem;
  overflow: auto;
}

.CloseProjectDetailsButton {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background-color: transparent;
  padding: 0.5rem 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  font-size: 2rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: white;
  cursor: pointer;
}

.ProjectDetailsName {
  font-size: 2rem;
  font-weight: 300;
  font-family: 'Lato', sans-serif;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid white;
  margin-bottom: 2rem;
}

.CarouselContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.Carousel {
  display: flex;
  width: 80%;
  max-width: 44rem;
  height: auto;

  justify-content: stretch;
  align-items: center;
}

.CarouselArrowButton {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1%;

  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 2rem;

  cursor: pointer;
  transition: background-color 0.6s ease;
}

.CarouselArrowButton:hover,
.CarouselArrowButton:active {
  background-color: #0000003f;
}

.CarouselImageMask {
  position: relative;
  overflow: hidden;

  flex-grow: 1;
  width: 72vw;
  
  max-width: 40rem;
  max-height: 30rem;
  min-width: 13.5rem;
}

.CarouselImage {
  height: 100%;
  width: 100%;
  padding: 0 0.5rem;

  position: absolute;

  transition: left 500ms ease-in-out;

  display: none;
}

.CarouselImage img {
  width: 100%;
  height: 100%;
}

.CarouselImage.Active {
  display: block;
  top: 0;
  left: 0;
}

.CarouselImage.Right {
  display: block;
  left: 100%;
}

.CarouselImage.Left {
  display: block;
  left: -100%;
}

/* The dots/bullets/indicators */
.ImageDot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 1rem 2px;
  background-color: #717171;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.ImageDot.Active, .ImageDot:hover {
  background-color: #bbb;
}


.ProjectDetailsDescription {
  font-weight: 300;
  line-height: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ProjectDetailsDescription p {
  margin-bottom: 1rem;
  text-align: center;
}

.ProjectDetailsDescription h2 {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid white;
}

.ProjectDetailsDescription ul {
  display: inline-block;
  margin: auto;
  padding-left: 2rem;
  width: 70%;
  max-width: 40rem;
  text-align: left;
}

.ProjectDetailsDescription li {
  margin-bottom: 0.5rem;
}

.ProjectDetailsDescription a,
.ProjectDetailsDescription a:visited {
  color: #aaa;
}

.ProjectDescriptionLink {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: #0f274d;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  cursor: pointer;
}

.ProjectDescriptionLink i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.ProjectDescriptionLink:hover,
.ProjectDescriptionLink:active {
  background-color: #13366e;
}

@media(max-width: 38rem) {
  .ProjectDetails {
    padding: 2rem 1.5rem;
  }
}