:root {
  --bg-color: #000000;
}

html {
  color: #000000;
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-color);
  background-size: 400% 400%;
  animation: gradient 60s ease infinite;
  /*height: 100vh;*/
}

h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: 100;
}

.logo-frame {
  position: relative;
  width: 100%;
  height: 28rem;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(-45deg, #050E2F, #031F72, #041759, #08113A);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  h2 {
    font-family: "Silkscreen", sans-serif;
    margin-top: 230px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    letter-spacing: -0.1em;
  }

  #pixelians {
    align-content: center;
    position: absolute;

    margin: 0 auto;
    width: 30rem;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  #portal {
    align-content: center;
    position: absolute;
    margin: -55px auto 0;
    width: 30rem;
    z-index: 0;
    animation: spin infinite 130s linear;
    transform-origin: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }


  #pixelians,#portal {
    margin-top: -55px;
  }
}

#portal {
  opacity: 0.5;
}

#pixelians {
  opacity: 0.9;
  transform: scale(1);
}

.logo-frame:hover #portal {
  opacity: 1;
  transform: scale(0.95);
}

.logo-frame:hover h2 {
  opacity: 1;
  transform: scale(1.05);
}

.logo-frame:hover #pixelians {
  opacity: 1;
  transform: scale(1.05);
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to top, var(--bg-color), transparent 100%),
    linear-gradient(to bottom, var(--bg-color), transparent 0%),
    linear-gradient(to left, var(--bg-color), transparent 0%),
    linear-gradient(to right, var(--bg-color), transparent 0%);
  mix-blend-mode: multiply;
}

#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

#startingPoint {
  .button.d{
    margin-top: -50px;
  }
  margin-top: 0px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.button.dwnpp {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button.dwnpp:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.button.x {
  display: flex;
  padding: 0.5rem 1.4rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  align-items: center;
  border-radius: 0.3rem;
  min-width: 260px;
  max-width: 260px;
  border: 1px solid rgba(86, 98, 246, 0.25);
  gap: 0.75rem;
  color: #ffffff;
  background-color: #5662f6;
  cursor: pointer;
  transition: all 0.6s ease;
  text-decoration: none;
}

.button.x svg {
  height: 24px;
  width: 24px;
  fill: #fff;
  flex-shrink: 0;
}

.button.x span {
  flex: 1;
  text-align: center;
}

.button.d {
  z-index: 10;
  margin-bottom: 25px;
  border: 1px solid rgba(46, 46, 46, 0.25);
  background-color: #212121;
}

.button.s {
  margin-top: 25px;
  border: 1px solid rgba(246, 147, 86, 0.25);
  background-color: #ea853c;
}

.button.x svg {
  height: 24px;
  width: 24px;
  fill: #fff;
  margin-right: 0.5rem;
}

.button.x:hover {
  transform: scale(1.02);
  background-color: rgb(119, 133, 204);
  box-shadow: 0 2px 4px rgba(119, 133, 204, 0.1);
}

.button.d:hover {
  transform: scale(1.02);
  background-color: rgb(66, 66, 66);
  box-shadow: 0 2px 4px rgba(119, 204, 123, 0.1);
}

.button.s:hover {
  transform: scale(1.02);
  background-color: rgb(232, 163, 85);
  box-shadow:  0 2px 4px rgba(204, 177, 119, 0.1);
}

.button.x:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

.button.x:active {
  transform: scale(0.98);
  opacity: 0.8;
}

@media (max-width: 480px) {
  .button.x {
    max-width: 100%;
  }
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  font-family: Arial;
  opacity: 0;
}

.modal.show {
  display: block;
  background-color: rgba(0,0,0,0.7);
  opacity: 1;
}

/* Modal Content with Smooth Transition */
.modal-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
  margin: 15% auto;
  padding: 25px;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  width: 80%;
  max-width: 500px;
  opacity: 0;
  transition: all 0.4s ease-out;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Close Button */
.close {
  color: #777;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: #ffffff;
  text-decoration: none;
}

