/* Project preview */

.windowContent.projects{
  color: #3e3e3e;
  padding: 30px 30px;

  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
}

.windowContent.projects:hover{
  scrollbar-color: #afafaf transparent;
}

@media (hover: none) {
  .windowContent.projects {
    scrollbar-color: #afafaf transparent;
  }
}

.toolsContainer{
  margin-bottom: 20px;
}

.toolsHeader{
  margin-top: 0px;
}

.projectCards{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projectContainer{
  padding-bottom: 30px;
  box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.15);
}

.projectPreview{
  display: flex;
  gap: 30px;
}

.projectImgContainer{
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.12s;
  width: max-content;
}

.projectImg{
  width: 274px;
  height: 191px;
  border-radius: 8px;
}

.projectDescription{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -7.5px;
}

.projectHeading{
  margin: 0px;
  color:#f59300;
  font-weight: 500;

  transition: color 0.2s;
}

.projectDescriptionText{
  line-height: 1.2;
}

.afterDescription{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -15px;
}

.githubLink{
  padding: 10px 25px;
  background-color: #fff8e0;
  border-radius: 6px; 
  color: #f59300;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 40px;
  min-width: fit-content;

  transition: opacity 0.1s, transform 0.1s,
              color 0.2s, background-color 0.2s;
}

.githubLink:active{
  transform: translateY(1px);
  box-shadow: none;
}

.toolsList{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolName{
  border-radius: 5px;
  box-shadow: 0px 2px 1px 1px rgba(0, 0, 0, 0.15);
  padding: 5px;
  font-size: 1.05rem;

  transition: transform 0.1s, box-shadow 0.2s;
}

@media (max-width: 1280px) {
  .projectPreview{
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .projectImg{
    width: clamp(577px, 55vw, 700px);
    height: auto;
  }
  .projectImgContainer:hover{
    transform: scale(1.01);
  }
  .afterDescription{
    margin-top: 0px;
  }
}

/* Image View */

.imageViewer{
  position: fixed;
  inset: 0px 0px 0px 0px;
  background-color: #3e3e3ece;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.imageViewer.shown{
  opacity: 1;
  pointer-events: auto;
}

.imageView{
  width: 75vw;
}

.viewSign{
  color: white;
  font-size: 1.2rem;
  font-weight: 400;
  font-family: Montserrat;
}

.viewInstructions{
  color: rgb(232, 232, 232);
  font-family: Montserrat;
}

.textLinks{
  color: #f59300;
  text-decoration: underline;

  transition: color 0.2s;
}

@media (max-width: 700px) {
  .githubLink{
    font-size: 0.9rem;
    padding: 9px 15px;
  }
}

@media (max-width: 620px) {
  .projectImg{
    width: clamp(380px, 90vw, 700px);
  }
}

@media (max-width: 550px) {
  .projectImg{
    width: clamp(300px, 90vw, 380px);
  }
}