/* Small phones to small tablets: from 320px to 767px */
@media only screen and (max-width: 767px){

  body{
    /* overflow: hidden; */
    scroll-behavior: smooth;
  }

/* section general */
.mobile{
  display: block;
}

.desktop{
  display: none;
}

.header-back{
  flex-direction: row;
}

.row{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-left{
  width: 100%;
  max-height: 40vh;
}

.box-right{
  margin-top: 0vh;
  width: 100%;
  max-height: 40vh;
}

.box-right-box-text,
.box-left-box-text {
  margin: 0% auto;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: auto;
}

.box-right-box-text h1, .box-left-box-text h1{
  text-align: center;
  font-size: calc(45px + .5vw);
}


.box-right-box-text pre, .box-left-box-text pre {
    font-family: monospace, monospace;
    font-size: calc(12px + .2vw);
    line-height: calc(12px + 1vw);
    text-align: center;
    justify-content: space-between;
    align-items: center;
}

.box-right-text, .box-left-text {
  margin: 0%;
}

/* section 1 - hero */
.box-center {
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
}
/* sectio 4 - about */

.c-gallery-about .grid-item:first-child {
    border-radius: 40px 0px 0px 0px;
}

.c-gallery-about .grid-item:nth-child(2) {
    border-radius: 0px 40px 40px 0px;
}
.c-gallery-about .grid-item:nth-child(3) {
    border-radius: 0px 0px 0px 40px;
}

/* button */
.btn_submit:link, .btn_submit:visited, input[type=submit] {
    width: 100%;
}

/* button  round */
.btn1:link, .btn1:visited {
    margin: 0px auto auto auto;
}

/* section 5 - work */

.container-work {
  margin-top: 20vh;
  height: 80vh;
  width: 100%;
  /* background-color: red; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container-work1, .container-work2 {
  position: relative;
  height: 40vh;
  width: 100%;
  /* background-color: yellow; */
  margin-top: 2vh;
  margin-bottom: 3vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  }

  .work-text{
    max-height: 216px;
  }

  .work-text h3, .work-text h6, .work-text p {
    line-height: calc(9px + 2.0vw);
}

  .work-img{
    height: auto;
  }

  /* section 6 - contact  */

  .box-center-footer {
  margin-top: 20vh;
  justify-content: flex-end;
  }

  #title-footer {
  text-align: center;
  }

  .notes-footer {
  margin: 0px auto;
  font-size: calc(8px + 0.5vh);
  }

  /* section 6 contact */

  .box-center-footer1 {
      flex-direction: column;
  }

  /* MOBILE navigation */

  .row-nav{

  }

  .logo {
    float:left;
    margin-left: 10px;
  }
  /* home button left */
  .btn-app {
    margin-right: 0px;
  }

  .mobile-nav-btn{
    display: block;
  }

  .main-nav{
    background-color: rgba(255,255,255,0.96);
    /* background-color: red; */
    position: absolute;
    top: 20vh;
    left: 0;
    width: 100%;
    height: 100vh;
    margin-top: 0px;

    display: flex;
    align-items: end;
    flex-direction: column;
    justify-content: start;
    transition: all 0.5s ease-in;
    transform: translateX(100%);

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility:visible;
    transform: translateX(0);
  }

  .nav-open .mobile-nav-icon[name="close-outline"]{
    display: block;
  }

  .nav-open .mobile-nav-icon[name="menu-outline"]{
    display: none;
  }


  .main-nav li{
    margin-left: 0px;
  }

  .main-nav li a:link, .main-nav li a:visited{
    line-height: 3em;
    font-size: calc(9px + 0.3vw);
    padding-right: 20px;

  }

  .main-nav li p {
    font-size: calc(12px + 0.5vw);
    padding-right: 30px;
  }

  /* lab posts index */
  .intro-posts{
    width: 90%;
  }

  .box-center-lab,
  .box-center-lab1,
  .box-center-lab2,
  .box-center-lab3,
  .box-center-lab4,
  .box-center-lab5 {
    height: 50vh;
  }

  .box-center-lab1{
    /* post +25vh before*/
    top: 55vh;
    background-color: rgba(68, 84, 106, 0.6);
    border: 3px solid #44546a;
  }

  .box-center-lab2{
    /* category name +10vh */
    top: 65vh;
  }

  .box-center-lab3{
    /* post +35vh */
    top: 100vh;
  }

  .box-center-lab4{
    /* post +35vh */
    top: 135vh;
  }

  .box-center-lab5{
    /* post +35vh */
    top: 170vh;
  }

  .row-lab{
    /* total height of the screen */
    /* nav = 20 + white space 10vh + 25 intro + (30x3)+ (15x1) + 40ch post height + white space 10vh  */
    height: 210vh;
  }

/* Post page */
  .row-post{
    height: auto;
  }

  .monitor_frame {
    border: solid 0.3em #333;
    border-radius: 0.5em;
  }

  .img-center-post {
    max-width: 100%;
  }

}
