/* The main css for the projects page */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dflex {
  display: flex;
}

.desktoponly {
  display: none;
}

.font-fam {
  font-family: 'Inter', sans-serif;
  font-style: normal;
}

.project-popup {
  font-family: 'Inter', sans-serif;
  height: 100%;
  width: 90%;
  padding: 16px;
  top: 50%;
  left: 50%;
  position: fixed;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  background-color: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 16px;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: 0.5s ease-in-out;
  overflow-y: scroll;
}

.project-popup.active {
  transform: translate(-50%, -50%) scale(1);
}

.overlay {
  background-color: #979493;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.close {
  position: absolute;
  float: right;
  background-color: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
  outline: none;
  display: block;
  margin-left: 80%;
  border-radius: 100%;
}

.project-popup h1 {
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
  color: #172b4d;
  text-align: start;
  padding-right: 68px;
}

.img-placeholder {
  width: 100%;
  height: 50%;
  border-radius: 8px;
}

.img-placeholder img {
  width: 100%;
  border-radius: 8px;
}

.prj-lang {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.lang {
  padding: 8px 12px;
  background-color: #ebf0ee;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.03em;
  color: #3a4a42;
  outline: none;
  border: none;
}

.dets {
  text-align: start;
}

.dets h2 {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #344563;
  padding: 0.5rem;
}

.pop-buttons {
  flex-direction: row;
  border-radius: 4px;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.pop-buttons a {
  text-decoration: none;
  background-color: #36b37f;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0 5px 0 5px;
  gap: 12px;
  width: 141px;
  height: 48px;
  left: 0;
  top: 4px;
  border-radius: 4px;
}

.pop-buttons a button {
  font-family: 'Inter', sans-serif !important;
  all: initial;
  border: none;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  color: #fff;
}

.pop-buttons a button:hover {
  background-color: transparent !important;
}

@media screen and (min-width: 768px) {
  .dflex {
    display: flex;
  }

  .project-popup {
    font-family: 'Inter', sans-serif !important;
    width: 65%;
    background-color: #fff;
    border: 1px solid #dfe1e6;
    border-radius: 16px;
    flex-direction: column;
    top: 50%;
    left: 50%;
    position: fixed;
    align-items: flex-start;
    gap: 12px;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: 0.5s ease-in-out;
  }

  .project-popup.active {
    transform: translate(-50%, -50%) scale(1);
  }

  .img-placeholder {
    width: 812px;
    height: 616px;
    border-radius: 8px;
  }

  .img-placeholder img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
  }

  .overlay {
    background-color: #979493;
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .close {
    position: relative;
    background-color: #ebecf0;
    cursor: pointer;
    display: flex;
    float: right;
  }

  .project-popup h1 {
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    color: #172b4d;
    text-align: start;
    flex-basis: 60%;
  }

  .prj-lang {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .lang {
    padding: 8px 12px;
    background-color: #ebf0ee;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.03em;
    color: #3a4a42;
    outline: none;
    border: none;
  }

  .dets {
    text-align: start;
  }

  .dets h2 {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #344563;
  }

  .pop-buttons {
    display: none;
  }

  .btn {
    border: none;
    font-weight: 500;
    font-size: 17px;
    text-align: center;
    background-color: #36b37f;
    color: #fff;
  }

  .desktoponly {
    text-decoration: none;
    font-family: 'Inter', sans-serif !important;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0 5px 0 5px;
    gap: 20px;
    width: 141px;
    flex-basis: 40%;
  }

  .desktoponly a:hover {
    cursor: pointer;
  }

  .desktoponly a button:hover {
    cursor: pointer;
  }

  .content {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
  }
}
