* {
  box-sizing: border-box;
}

:root {
  /* COLORS */
  --primary-bg: #0D0D0D;
  --secondary-bg: #262626;
  --text-color: #F4F4F4;
  --accent: #C4F815;


  /* UI */
  --ui-height: 31px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 100vw;
  max-width: 100vw;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* canvas {
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: -1;
  pointer-events: none;
} */

::-moz-selection { /* Code for Firefox */
  color: var(--primary-bg) !important;
  background: var(--accent) !important;
}

::selection {
  color: var(--primary-bg) !important;
  background: var(--accent) !important;
}

.link {
  cursor: pointer;
}

.link img {
  display: none;
}

.button {
  font-size: 14px;
  height: var(--ui-height);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  position: relative;
  width: max-content;
  cursor: pointer;
  overflow: hidden;
  border-radius: 31px;
  transition: color .4s ease, padding .4s ease;
  text-decoration: none;
  color: var(--text-color);
}
.button span {
  margin-bottom: -1px;
}
.button__outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 31px;
  transition: transform .4s ease;
  pointer-events: none;
}

.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
  border-radius: 0;
  transition: width .4s ease, border-radius .4s ease;
  z-index: -1;
}

.button svg {
  position: absolute;
  right: 0;
  top: 48%;
  transition: all .4s ease;
  transform: translate(0, -50%);
  opacity: 0;
}

.button:hover svg {
  transform: translate(-10px, -50%);
  opacity: 1;
}

.button:hover::after {
  width: 100%;
  border-radius: 20px;
}
.button:hover {
  color: var(--primary-bg);
  padding-right: 30px;
}

input {
  height: var(--ui-height);
  border-radius: calc(var(--ui-height) / 2);
  background-color: var(--secondary-bg);
  color: var(--white);
  font-size: 14px;
  padding: 0 12px
}

input:focus {
  outline: 2px solid var(--accent) !important;
}

@media screen and (max-width: 600px) {
  .button svg {
    transform: translate(-10px, -50%);
    opacity: 1;
    filter: brightness(30);
  }
  .button:hover svg {
    filter: brightness(0);
  }
  .button {
    padding-right: 30px;
  }
  
}


.noise {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200vh;
  background: transparent url('../img/noise-transparent.png') repeat 0 0;
  background-repeat: repeat;
  animation: bg-animation .2s infinite;
  opacity: .6;
  visibility: visible;
  pointer-events: none;
  z-index: 1000;
}

@keyframes bg-animation {
  0% { transform: translate(0,0) }
  10% { transform: translate(-5%,-5%) }
  20% { transform: translate(-10%,5%) }
  30% { transform: translate(5%,-10%) }
  40% { transform: translate(-5%,15%) }
  50% { transform: translate(-10%,5%) }
  60% { transform: translate(15%,0) }
  70% { transform: translate(0,10%) }
  80% { transform: translate(-15%,0) }
  90% { transform: translate(10%,5%) }
  100% { transform: translate(5%,0) }
}