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

body, html {
  height: 100%;
  font-family: "Aileron", sans-serif;
  color: white;
}

/* Background */
.background {
  background: url("background.webp") center/cover no-repeat;
  filter: blur(4px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Main container */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  height: 100vh;
  margin: auto;
  padding: 1.5rem;
}

/* Logo */
.logo {
  width: 85%;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Links */

.links-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  margin-top: 0;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(20, 20, 20, 0.8);
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: all 0.2s ease-in-out;
}

.links a:hover {
  background: #bc00dd;
  color: white;
  transform: translateY(-3px);
}
/* Icons */
.icon-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.icon-btn {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(20, 20, 20, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.25rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.icon-btn:hover,
.icon-btn:focus {
  background: #bc00dd;
  transform: translateY(-4px);
}

/* QR Code Modal */
#qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

#qr-modal.active {
  display: flex;
}

.qr-content {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.qr-link-text {
  font-size: 0.9rem;
  color: black;
  text-align: center;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: break-word;
  max-width: 280px;
}

.qr-instruction {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* QR Code sizing */
#qrcode,
#qrcode canvas,
#qrcode img {
  width: 280px !important;
  height: 280px !important;
}

@media (max-width: 480px) {
  .qr-content {
    padding: 1rem;
    max-width: 95vw;
  }

  .qr-link-text {
    font-size: 0.8rem;
    max-width: 220px;
  }

  #qrcode,
  #qrcode canvas,
  #qrcode img {
    width: 220px !important;
    height: 220px !important;
  }
}
