@media only screen and (max-width: 1849px) {
  
  .nav_item {
    width: 650px;
    text-align: center;
  }

  #buildingBlocks {
    width: 550px;
  }

}

@media only screen and (max-width: 1619px) {

  main {
    margin: 20px 100px;
  }

  .nav_items h2{
    color: var(--main-color); 
    font-size: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .nav_item {
    width: 500px;
    font-size: 23px;
    padding: 15px;
  }

  .nav_item svg {
    width: 40px;
  }

  .nav_item p{ 
    font-size: 18px;
    text-align: center;
  }

  #buildingBlocks {
    width: 500px;
  }

}

@media only screen and (max-width: 1299px) {

  #headSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #headSection img {
    width: 250px;
    margin-bottom: 20px;
  }

  main {
    height: fit-content;
  }

  #nav_box_with_img{
    flex-direction: column;
  }

  .nav_item {
    width: 750px;
    font-size: 28px;
    padding: 15px;
  }

  .nav_item svg {
    width: 50px;
  }

}

@media only screen and (max-width: 999px) {

  .nav_item {
    width: 600px;
  }

}

@media only screen and (max-width: 959px) {

  #headSection img {
    width: 220px;
    margin-bottom: 20px;
  }

  
  #head_headText {
    font-size: 43px;
  }
  
  #head_subText {
    font-size: 30px;
  }

}

@media only screen and (max-width: 849px) {


  .nav_item {
    width: 500px;
    font-size: 22px;
    padding: 5px;
  }

  .nav_item svg {
    width: 38px;
  }

  .nav_item p{ 
    font-size: 15px;
  }

  main img {
    display: none;
  }

}

@media only screen and (max-width: 727px) {

  main {
    margin: 20px 50px;
  }

}

@media only screen and (max-width: 699px) {

  #headSection img {
    width: 200px;
    margin-bottom: 20px;
  }

  #head_headText {
    font-size: 30px;
  }
  
  #head_subText {
    font-size: 20px;
  }

}


@media only screen and (max-width: 640px) {

  .nav_item {
    width: 400px;
  }

}



@media only screen and (max-width: 509px) {

  #headSection img {
    width: 170px;
    margin-bottom: 20px;
  }

  #head_headText {
    font-size: 25px;
  }
  
  #head_subText {
    font-size: 15px;
  }

  main {
    height: 85vh;
    margin: 25px 35px;
  }

  .nav_items h2 {
    font-size: 35px;
  }

  .nav_item {
    width: 300px;
    font-size: 23px;
    padding: 15px;
    margin-bottom: 40px;
  }

  .nav_item svg {
    width: 40px;
  }

  .nav_item p{ 
    font-size: 15px;
    text-align: center;
  }

}

@media only screen and (max-width: 427px) {

  #headSection img {
    width: 170px;
    margin-bottom: 20px;
  }

  #head_headText {
    font-size: 23px;
  }
  
  #head_subText {
    font-size: 15px;
  }

  .nav_items h2 {
    font-size: 30px;
  }

}

@media only screen and (max-width: 400px) {

  main {
    height: 85vh;
    margin: 25px 25px;
  }

  .nav_items h2 {
    font-size: 25px;
  }

  .nav_item {
    width: 250px;
    font-size: 18px;
    padding: 15px;
    margin-bottom: 40px;
  }

  .nav_item svg {
    width: 35px;
  }

  .nav_item p{ 
    font-size: 13px;
    text-align: center;
  }

}


@media only screen and (max-width: 370px) {

  #headSection img {
    width: 130px;
    margin-bottom: 20px;
  }

  #head_headText {
    font-size: 19px;
  }
  
  #head_subText {
    font-size: 13px;
  }

  .nav_item {
    width: 220px;
  }

}


