* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #09090b;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;

  padding: 0 24px;
}

.title {
  position: relative;

  font-family: "Parastoo", serif;
  font-size: 56px;
  color: #d1d5db;

  z-index: 5;

  &::before {
    opacity: 0;
    visibility: hidden;

    width: 0%;
    height: 0%;

    content: "";
    position: absolute;
    left: 33%;
    top: 49%;

    color: red;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0px 0px 20px 20px, inset 0px 0px 20px 20px;
    transition: 2s;

    z-index: -1;
  }

  &.active-portal {
    margin-bottom: 64px;

    &::before {
      width: 29%;
      height: 225%;
      left: 18%;
      top: -70%;
      opacity: 1;
      visibility: visible;
    }
  }
}

.display {
  position: relative;

  font-family: monospace;
  color: #d1d5db;
  font-size: 48px;
}

.progress-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  font-family: monospace;
  font-size: 18px;

  .wrapper {
    position: relative;
    width: 100%;
    height: 20px;
    border: 2px solid #27272a;
    border-radius: 10px;
    overflow: hidden;

    .progress {
      position: absolute;
      top: 0px;
      left: 0px;

      width: 0%;
      height: inherit;
      background-color: #ff6467;
      transition: 0.4s;
    }

    .percent {
      position: relative;
      color: #fff;
      text-align: center;
      text-shadow: 0 0 1px #09090b;
    }
  }

  .goal {
    color: #ff6467;
  }
}

.btn-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.count-btn {
  padding: 4px 8px;

  font-family: monospace;
  font-size: 32px;

  border: 0;
  border-radius: 8px;
  background-color: #d1d5db;
  transition: 0.2s;

  &.added {
    background-color: #06df72;
  }

  &.subtracted {
    background-color: #ff6467;
  }
}

.reset-btn {
  font-size: 16px;
  font-style: italic;
  color: #d1d5db;

  border: 0;
  background-color: transparent;
  transition: 0.2s;

  &.reseted {
    color: #7c86ff;
  }
}

.help-text {
  font-family: monospace;
  font-size: 16px;
  color: #27272a;

  p {
    margin: 4px 0;
  }
}

.count-btn,
.reset-btn {
  &:hover {
    cursor: pointer;
  }
}

.feedback-message {
  position: absolute;
  bottom: 4px;
  left: 4px;

  font-family: monospace;
  color: #27272a;
  font-size: 16px;
  font-style: italic;
}

@media only screen and (max-width: 600px) {
  .title {
    font-size: 40px;
  }

  .count-btn {
    font-size: 24px;
  }

  .help-text {
    padding: 0 24px;
  }
}
