* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #FF3554;
  --blue: #3A99FF;
  --text-dimmed: rgba(255, 255, 255, 0.75);
}

html, body {
  height: 100%;
}

body {
  color: #FFF;
  background-color: #000;
  background-image: url(/suyu__Discord-Invite-Background.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  min-height: 100%;
}

button {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  color: inherit;
  font-size: inherit;
}

a {
  text-decoration: none;
  color: var(--blue);
}

a:hover {
  text-decoration: underline;
}

.bg-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

main {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 5rem;
  padding: 5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.branding img {
  height: 5rem;
}

.branding p {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.7;
}

.footer p {
  font-size: 1.25rem;
  line-height: 1.7;
}

.download-button {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.5rem;
  border: 0.25rem solid var(--red);
  border-left-color: var(--blue);
  border-bottom-color: var(--blue);
  border-radius: 0.75rem;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.download-button:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.download-button i {
  font-size: 2.5rem;
  margin-right: 1.5rem;
}

.download-button span {
  font-weight: 600;
}

.popup-overlay {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-overlay.hide {
  display: none;
}

.popup {
  text-align: left;
  background-color: #1a1a1a;
  border: 0.063rem solid var(--red);
  border-left-color: var(--blue);
  border-bottom-color: var(--blue);
  border-radius: 0.75rem;
  max-width: 45rem;
}

.popup-body {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.popup-body h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.popup-body p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dimmed);
}

.popup-buttons {
  display: flex;
  justify-content: flex-end;
}

.popup-button {
  font-size: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 0.063rem solid #FFF;
  cursor: pointer;
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 0.25rem var(--buttonColor);
  border-radius: 0.75rem;
  padding: 3rem;
  transition: opacity 0.2s, transform 0.2s;
}

.links a:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.links a i {
  display: block;
  font-size: 8rem;
  color: var(--buttonColor);
}

.links a h2 {
  margin-top: 2rem;
  font-size: 2rem;
}

.links a p {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-dimmed);
}

.links a:nth-child(1) {
  --buttonColor: orange;
}

.links a:nth-child(2) {
  --buttonColor: var(--blue);
}

.links a:nth-child(3) {
  --buttonColor: #FFF;
}

@media (max-width: 1200px) {
  main {
    padding: 3rem 2rem;
  }

  .download-button {
    padding: 1.25rem;
  }

  .download-button span {
    font-size: 1.5rem;
  }

  .download-button i {
    font-size: 1.75rem;
  }

  .popup {
    height: 100%;
    border-radius: 0;
    overflow: auto;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .links a {
    padding: 2.5rem 1.5rem;
  }

  .links a h2 {
    font-size: 1.5rem;
  }

  .links a p {
    font-size: 1rem;
  }
}
