body
{
      background: rgb(36, 18, 65);
      color: white;
      font-family: "Raleway", sans-serif;
      font-size: 1.67em;
      margin: auto;
}
#topHeaderSide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3c2f58;
  padding: 1.0em;
  border-bottom: 3px solid white;
}
#JaDiv
{
      width: 100%;
      height: 2.5em;
      text-align: center;
      font-size: 2.5em;
      justify-content: center;
      align-items: center;
      display: flex;
}
#part2Side a
{
      text-decoration: none;
      color: white;
}
#bottomSideLinks, #selectedSideLinks
{
      margin: 4px;
      text-align: center;
      padding: 0.6em
}
#bottomSideLinks
{
      background: rgb(16, 0, 61);
      border: 2px solid white;
}
#aboutMeText
{
      padding: 125px;
      padding-top: 2px;
}
#part1Side
{
      width: 10%;
}
#part2Side
{

}
.selectedLink
{
      background-color: rgb(57, 46, 119);
      border: 2px solid white;
}
#bottomSideLinks:hover, #selectedSideLinks:hover
{
      background-color: #7f4ee9; 
}

#firstAboutMeDiv, #thirdAboutMeDiv{
    width: 50%;
    font-size: 32px;
    padding: 25px;
    justify-content: center;
    align-items: center;
}

#threeDprintHREF
{
	display: flex;
}

#widthToFillIn {
    width: 50%;
    /* background: #3c2f58; */
    /* border-radius: 25px; */
    /* border: 3px solid white; */
}

#textFullWidthOptional, #textFullWidthOptional2
{
	width: 100%;
	float: left;
	text-align: center;
}
#textFullWidthOptional2
{
	padding-top: 25px;
	padding-bottom: 100px;
}
#firstPartAboutMe, #secondPartAboutMe
{
      margin-top: 50px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
}
#centerContactDiv, #centerContactDiv2
{
      margin-top: 20px;
      justify-content: center;
      align-items: center;
      display: flex;
      font-size: 32px;
      height: 100%;
}
#centerContactDiv2
{
font-size: 26px;
}

#widthToFillIn img {
  max-width: 100%;
  height: auto;
  display: block; /* optional but helps remove spacing */
  border-radius: 8px; /* optional for styling */
}
#fullWidthAboutMe
{
      width: 100%;
      justify-content: center;
      align-items: center;
      font-size: 32px;
}
#fullWidthAboutMe img
{
      border: 3px solid white;
      margin: 60px;
      margin-bottom: 0px;
}
#pillowLeftSide img
{
      width: 100px;
}

#headerForProjectType
{
  font-size: 2em;
}

.podswietlTekst
{
      color: #ecafff;
}
@media screen and (max-width: 1000px) {
  body {
    font-size: 1.2em;
    padding: 10px;
  }

  #topHeaderSide {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #part1Side,
  #part2Side {
    width: 100%;
  }

  #part1Side
  {
      justify-content: center;
      align-items: center;
      display: flex;

  }
  #part2Side a {
    display: block;
    margin: 5px 0;
  }

  #firstPartAboutMe,
  #secondPartAboutMe {
    flex-direction: column;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
  }

  #firstAboutMeDiv,
  #thirdAboutMeDiv,
  #widthToFillIn,
  #fullWidthAboutMe {
    width: 100%;
    font-size: 1.1em;
  }

  #aboutMeText {
    padding: 20px;
  }

  #fullWidthAboutMe img {
    width: 100%;
    height: auto;
    margin: 20px 0;
  }

  #pillowLeftSide img {
    width: 70px;
  }

  #JaDiv {
    font-size: 2em;
  }
}

#centerContactDiv {
    margin: 0 auto 50px auto;
    font-family: "Raleway", sans-serif;
    color: white;
    padding: 12px;
  }

  .project {
  display: flex;
    align-items: stretch; /* force both columns to fill the same height */

  gap: 25px;
  padding: 25px;
  flex-wrap: wrap;

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

  
}

#projectMainImage2
{
  width: 200px;
  height: 200px;
  margin: 25px;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid rgb(255, 255, 255);
}

#projectMainImage {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 3px solid #ffbfff;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
    justify-content: space-between; /* pushes GitHub link to the bottom if needed */
  gap: 10px;
}

.project-info h2 {
  font-size: 1.8em;
  margin: 0;
  color: #ffbfff;
}

.project-info .subtitle {
  font-size: 1.2em;
  color: #ded6f0;
  font-weight: 500;
  margin: 0;
}

.project-info .long-desc {
  font-size: 1.1em;
  color: #bfb3d3;
  line-height: 1.4;
  margin: 0;
}

/* GitHub link */
.project-info a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  padding: 8px 14px;
  border: 2px solid #7f4ee9;
  border-radius: 8px;
  color: #7f4ee9;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}
.project-info a:hover {
  background-color: #7f4ee9;
  color: white;
}

#projectGitHubImage {
  width: 24px;
  height: 24px;
}

/* Tags */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}
.tech-tag {
  background-color: #7f4ee9;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9em;
}


@media screen and (max-width: 700px) {
  .project {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #threeDprintHREF
  {
    display: block;
  }

  #headerForProjectType
{
  font-size: 1.0em;
}

  #projectMainImage {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .project-info {
    width: 100%;
    align-items: center;
  }

  .project-info h2 {
    font-size: 1.4em;
  }

  .project-info .subtitle {
    font-size: 1em;
  }

  .project-info .long-desc {
    font-size: 0.7em;
    text-align: center;
  }

  .tag-container {
    justify-content: center;
  }

  .tech-tag {
    font-size: 0.85em;
    padding: 3px 8px;
  }

  .project-info a {
    align-self: center;
    font-size: 0.95em;
    padding: 6px 12px;
  }

  #projectGitHubImage {
    width: 20px;
    height: 20px;
  }
}

.main-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 40px;
}

/* Projects container (left side) */
.project-section {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Description (right side) */
.project-description {
  flex: 1;
  background-color: rgba(127, 78, 233, 0.1);
  padding: 20px;
  border-radius: 16px;
  color: #ccc;
  font-size: 1em;
  line-height: 1.6;
  max-width: 300px;
  position: sticky;
  top: 20px;
}

.project-description h3 {
  color: #ffbfff;
  margin-top: 0;
}

#threeDprintHREF
{
  transition: 2s;
  padding: 15px;
}

#threeDprintHREF:hover
{
  color: #462299;

}

#projectFilterForm {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.filter-button {
  background-color: white;
  color: #5a3e8e;
  border: 2px solid #5a3e8e;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 500px;
}

.filter-button:hover {
  background-color: #a493c7;
  color: white;
  transform: scale(1.05);
  border: 2px solid #ffffff;
}

.filter-button.active {
  background-color: #5a3e8e;
  color: white;
}
