.must-sign-in, .processing-trail, .report-trail-section {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(2px);
  padding-top: 40px;
  z-index: 5;
  background-color: var(--stat-overlay);
  position: fixed;
  padding: 0;
}

.must-sign-in-trail {
  margin-left: 336px;
}

.overlay-article, .report-trail-article {
  border-radius: 20px;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  height: 120px;
  max-width: 240px;
  box-shadow: 0 0 6px var(--shadow);
  padding: 40px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding-bottom: 100px;
  margin: 0px 40px;
  font-size: 22px;
}

.overlay-article {
  margin-top: 180px;
}

.must-sign-in-trail .overlay-article {
  margin-top: 90px;
}

.report-trail-article {
  text-align: left;
  height: 400px;
  max-width: 320px;
  margin-top: 80px;
  padding: 40px 20px;
}

.report-trail-article h3 {
  width: 100%;
  margin: 0;
}

.main-form {
  display: grid;
  grid-template-columns: 20px 1fr;
  row-gap: 12px;
  column-gap: 8px;
  overflow-y: scroll;
}

.main-form::-webkit-scrollbar {
  display: none;
}

.report-trail-article p {
  font-size: 16px;
}

.report-trail-article label {
  font-size: 18px;
}

.report-trail-article button {
  padding: 12px 0;
  width: 100%;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  border: none;
  background-color: var(--highlight);
  color: var(--white-text);
  align-self: center;
  grid-column: span 2;
  margin-top: 20px;
  cursor: pointer;
  transition: opacity 0.3s;
}

button.report-button-unselectable {
  background-color: var(--support-section-item);
  opacity: 1 !important;
}

.report-trail-article button:hover {
  opacity: 0.8;
}

.trail-overlay {
  margin-top: 80px;
  height: 420px;
  max-width: 260px;
  padding: 20px;
}

.trail-overlay p {
  margin: 0 0 40px 0;
}

.processing-overlay {
  margin: 20vh 20px 0 20px;
  max-width: 400px;
  height: 300px;
  padding: 10px 20px;
  background-color: var(--foreground);
}

.processing-overlay h3, .processing-overlay {
  margin-bottom: 0;
}

.share-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  width: 80%;
}

.share-link img {
  height: 24px;
  margin-left: 12px;
  cursor: pointer;
  filter: invert(var(--image));
}

.share-link::after {
  content: 'Copied!';
  position: absolute;
  top: 42px;
  right: -16px;
  background: var(--tab);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shared-link::after {
  opacity: 1;
}

.share-link input {
  width: 80%;
  border: none;
  background-color: var(--link-box);
  padding: 8px 12px;
  border-radius: 8px;
  overflow-x: scroll;
}

.overlay-article .sign-in {
  margin-top: 20px;
  height: 40px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.overlay-article .sign-in:hover, .overlay-article .sign-up-button:hover {
  padding: 8px 20px;
}

.overlay-article .sign-up-button {
  margin-bottom: 40px;
}

.processing-overlay .sign-up-button {
  margin-bottom: 20px;
}

.popup-shown {
  overflow: hidden;
}

.overlay-hidden {
  display: none;
}

@media (max-width: 1000px) {
  .must-sign-in-trail {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .trail-overlay {
    margin: 40px 0 0 0;
  }
}

@media (max-height: 640px) {
  .must-sign-in-trail {
    z-index: 1000;
  }

  .trail-overlay {
    margin-top: calc(50vh - 230px);
    margin-top: calc(50dvh - 230px);
  }
}

@media (max-height: 580px) {
  .main-form {
    max-height: calc(60vh - 160px);
  }

  .report-trail-article {
    height: calc(100vh - 180px);
  }
}

@media (max-height: 500px) {
  .processing-trail {
    z-index: 1000;
  }

  .processing-overlay {
    margin-top: calc(50vh - 160px);
    margin-top: calc(50dvh - 160px);
  }

  .trail-overlay {
    max-width: 500px;
    height: 280px;
    margin-top: calc(50vh - 160px);
    margin-top: calc(50dvh - 160px);
  }
}

@media (max-height: 420px) {
  .report-trail-article p {
    display: none;
  }
}