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


body {
  background-color: var(--background-color);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

.hidden-a {
  animation: fadeOut 0.5s ease-out forwards;
  animation-fill-mode: forwards;
  display: none !important;
}

.hidden {
  visibility: hidden;
}

.text-color {
  color: var(--text-color);
}

.month-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

}

.month {
  border: 1px solid var(--text-color);
  border-radius: 10px;
  padding: 1rem 1rem
}

.month h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

@media screen and (max-width: 780px) {
  .month-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .month {
    margin: 0.1rem 0.1rem;
  }
}


input {
  background-color: var(--background-color);
}

select {
  background-color: var(--background-color);
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.heart-loader {
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  margin-top: -150px;
  width: 300px;
  height: 300px;
  overflow: visible;
}

.heart-loader__group {
  transform-origin: 0 90px;
  -webkit-animation: group-anim 7s forwards 1;
  animation: group-anim 7s forwards 1;
}

.heart-loader__square {
  stroke: grey;
  stroke-dasharray: 240, 240;
  stroke-dashoffset: 240;
  -webkit-animation: square-anim 7s forwards 1;
  animation: square-anim 7s forwards 1;
}

.heart-loader__circle {
  stroke: grey;
  stroke-dasharray: 188.522, 188.522;
  stroke-dashoffset: 188.522;
  transform-origin: 60px 30px;
}

.heart-loader__circle.m--left {
  -webkit-animation: left-circle-anim 7s forwards 1;
  animation: left-circle-anim 7s forwards 1;
}

.heart-loader__circle.m--right {
  -webkit-animation: right-circle-anim 7s forwards 1;
  animation: right-circle-anim 7s forwards 1;
}

.heart-loader__heartPath {
  stroke: #db3434;
  fill: transparent;
  stroke-dasharray: 308.522, 308.522;
  stroke-dashoffset: 308.522;
  -webkit-animation: heart-anim 7s forwards 1;
  animation: heart-anim 7s forwards 1;
}


@-webkit-keyframes square-anim {
  12% {
    stroke-dashoffset: 0;
  }

  43% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes square-anim {
  12% {
    stroke-dashoffset: 0;
  }

  43% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@-webkit-keyframes left-circle-anim {
  12% {
    stroke-dashoffset: 188.522;
  }

  31% {
    stroke-dashoffset: 0;
    transform: translateY(0);
  }

  41% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
  }

  43% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
    opacity: 0;
  }
}

@keyframes left-circle-anim {
  12% {
    stroke-dashoffset: 188.522;
  }

  31% {
    stroke-dashoffset: 0;
    transform: translateY(0);
  }

  41% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
  }

  43% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    transform: translateY(-30px);
    opacity: 0;
  }
}

@-webkit-keyframes right-circle-anim {
  12% {
    stroke-dashoffset: 188.522;
  }

  31% {
    stroke-dashoffset: 0;
    transform: translateX(0);
  }

  41% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
  }

  43% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
    opacity: 0;
  }
}

@keyframes right-circle-anim {
  12% {
    stroke-dashoffset: 188.522;
  }

  31% {
    stroke-dashoffset: 0;
    transform: translateX(0);
  }

  41% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
  }

  43% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
    opacity: 1;
  }

  85% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    transform: translateX(30px);
    opacity: 0;
  }
}

@-webkit-keyframes group-anim {
  43% {
    transform: rotate(0);
  }

  54% {
    transform: rotate(-45deg);
  }

  90% {
    transform: rotate(-45deg);
  }

  97% {
    transform: rotate(-45deg);
  }

  100% {
    transform: rotate(-45deg);
  }
}

@keyframes group-anim {
  43% {
    transform: rotate(0);
  }

  54% {
    transform: rotate(-45deg);
  }

  90% {
    transform: rotate(-45deg);
  }

  97% {
    transform: rotate(-45deg);
  }

  100% {
    transform: rotate(-45deg);
  }
}

@-webkit-keyframes heart-anim {
  55% {
    stroke-dashoffset: 308.522;
    fill: transparent;
  }

  70% {
    stroke-dashoffset: 0;
    fill: transparent;
  }

  87% {
    stroke-dashoffset: 0;
    fill: #db3434;
  }

  100% {
    stroke-dashoffset: 0;
    fill: #db3434;
  }
}

@keyframes heart-anim {
  55% {
    stroke-dashoffset: 308.522;
    fill: transparent;
  }

  70% {
    stroke-dashoffset: 0;
    fill: transparent;
  }

  87% {
    stroke-dashoffset: 0;
    fill: #db3434;
  }

  100% {
    stroke-dashoffset: 0;
    fill: #db3434;
  }
}

.other {
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 100%;
  text-align: right;
}

.other__link {
  font-size: 1.3rem;
  margin: 0 1rem;
}



.charts span svg {
  width: 90%;
  height: fit-content;
  margin-top: 20px;
  margin-bottom: 50px;
  margin-left: 5%;
}

.charts-index-position {
  position: absolute;
  top: 100vh;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .pie {
    flex-direction: column !important;
  }
}