/* 
green: #3FAF82
*/



.menuIcon {
    border-radius: 2px;
    position: relative;
    float: right;
    top: 27px;
    right: -18px;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 49px;
  }
  
  .btnMenu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29px;
    cursor: pointer;
    padding: 8px;
    
  }
  
  .spanMenu {
    display: block;
    width: 100%;
    border-radius: 3px;
    height: 2px;
    background: #1E92C0;
    transition: all .3s;
    position: relative;
  }
  
  span + span {
    margin-top: 5px;
  }
  
  .active span:nth-child(1) {
    animation: ease .7s top forwards;
  }
  
  .not-active span:nth-child(1) {
    animation: ease .7s top-2 forwards;
  }
  
  .active span:nth-child(2) {
    animation: ease .7s scaled forwards;
  }
  
  .not-active span:nth-child(2) {
    animation: ease .7s scaled-2 forwards;
  }
  
  .active span:nth-child(3) {
    animation: ease .7s bottom forwards;
  }
  
  .not-active span:nth-child(3) {
    animation: ease .7s bottom-2 forwards;
  }
  
  @keyframes top {
    0% {
      top: 0;
      transform: rotate(0);
    }
    50% {
      top: 7px;
      transform: rotate(0);
    }
    100% {
      top: 7px;
      transform: rotate(45deg);
    }
  }
  
  @keyframes top-2 {
    0% {
      top: 7px;
      transform: rotate(45deg);
    }
    50% {
      top: 7px;
      transform: rotate(0deg);
    }
    100% {
      top: 0;
      transform: rotate(0deg);
    }
  }
  
  @keyframes bottom {
    0% {
      bottom: 0;
      transform: rotate(0);
    }
    50% {
      bottom: 7px;
      transform: rotate(0);
    }
    100% {
      bottom: 7px;
      transform: rotate(135deg);
    }
  }
  
  @keyframes bottom-2 {
    0% {
      bottom: 7px;
      transform: rotate(135deg);
    }
    50% {
      bottom: 7px;
      transform: rotate(0);
    }
    100% {
      bottom: 0;
      transform: rotate(0);
    }
  }
  
  @keyframes scaled {
    50% {
      transform: scale(0);
    }
    100% {
      transform: scale(0);
    }
  }
  
  @keyframes scaled-2 {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
  



/* ------- เมนู ------ */
.menu_wrapper_animationClose
{
    animation: ease .7s menuAnimationClose forwards;
}


.menu_wrapper_animationOpen
{
    animation: ease .7s menuAnimationOpen forwards;
}

@keyframes menuAnimationOpen {
    0% {
        clip-path: inset(0px 0px 330px -25px);
    }
    100% {
        clip-path: inset(0px 0px  -25px -25px);
    }
  }

@keyframes menuAnimationClose {
    0% {
        clip-path: inset(0px 0px -25px -25px);
    }
    100% {
        clip-path: inset(0px 0px 330px -25px);
    }
  }


 

/* Popup container */
.popup {
    position: fixed;
    display: inline-block;
    cursor: default;
    right: 97px;
    top: 114px;
    z-index: 4;
    
  }
  
  /* The actual popup (appears on top) */
.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
    
  }
  
  /* Popup arrow */
  .popup .popuptext::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 145px;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
    transform: rotate(180deg);
    
  }
  

/* เมนู สมาชิก */
.showMe{
  display:block;
  animation: ease .7s menuAnimationOpen forwards;
}



/* เอาไว้ใช้ทั่วๆไป */

.opacity0 {
  opacity : 0;
}

.opacity100 {
  opacity : 1;
}



/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}




/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
   
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .popup .show {
        visibility: visible;
        -webkit-animation: fadeIn 0.3s;
        animation: fadeIn 0.3s;
    }
}