/* make the site title in drawer menu fit without being truncated */
.md-nav--primary .md-nav__title[for="__drawer"] {
    font-size: .8rem
}

/* Center title in mobile navigation */
.md-nav__title[for="__drawer"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0rem;
  padding-top: 3.5rem;
}

/* Center logo container in mobile navigation */
.md-nav__title[for="__drawer"] .md-nav__button.md-logo {
  position: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  left: 0;
  margin: 0 auto;
}

/* Adjust logo image in mobile navigation */
.md-nav__title[for="__drawer"] .md-nav__button.md-logo img {
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ===== LINKTREE HOMEPAGE STYLES ===== */

/* Linktree Container */
.linktree-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, var(--md-primary-fg-color) 0%, var(--md-accent-fg-color) 100%);
  box-sizing: border-box;
}

.linktree-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

/* Logo Styles */
.linktree-logo {
  margin-bottom: 2rem;
}

.linktree-logo-img {
  max-width: 150px;
  height: auto;
  transition: transform 0.3s ease;
}

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

/* Tagline Styles */
.linktree-tagline {
  margin-bottom: 3rem;
}

.linktree-tagline p {
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.linktree-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.linktree-button {
  display: block;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--md-primary-fg-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.linktree-button:hover {
  background-color: white;
  color: var(--md-primary-fg-color--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--md-primary-fg-color);
  text-decoration: none;
}

.linktree-button:active {
  transform: translateY(0);
}

/* Mobile-first responsive adjustments */
@media screen and (max-width: 480px) {
  .linktree-container {
    padding: 1rem 0.5rem;
    min-height: 100vh;
  }
  
  .linktree-logo-img {
    max-width: 120px;
  }
  
  .linktree-tagline p {
    font-size: 1.1rem;
  }
  
  .linktree-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Tablet and larger screens */
@media screen and (min-width: 768px) {
  .linktree-logo-img {
    max-width: 180px;
  }
  
  .linktree-tagline p {
    font-size: 1.5rem;
  }
  
  .linktree-button {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
  }
}

/* Desktop enhancements */
@media screen and (min-width: 1024px) {
  .linktree-buttons {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ----- EMERGENCY EXIT BUTTON STYLES ----- */
#emergency-exit {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: var(--md-primary-fg-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  pointer-events: auto;
}

#emergency-exit:focus,
#emergency-exit:hover {
  background-color: #ff0000;
}
/* ----- END EMERGENCY EXIT BUTTON STYLES ----- */