* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "milk";
  src: url("../fonts/Milk\ Kids.ttf");
}

:root {
  --font_milk: "milk", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font_milk);
  background-color: #2eb625;
}

.pangolin-font {
  font-family: "Pangolin", cursive;
}

/* navbar */
.buy_btn {
  box-shadow: 4px 4px 0px 0px #958a8df2;
}


nav li a:hover{
  color: white;
}

/* menu button */
.menu {
  transform: translateX(-100%);
}
.menu-button {
  display: none;
  overflow: hidden;

  height: 35px;
  width: 45px;

  position: relative;

  align-items: center;
}

.menu-button span {
  width: 100%;
  height: 3px;
  background-color: #666465;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.menu-button span:nth-child(1) {
  top: 0;
}

.menu-button span:nth-child(2) {
  position: relative;
}

.menu-button span:nth-child(3) {
  bottom: 0;
}

.menu-button.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 1rem;
}

.menu-button.active span:nth-child(2) {
  width: 0%;
}

.menu-button.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 1rem;
}

.flipped {
  transform: scaleX(-1);
}

/* footer */
.social{
  box-shadow: 3.74px 3.74px 0px 0px #000000;
  cursor: pointer;
}

/* animation */
.float_animation{
  animation: float 2s ease-in-out infinite;
}

/* float */
@keyframes float {
  0% {
    transform: translatey(0px);
  }
  50% { 
    transform: translatey(-10px);
  }
  100% {
    transform: translatey(0px);
  }
  }
  

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

.animated.hinge {
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
}

/*the animation definition*/
@-webkit-keyframes wobble {
  0% {
    -webkit-transform: none;
    transform: none
  }
  15% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -5deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -5deg)
  }
  30% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 3deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 3deg)
  }
  45% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)
  }
  60% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)
  }
  75% {
    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)
  }
  100% {
    -webkit-transform: none;
    transform: none
  }
}
 
.wobble {
  -webkit-animation-name: wobble;
  animation-name: wobble
}



/* right left */
.rock{
  animation: rock 30s linear infinite;
}
@keyframes rock {
  0%,100%  {
    transform: translateX(0px);
  }
  30% { 
    transform: translateX(-10%);
  }  
  60% { 
    transform: translateX(10%);
  }  
  }



/* media queries */
@media screen and (max-width: 1024px) {
  /* navbar */
  .links {
    top: 110%;
    right: 2rem;
    width: 200px;
    height: 150px;
    background-color: #decc8a;
    z-index: 9999;

    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    gap: 2rem;
    
    transform: scale(0);
    transition: .2s ease-in-out;
  }

  .menu-button {
    display: flex;
    position: absolute;
    right: 1rem;
  }

  .links.active{
    transform: scale(1);
  }
}

@media screen and (max-width: 500px) {
  /* navbar */
  .buy_btn {
    box-shadow: 2px 2px 0px 0px #958a8df2;
  }

    /* navbar */   
  
    .menu-button.active span:nth-child(1) {
      top: 0.6rem;
    }
  
    .menu-button.active span:nth-child(3) {
      bottom: 0.7rem;
    }
}
