* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #FF3554;
  --blue: #3A99FF;
}

html, body {
  height: 100%;
}

body {
  color: #FFF;
  background-color: #000;
  background-image: url(../brand/sayu__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%;
}

.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;
}

.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);
  padding: 3rem;
  border-radius: 0.75rem;
  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;
  opacity: 0.75;
}

.links a:nth-child(1) {
  --buttonColor: var(--red);
}

.links a:nth-child(2) {
  --buttonColor: var(--blue);
}

.links a:nth-child(3) {
  --buttonColor: #FFF;
}

.links a:nth-child(4) {
  --buttonColor: orange;
}

@media (max-width: 1200px) {
  main {
    padding: 3rem 2rem;
  }

  .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;
  }
}
