body {
  margin: 0;
}

.fullscreen-black {
  position: fixed !important;
  top: 30px;
  left: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  background:
    radial-gradient(circle,
      #333 0%,
      #000 70%,
      #000 100%);
  /* Swirl overlay */
  border: 10px solid #cc8f00;
  box-sizing: border-box;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Ensure overlay stays inside */
  /*position: relative;*/
  /* Needed for ::before */
}

@keyframes rotate-infinity {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('spiral.png') repeat center center;
  background-size: cover;
  /* Mask: 3% opacity in center, 0% at edges */
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 50%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
  z-index: 1;
  animation: rotate-infinity 24s linear infinite;
}

.fullscreen-black>*:not(.pattern-overlay) {
  position: relative;
  z-index: 2;
}

.centered-image {
  max-width: 120px;
  max-height: 120px;
  width: 100%;
  height: auto;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  width: max-content;
  max-width: 100%;
}

.atorun-text {
  margin-top: 16px;
  color: #fff;
  font-size: 4.2rem;
  font-family: 'Anton', Arial, Helvetica, sans-serif;
  letter-spacing: 4px;
  text-shadow: none;
  font-style: italic;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.atorun-subtext {
  margin-top: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-family: 'Anton', Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
  text-shadow: none;
  text-align: center;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (max-width: 1000px) {
  .fullscreen-black {
    border: none;
    top: unset;
    left: unset;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #333 0%, #000 120%)
  }
  .pattern-overlay {
    scale: 1.8;
  }

  .center-content {
    scale: 0.7;
  }
}

#popup-container {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
}

#popup-content {
  background: #222;
  color: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  min-width: 220px;
  box-shadow: 0 8px 32px #000a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

#popup-title {
  margin: 0 0 18px 0;
  font-family: 'Anton', Arial, sans-serif;
  font-size: 1.3rem;
}

.popup-links {
  color: #cc8f00;
  margin: 6px 0;
  text-decoration: none;
  font-family: 'Anton', Arial, Helvetica, sans-serif;
}