
@media screen and (max-width:420px){

  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }
  .bd-grid{
    margin-left: auto;
    margin-left: auto;
  }
  .home{
    padding: 4rem 3rem;
    display: grid;
    
  }
  
  .home_data{
    align-items: left;
    color: var(--first-color-alt);
  }
  
  .home_title {
    text-align: left;
    margin-top: var(--mb-1)
  }
  
  
  .home_greeting{
    font-size: 2rem;
  }
  
  .title-text1{
    font-size: var(--smaller-font-size);
    margin-bottom: var(--mb-4);
    line-height: 1rem;
  }
  
  
  .title-uppercase {
    margin-bottom: var(--mb-3);
  }
  
  
  .home_social{
    display: flex;
    flex-direction: row;
  }
  
  .home_social-icon{
    width: max-content;
    margin-bottom: var(--mb-2);
    margin-right: var(--mb-3);
    font-size: 1.2rem;
    color: var(--first-color-dark);
  }
  
  
  .home_title-color{
    color: #2F0A0D;
    font-weight: var(--font-semi-bold);
  }
  
  .home_img{
    max-width: 100%;
    height: auto;
    display: block;
  }

  /*===== ABOUT ===== */
.about{
  width: auto;
  background-color: #fff;
  text-align: center;
}

.about_text{
  color: var(--first-color-alt);
  margin-top: 3rem;
}

.Atext1{
  margin-bottom: var(--mb-2);
}

.para{
  margin: 1rem 0 3rem;
}


.about_img {
  max-width: 100%;
    height: auto;
    display: block;
}

.about_img {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: 1s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%)
}

.about_img:hover .image {
  opacity: 0.3;
}

.about_img:hover .middle {
  opacity: 1;
}
.text{
  white-space: nowrap; 
  color: white;
  font-size: 10px;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

}


  
  /* if the viewport is equal to 768px or less than that */
@media screen and (min-width:768px){

  :root{
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }

  .section-title::after{
    position: absolute;
    content: "";
    top: 6rem;
    width: 180px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    background-color: var(--first-color);
  }
  
    .nav{
      height: calc(var(--header-height) + 1.5rem);
    }

    .nav_link{
      color: #3e0e12;
    }


    .nav_list{
      display: flex;
    }

    .nav_item{
      margin-left: var(--mb-5);
      margin-bottom: 0;
    }
    .active::after{
      position: absolute;
      content: "";
      width: 100%;
      height: 0.18rem;
      left: 0;
      top: 2rem;
      background-color: var(--first-color-lighten);
    }

    .nav_toggle{
    display: none;
    }


    .home_social-icon{
      margin-right: var(--mb-4);
      margin-bottom: 0;
    }

    
}


  /* if the viewport is equal to 1024px or less than that */

  @media screen and (min-width: 768px) {

    .nav_list{
      margin-left: var(--mb-4 );
      margin-bottom: 0;
    }

    .active::after{
      position: absolute;
      content: "";
      width: 100%;
      height: 0.18rem;
      left: 0;
      top: 2rem;
      background-color: var(--first-color);
    }


    .home_data{
      align-items: center;
      width: 100%;
    }

    .home_title{
      padding-right: 1.5rem;
      padding-top: 1rem;
    }
    
  }

  @media screen and (min-width: 1024px){
      .bd-container{
        margin-left: auto;
        margin-right: auto;
      }
  }