*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root{

 /*  --FF: Helvetica, sans-serif; */
  --FF: nexaheavy;
  /*--BGCOL: rgb(241, 241, 241);*/
  --BGCOL: #F7f5EB;
  /*--FONTCOL: #333;*/
  --FONTCOL: #2f420f;
  --SHADCOL: rgb(119, 119, 119);
  --HOVBARCOL: #699222;
}

@font-face{
  font-family: Akira;
  src: url(/fonts/Akira\ Expanded\ Demo.otf)
}

@font-face{
  font-family: nexaheavy;
  src: url(/fonts/Nexa-Heavy.ttf);
}


html{
  background-color: var(--BGCOL);
  font-family: var(--FF);
  font-weight: 550;
}

.footer{
  margin-top: 50px;
  text-align: center;
  font-size: 18px;
  color: var(--FONTCOL);
  bottom: 0;
  margin-bottom: 0px;
  position: bottom;
}

.footer-bottom{
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #444;
  margin-top: 0px;
  margin-bottom: 0px;
}


.pagetitle-container{
  font-size: 80px;
  padding-top: 50px;
  display: block;
  text-align: center;
  font-family: var(--FF);
  color: var(--FONTCOL);
  font-family: Akira;
}


.posts{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  /* height: 800px; */
  height: auto;
  width: 100%;
  position: relative;
  justify-content: center;
  margin-top: 25px;
  
}

.headertitle{
  grid-column: 3;
  grid-row: 1;
  height: 100%;
  text-align: left;
  font-size: 40px;
  color: var(--FONTCOL);
}

.headertitle h3{
  font-size: 56px;
  background-color: var(--FONTCOL);
  color: var(--BGCOL);
  display: inline;
}

.headertitle p{
  font-size: 24px;
  font-weight: 500;
  text-justify: inter-words;
}

#contact{
  display: block;
  height: 100%;
  text-align: center;
  font-size: 40px;
  color: var(--FONTCOL);
  font-family: var(--FF);
  margin-top: 25px;
}


.uniprojectspost{
  grid-column: 4;
  grid-row: 1;
  height: 100%;
  position: relative;

  z-index: 1;
  text-decoration: none;
  color: var(--FONTCOL);
  margin-top: 88px;
}

.pcbproject{
  grid-column: 3; 
  grid-row: 2;
  height: 100%;
  margin-top: -150px; 

  position: relative;

  text-decoration: none;
  color: var(--FONTCOL);
}

.placeholder{
  grid-column: 4;
  grid-row: 3;
  height: 100%;
  margin-top: -450px;

  position: relative;

  text-decoration: none;
  color: var(--FONTCOL);
}

.portfolio-thumbnail h4{
  font-weight: 600;
  font-family: var(--FF);
  font-size: 28px;
}

.container{
  text-align: center;
}

.mail{
  display: inline-block;
  text-align: center;
  padding-left: auto;
  padding-bottom: 25px;

}

.mail .mail-icon{
  padding: 5px;
  border-radius: 9px;
}

.mail .mail-icon:hover{
  background-color: rgb(180, 180, 178);

}

@media all and (max-width: 1300px) {

  .posts {
    display: block;
    width: 100%;
    margin-top: 25px;
    text-align: center;
  }

  .headertitle {
    width: 100%;
    height: auto;
    text-align: center;
    font-size: 40px;
    color: var(--FONTCOL);
    margin-bottom: 10px; /* Add some spacing between elements */
  }

  .headertitle h3 {
    font-size: 56px;

  }

  .headertitle p {
    font-size: 24px;
    font-weight: 500;
    margin-left: 25px;
    margin-right: 25px;
    max-width: 640px;
    margin: 0 auto;
  }

  .uniprojectspost,
  .pcbproject,
  .placeholder {
    width: 100%;
    height: auto;
    margin-bottom: 10px; /* Add some spacing between elements */
    text-decoration: none;
    color: var(--FONTCOL);
    margin-top: 25px;
    padding-top: 0px;

  }
}




@media all and (max-width: 660px){
  .pagetitle-container{
    font-size: 40px;
    padding-top: 50px;
    display: block;
    text-align: center;
    margin-left: 0;
  }
  
  .introtext-container{
    font-size: 18px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    margin: 15px;
    margin-top: 0;
  }

  .headertitle p {
    font-size: 24px;
    font-weight: 500;
    margin-left: 25px;
    margin-right: 25px;
    max-width: 320px;
    margin: 0 auto;
  }
  

}