/* The projects CSS */
.project {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;

  width: 90%;
  margin: 2rem auto;
  padding: 2rem 4rem;
}

.project_left {
  flex-grow: 1;
  flex-shrink: 1;
  height: auto;

  display: flex;
  flex-direction: column;
}

.project_right {
  display: flex;
  flex-shrink: 0;

  width: 20%;
  height: auto;
  overflow: hidden;
  justify-content: end;
}

.project_right img {
  image-rendering: pixelated;
  max-height: 100%;
  height: auto;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.tags {
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 1rem;
}

.tag {
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.cancelled {
  background-color: #ff000080;
  color: #ffffff;
}

.progress {
  background-color: #fffb0080;
  color: #000000;
}

.released {
  background-color: #00ff0080;
  color: #ffffff;
}

.modal_bottom a {
  text-decoration: none;
}

.project_contents {
  margin-top: -0.5rem;
  text-align: left;
  color: #000000;
}

.project_contents h1 {
  font-size: var(--subtitle-size);
}

.project_bottom {
  flex-grow: 1;

  display: flex;

  align-items: end;
}

.project_learnmore {
  height: auto;
  padding: 0.5rem 0.75rem;
  width: fit-content;
  text-align: left;

  font-size: var(--text-size);

  border: 2px solid #ffffff;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;

  cursor: pointer;
  transition: all 0.5s;
}

.project_learnmore:hover {
  background-color: #ffffff;
  color: #000000;
}

.project_infos {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(7.5px);
}

.project_colorbg {
  max-height: 85%;
  overflow-y: auto;
  border-radius: 25px;
  margin: 5% auto;
  width: 80%;
  height: 100%;
}

.project_bg {
  max-height: 100%;
  overflow-y: auto;
  border-radius: 25px;
  padding: 0 1rem;
  background-color: #1a1a1ae0;
  height: 100%;
}

.close {
  color: #ffffff;
  float: right;
  font-size: 45px;
  font-weight: bold;
  transition: all 0.3s;
}

.close:hover,
.close:focus {
  color: #ff0000;
  text-decoration: none;
  cursor: pointer;
}

.project_modal {
  overflow: auto;
  padding: 2.5rem;
}

.project_modal p {
  font-size: var(--text-size-big);
  font-family: var(--main-font-m);

  padding: 3rem;

  color: #a1a1a1;
}

.project_modal h1 {
  font-size: var(--title-size);

  color: #ffffff;
  font-family: var(--main-font-b);
}

.project_modal img {
  margin: 2rem 0;
  width: 60%;
  border: 0;
  border-radius: 25px;

  transition: all 0.5s;
}

.project_modal img:hover {
  scale: 1.1;
  border-radius: 25px;
}

.project_modal .youtube_player,
.project_modal .video_wrapper {
  width: 60%;
}

.modal_bottom {
  margin-top: 1rem;

  padding: 2.5rem;

  display: flex;
  justify-content: end;
  gap: 1rem;
}

/* The projects page CSS */
.title {
  font-size: var(--title-size);
  font-family: var(--main-font);
}

.subtitle {
  font-size: var(--subtitle-size);
  font-family: var(--main-font-l);
}

@media (max-width: 800px) {
  .project {
    width: 100%;
    box-sizing: border-box;
  }

  .project_contents {
    line-break: auto;
  }

  .project_colorbg {
    max-height: 95%;
  }

  .modal_bottom {
    flex-wrap: wrap;
  }

  .project_modal img,
  .project_modal .youtube_player,
  .project_modal .video_wrapper {
    width: 80%;
  }
}
