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

*::selection {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

*::-moz-selection {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  /* Modern Color Palette */
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --secondary-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --accent-gradient: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  --surface-gradient: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);

  /* Colors */
  --primary-color: #10b981;
  --secondary-color: #059669;
  --accent-color: #34d399;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a; /* Backgrounds */
  --bg-primary: #0c0c0c;
  --bg-secondary: #1a1a1a;
  --bg-surface: #1e1e1e;
  --bg-glass: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 50px rgba(16, 185, 129, 0.3); /* Typography */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  cursor: default;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.625rem;
  --radius-2xl: 0.75rem; /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
  --transition-slow: 0.4s ease-out;
}

body {
  min-height: 100vh;
  background: var(--dark-gradient);
  color: var(--text-primary);
}

main {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100); /* Fallback using custom property */
  min-height: 100dvh; /* Dynamic viewport height for modern browsers */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-lg);
  padding-bottom: calc(7vh + var(--space-lg)); /* Add space for fixed footer */
  padding-bottom: calc(var(--vh, 1vh) * 7 + var(--space-lg)); /* Fallback */
  position: relative;
  overflow: hidden;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(5, 150, 105, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.top-logo-container {
  width: 100%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.top-logo-container img {
  width: min(20%, 200px);
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(16, 185, 129, 0.3));
  transition: transform var(--transition-normal);
}

.top-logo-container img:hover {
  transform: scale(1.05);
}

.main-container {
  width: 100%;
  max-width: 500px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

/* Tab System */
.tab-container {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 300px;
  margin-bottom: var(--space-lg);
}

.tab-btn {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: calc(var(--radius-lg) - 4px);
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Tab Content */
.tab-content {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WiFi Form */
.wifi-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: 400px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  font-size: 1.2rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: color var(--transition-normal);
  border-radius: var(--radius-sm);
}

.password-toggle:hover {
  color: var(--primary-color);
  background: rgba(16, 185, 129, 0.1);
}

.select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 20px;
  padding-right: 50px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select option {
  background-color: #1f2937;
  color: #ffffff;
  padding: 10px;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
}

.select option:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.select option:checked {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-gradient);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.input {
  width: 100%;
  max-width: 400px;
  padding: 1.6rem 2rem;
  font-size: 1.6rem;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.input:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.input:active {
  transform: translateY(0);
}

/* Input shake animation for validation */
.shake-horizontal {
  animation: shake-horizontal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  border-color: var(--error-color);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(239, 68, 68, 0.1);
}

@keyframes shake-horizontal {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    transform: translateX(10px);
  }
  80% {
    transform: translateX(8px);
  }
  90% {
    transform: translateX(-8px);
  }
}

.submit {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.submit:hover::before {
  left: 100%;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit:active {
  transform: translateY(0);
  transition: transform var(--transition-fast);
}

.Qr-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.3s ease-out;
}

.Qr-container.exit-Qr {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.qr-modal {
  background: var(--surface-gradient);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loader */
.loader {
  width: 60px;
  height: 60px;
  position: relative;
  margin: var(--space-xl) 0;
}

.loader div {
  width: 8%;
  height: 24%;
  background: var(--primary-gradient);
  position: absolute;
  left: 50%;
  top: 30%;
  opacity: 0;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  animation: fade458 1s linear infinite;
}

.deactivate-loader {
  display: none !important;
}

@keyframes fade458 {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}

.loader .bar1 {
  transform: rotate(0deg) translate(0, -130%);
  animation-delay: 0s;
}
.loader .bar2 {
  transform: rotate(30deg) translate(0, -130%);
  animation-delay: -1.1s;
}
.loader .bar3 {
  transform: rotate(60deg) translate(0, -130%);
  animation-delay: -1s;
}
.loader .bar4 {
  transform: rotate(90deg) translate(0, -130%);
  animation-delay: -0.9s;
}
.loader .bar5 {
  transform: rotate(120deg) translate(0, -130%);
  animation-delay: -0.8s;
}
.loader .bar6 {
  transform: rotate(150deg) translate(0, -130%);
  animation-delay: -0.7s;
}
.loader .bar7 {
  transform: rotate(180deg) translate(0, -130%);
  animation-delay: -0.6s;
}
.loader .bar8 {
  transform: rotate(210deg) translate(0, -130%);
  animation-delay: -0.5s;
}
.loader .bar9 {
  transform: rotate(240deg) translate(0, -130%);
  animation-delay: -0.4s;
}
.loader .bar10 {
  transform: rotate(270deg) translate(0, -130%);
  animation-delay: -0.3s;
}
.loader .bar11 {
  transform: rotate(300deg) translate(0, -130%);
  animation-delay: -0.2s;
}
.loader .bar12 {
  transform: rotate(330deg) translate(0, -130%);
  animation-delay: -0.1s;
}

.qr-code,
#qr-canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: white;
  padding: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

#qr-canvas img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.buttonContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.downloadBtnContainer {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-lg);
}

.buttonRow {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.downloadHeading {
  color: var(--text-primary);
  font-size: 2.4rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.download {
  flex: 1;
  min-width: 80px;
  height: 45px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.download:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.download:active {
  transform: translateY(0);
}

.copy-btn.copied {
  background: var(--success-gradient) !important;
  border-color: transparent !important;
  color: white !important;
}

.copy-btn.copied::before {
  content: "";
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--surface-gradient);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  z-index: 10000;
  transform: translateX(400px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  max-width: 300px;
}

@media screen and (max-width: 500px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
    padding: var(--space-sm) var(--space-md);
  }

  .toast.show {
    transform: translateY(0);
  }

  .toast-message {
    font-size: 1.2rem;
  }
}

.toast.show {
  transform: translateX(0);
}

.toast.hidden {
  display: none;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-message {
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.exit {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.line1,
.line2 {
  position: absolute;
  width: 45%;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition-normal);
  border-radius: 1px;
}

.line1 {
  transform: rotate(45deg);
}

.line2 {
  transform: rotate(-45deg);
}

.exit:hover {
  background: var(--error-color);
  transform: scale(1.1);
  border-color: var(--error-color);
}

.exit:hover .line1,
.exit:hover .line2 {
  background: white;
}

.footerContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 7vh;
  height: calc(var(--vh, 1vh) * 7); /* Fallback using custom property */
  height: 7dvh; /* Dynamic viewport height for modern browsers */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.footerContainer p {
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  text-align: center;
}

.footerContainer a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-normal);
}

.footerContainer a:hover {
  color: var(--accent-color);
}

.fa-copyright {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin: 0 var(--space-xs);
}
/* Responsive Design */
@media screen and (max-width: 1920px) {
  html {
    font-size: 60%;
  }
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 58%;
  }

  .top-logo-container img {
    width: min(25%, 250px);
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .top-logo-container img {
    width: min(35%, 200px);
  }

  .main-container {
    gap: var(--space-xl);
    padding: var(--space-md);
  }

  .input {
    font-size: 1.5rem;
    padding: 1.4rem 1.8rem;
  }

  .submit {
    font-size: 1.5rem;
    padding: 1.4rem 2.8rem;
  }

  .qr-modal {
    padding: var(--space-xl);
    margin: var(--space-md);
  }

  .downloadHeading {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 500px) {
  html {
    font-size: 52%;
  }

  .top-logo-container img {
    width: min(50%, 150px);
  }

  .main-container {
    gap: var(--space-lg);
  }

  .tab-btn {
    font-size: 1.2rem;
    padding: var(--space-sm) var(--space-md);
  }

  .wifi-form {
    max-width: 100%;
  }

  .form-group label {
    font-size: 1.2rem;
  }

  .input {
    font-size: 1.4rem;
    padding: 1.2rem 1.6rem;
  }

  .submit {
    font-size: 1.4rem;
    padding: 1.2rem 2.4rem;
  }

  .buttonRow {
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 280px;
    margin: 0 auto;
  }

  .download {
    width: 100%;
    min-width: 120px;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    height: 40px;
  }

  .copy-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
    font-weight: 700;
  }

  .downloadBtnContainer {
    max-width: 300px;
    width: 100%;
  }

  .qr-modal {
    padding: var(--space-md);
    margin: var(--space-md);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
  }

  .downloadHeading {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
  }

  .exit {
    width: 35px;
    height: 35px;
    top: var(--space-sm);
    right: var(--space-sm);
    z-index: 100;
  }

  .qr-code,
  #qr-canvas {
    max-width: calc(100vw - 6rem);
    margin-bottom: var(--space-md);
  }
}

@media screen and (max-width: 375px) {
  html {
    font-size: 50%;
  }

  .top-logo-container img {
    width: min(60%, 120px);
  }

  .main-container {
    gap: var(--space-md);
  }

  .input {
    font-size: 1.3rem;
    padding: 1rem 1.4rem;
  }

  .submit {
    font-size: 1.3rem;
    padding: 1rem 2rem;
  }

  .loader {
    width: 50px;
    height: 50px;
  }

  .qr-code,
  #qr-canvas {
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
  }

  #qr-canvas img {
    max-width: 100%;
    height: auto;
  }

  .exit {
    width: 40px;
    height: 40px;
    top: var(--space-md);
    right: var(--space-md);
  }

  .qr-modal {
    padding: var(--space-sm);
    margin: var(--space-sm);
  }

  .download {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    height: 36px;
  }

  .downloadHeading {
    font-size: 1.6rem;
  }

  .buttonRow {
    max-width: 260px;
  }

  .footerContainer p {
    font-size: 1.2rem;
    padding: 0 var(--space-sm);
  }

  .footerContainer {
    padding: var(--space-sm) var(--space-md);
  }
}

@media screen and (max-width: 320px) {
  html {
    font-size: 48%;
  }

  .main-container {
    gap: var(--space-sm);
  }

  .input {
    font-size: 1.2rem;
    padding: 0.8rem 1.2rem;
  }

  .submit {
    font-size: 1.2rem;
    padding: 0.8rem 1.6rem;
  }

  .qr-modal {
    padding: var(--space-md);
    margin: var(--space-xs);
    max-width: calc(100vw - 1rem);
  }

  .downloadHeading {
    font-size: 1.8rem;
  }

  .download {
    height: 35px;
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  .buttonRow {
    max-width: 220px;
  }

  .exit {
    width: 30px;
    height: 30px;
    top: 5px;
    right: 5px;
  }

  .qr-code,
  #qr-canvas {
    max-width: calc(100vw - 3rem);
  }
}
