@tailwind base;
@tailwind components;
@tailwind utilities;

nav ul li a {
  width: max-content;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #ffffff, #ffffff);
}

nav ul li a:hover {
  background-image: linear-gradient(to left, #c237f5, #f94759);
}

nav ul li a.active {
  background-image: linear-gradient(to right, #c237f5, #f94759);
}

.text-gradient {
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zoom-in {
  animation: zoom-in 5s ease infinite;
}

@keyframes zoom-in {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.5, 1.5);
  }
  100% {
    transform: scale(1, 1);
  }
}

.zoom-out {
  animation: zoom-out 5s ease infinite;
}

@keyframes zoom-out {
  0% {
    transform: scale(1.5, 1.5);
  }
  50% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1.5, 1.5);
  }
}

.menu {
  height: auto;
  position: relative;
}

.menu-icon {
  cursor: pointer;
  padding: 20px 0 20px 20px;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.menu-icon .navicon {
  background: #fff;
  display: block;
  height: 4px;
  position: relative;
  transition: background 0.2s ease-out;
  width: 30px;
  border-radius: 5px;
}
.menu-icon .navicon:before,
.menu-icon .navicon:after {
  background: #fff;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  right: 0;
  transition: all 0.2s ease-out;
  width: 40px;
  border-radius: 5px;
}
.menu-icon .navicon:before {
  top: 10px;
}
.menu-icon .navicon:after {
  top: -10px;
}
.menu-btn {
  display: none;
}
.menu-btn:checked ~ .menu {
  height: 100vh;
}
.menu-btn:checked ~ .menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
}
.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}
.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

@media only screen and (max-width: 1023px) {
  .menu {
    clear: both;
    height: 0;
    transition: height 0.2s ease-out;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: #0b0a0e;
    overflow-y: auto;
  }
}
