@media (max-width: 1024px) {

  /* Kill sidebar layout completely */
  main {
    flex-direction: column;
    align-items: center;
  }

  section#intro {
    position: static !important;
    transform: none;
    top: 0;
    left: 0;
    min-width: 90%;
    width: 100%;
    margin: 80px 0 20px 0;
  }

  section#main_page {
    margin: 0;
    width: 90%;
  }

  header nav {
    width: 50%;
  }

  /* projects full width */
  section#main_page div.project {
    width: 100%;
  }

  /* tech grid */
  #carousel {
    grid-template-columns: repeat(2, 1fr);
  }


  #scrollText {
    grid-template-columns: auto 1fr;
    height: auto;
  }

  p.ican {
    transform: none;
    white-space: nowrap;
  }

  div#scrollText{
    display: none;
  }
}

@media (max-width: 768px) {
  main{
    position: absolute;
    
    display: flex;
    align-items: center;
    justify-content: center;
  }
  section#intro {
    
    margin-top: 70px;
  }

  header nav {
    width: 40%;
  }

  section#main_page {
    width: 100%;
    margin: 0;
  }

  section#main_page div.project {
    width: 100%;
  }

  #carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  section.experiments {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .experiment {
    width: 150px;
  }
  #scrollText {
    display: none;
  }
}