html {
  scroll-behavior: smooth;
}

.top-panel::before{
  
  color: white;
  font-family: CSPraJad;
  font-weight:bold;
  position: absolute;
  opacity: 0.8;
  width: 100%;
  font-size: 1rem;
  height: 3rem;
  line-height: 1.5rem;
  text-align: center;
  bottom: 0rem;
  animation: bounce 1s ease infinite;
  content: '╲╱\aเลื่อนลง';
  align-content: center;
  white-space: pre;
  z-index: 1;
}

.main {
  min-height: 60vh;
  background-position: 40% 60px;
  background-size: 220%;
}

@keyframes bounce {
  50% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}


.top-panel {
  width: 100%;
  height: 60vh;
  position: relative;
}


.parallax {
  /* The image used */
  background-image: url("../images/slides/2.png"); 

  /* Set a specific height */
  min-height: 50vh;

  /* Create the parallax scrolling effect */
  background-attachment: scroll;
  /* background-position: center; */
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax2 {
  /* The image used */
  background-image: url("../images/slides/2.png"); 

  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.background-slide {
  /* Set a specific height */
  height: 100vh;
  width: 50vw;

  /* Create the parallax scrolling effect */
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.shop-img {
  float:right;
  height:140px;
  width: 210px;
}

.text-contact {
  font-family: CSPraJadBold; 
  font-size: 2vw
}

.legacy-col {
  height: 50vh;
}

.text-legacy1 {
  font-size: 10vw
}

.text-legacy2 {
  font-size: 6vw
}

.text-legacy3 {
  font-size: 3vw;
  height:60%;
}

.text-legacy4 {
  font-size: 4vw
}

.img-videos {
  width:142.5px;
  height:80px;
}

.video-text {
  font-family: CSPraJad;
  font-size: 0.9em;
  max-width: 142.5px;
}

.extend {
  background-color: transparent;
}



.youtube {
  max-width: 500px;
}

.navbar-dark .navbar-nav .nav-link{
  color: rgba(53,52,52,1);
}

.navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .show > .nav-link {
  color: rgba(0,0,0,1);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(174, 63, 67, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-light .navbar-toggler {
  border-color: rgba(0,0,0,0);
}

.align-contact {
  padding-top:60px;
  padding-bottom:0px;
}

.top-contact {
  top: 0px;
}

.fb-text {
  top: 0px;
}

.heading{
  position: absolute;
  top: 11%;
  left: -60px;
  margin-left: 50%;
  width: 120px;
}

.custom-min{
  
}

.custom-flex{
  
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .text-legacy3 {
    font-size: 3vw;
    height:50%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .text-legacy3 {
    font-size: 3vw;
    height:40%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
  .custom-min{
    min-width:720px;
  }

  .custom-flex{
    flex: 0 0 calc(100% - 720px);
  }

  .heading{
    position: absolute; 
    top: 100px; 
    left: -200px; 
    margin-left: 50%;
    width: 400px;
  }

  .top-panel::before{
    color: white;
    font-family: CSPraJad;
    font-weight:bold;
    position: absolute;
    opacity: 0.8;
    width: 100%;
    font-size: 1.4rem;
    height: 4rem;
    line-height: 2.5rem;
    text-align: center;
    bottom: 1rem;
    animation: bounce 1s ease infinite;
    content: '╲╱\aเลื่อนลง';
    /* content: '   เลื่อนลง\a       ╲╱'; */
    align-content: center;
    white-space: pre;
    z-index: 1;
  }

  .top-panel {
    width: 100%;
    height: 100vh;
    position: relative;
  }

  .main {
    min-height: 100vh;
    background-position: center 60px;
    background-size: cover;
  }

  .extend {
    background-color: rgba(255, 255, 255, 0.7);
  }

  .align-contact {
    padding-top:0px;
    padding-bottom:60px;
  }

  .top-contact {
    top: 60px;
  }

  .parallax {
    /* The image used */
    background-image: url("../images/slides/2.png"); 
  
    /* Set a specific height */
    height: 100vh;
  
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    /* background-position: center; */
    background-repeat: no-repeat;
    background-size: cover;
  }
  
  .text-contact {
    font-family: CSPraJadBold; 
    font-size: 1em;
  }

  .legacy-col {
    height: 100vh;
  }

  .text-legacy1 {
    font-size: 5em;
  }

  .text-legacy2 {
    font-size: 2.8em
  }

  .text-legacy3 {
    font-size: 1.3em;
    height:60%;
  }

  .text-legacy4 {
    font-size: 1.6em
  }

  .img-videos {
    width:285px;
    height:160px;
  }

  .video-text {
    font-family: CSPraJad;
    font-size: 1.3em;
    max-width: 285px;
  }

  .youtube {
    max-width: 1000px;
  }
}