/* Full-page centered background image */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: rgb(70, 70, 70);
  background-image: url("sources/background.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 6rem;
  background: rgba(0, 0, 0, 0.35);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 2rem;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  opacity: 0.8;
  text-align: center;
  z-index: 1;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

header a {
  margin-top: 1.0rem;
  display: inline-block;
  padding: 0.5rem 1rem; 
  color: white;
}

header {
  margin-bottom: 3.5rem;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
}

section.linktree {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.link-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.group-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  width: 100%;
}

.link-icon {
  width: clamp(50px, 10vw, 80px);
  height: clamp(50px, 10vw, 80px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
  color: transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.link-icon img {
  max-width: 70%;
  max-height: 70%;
  display: block;
}

.link-icon:hover,
.link-icon:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}


.modal-content {
  background: #111;
  color: white;
  max-width: 500px;
  margin: 10% auto;
  padding: 25px;
  line-height: 1.6;
  background-image: url("sources/texture.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.logo {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 128px;
  height: auto;

}