.main {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  .popup {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: start;
    max-width: 70%;
    width: fit-content;
    height: auto;
    padding: 1rem;
    bottom: 0;
    margin: 1rem;
    left: calc(50% - 1rem);
    transform: translateX(-50%);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    background-color: rgba(99, 255, 123, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 1rem;
    gap: 1rem;
    opacity: 0;
    z-index: -10;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(7, 79, 32, 0.1);

    &.active {
      z-index: 100;
      opacity: 1;
    }

    .icon {
      font-size: 2rem;
      width: auto;
      position: relative;
    }

    .message {
      position: relative;
      width: auto;
      font-size: 1.2rem;
      font-weight: 600;
      color: #222;
      background: transparent;
      word-break: break-all;
    }
  }
  .loader {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.125);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    gap: 1rem;
    display: none;
    &.active {
      display: flex;
    }
    .svg {
      width: 100px;
      height: 100px;
    }
  }

  .content {
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: transparent;
    z-index: 2;
    color: #222;
    backdrop-filter: blur(1px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.41);
    .titleSection {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-self: center;
      justify-content: center;
      text-align: center;
      height: 100%;
      gap: 1rem;

      .title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #222;
      }

      .description {
        display: flex;
        font-size: 1.2rem;
        width: 50%;
        margin: 0 auto;
        font-weight: 400;
        color: #222;
        margin-bottom: 1rem;
      }

      .buttonContainer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        .button {
          padding: 0.7rem 1.3rem;
          font-size: 1.2rem;
          font-weight: 500;
          color: #fff;
          background: #29845e;
          border: none;
          border-radius: 0.5rem;
          cursor: pointer;
          transition: all 0.3s ease;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.5rem;
          .icon {
            width: 1.2rem;
            height: 1.2rem;
          }
          &:hover {
            background: #66a63f;
          }
        }
      }
    }
  }
  .dropZone {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    backdrop-filter: blur(1px) saturate(180%);
    -webkit-backdrop-filter: blur(1px) saturate(180%);
    background-color: rgba(251, 251, 251, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.125);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    color: #909090;
    margin: 20px;
    border-radius: 30px;
    border: 2px dashed #222;
    display: none;

    &.active {
      display: flex;
    }
    .icon {
      width: 3rem;
      height: 3rem;
    }
  }
  .bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    background: url("/bg-illustration.svg");
    background-repeat: repeat-y;
    background-size: 100%;
    &.active {
      border: 10px solid #476cee;
    }
    .bgIllustration {
      width: 100%;
      height: 100%;
      background-repeat: repeat;
      display: none;
    }
    &::before {
      --size: 100vw;
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--cursor-colors);
      transition: width 0.2s ease, height 0.2s ease;
      opacity: 0.5;
    }
    /* background: radial-gradient(ellipse at var(--x) var(--y), #f3ec78, #af4261); */
  }
}

.main::before {
  --size: 10px;
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle closest-side, red, transparent);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

@media only screen and (max-width: 728px) {
  .main {
    .popup {
      max-width: calc(100% - 1rem);
      width: calc(100% - 3rem);
    }
    .bg {
      background-size: 190%;
    }
  }
}
