html, body {
  height: 200vh;
  margin: 0;
  font-family: 'Tahoma', sans-serif;
  background: linear-gradient(120deg, var(--dark-color) 0%, var(--background-color) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--dark-color);
}
*{
  transition: smooth;
}

/* Top-right powered by */
.powered-by {
  position: fixed;
  bottom: 12px;
  left: 20px;            /* left because dir=rtl (top-right visually) */
  right: auto;
  z-index: 9999;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.12);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.powered-by > strong > a {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Navbar (fades in) */
nav#Navbar {
  position: fixed;
  top: 10px;
  left: 0;
  width: 98%;
  margin: 1%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: var(--light-color);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease; /* animate opacity */
}

nav#Navbar.show {
  opacity: 1;
  pointer-events: auto;
}

/* Nav title (fades + slides) */
#NavTitle {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity .35s ease, transform .35s ease, letter-spacing .35s ease;
  color: var(--light-color);
  letter-spacing: 10px;
}
#NavTitle.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  letter-spacing: 10px;
}

/* Hero section */
section.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* Title: we animate font-size & letter-spacing (CSS transition applied) */
h1#TheTitle {
  margin: 0;
  color: var(--main-color);
  font-weight: 800;
  /* large default; JS will change inline font-size for smooth transitions */
  font-size: 12rem;
  letter-spacing: 48px;
  transition: font-size .25s ease, letter-spacing .25s ease, transform .25s ease;
  line-height: 0.9;
  text-transform: uppercase;
}

/* Login card */
.login-card {
  max-width: 520px;
  margin: 100px auto 100px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  margin-bottom: 100px;
}

/* Responsive caps so numbers are reasonable */
@media (max-width:1400px) { h1#TheTitle { font-size: 11rem; letter-spacing:44px; } }
@media (max-width:1200px) { h1#TheTitle { font-size: 9rem; letter-spacing:36px; } }
@media (max-width:1035px) { h1#TheTitle { font-size: 7rem; letter-spacing:28px; } }
@media (max-width:830px)  { h1#TheTitle { font-size: 5rem; letter-spacing:20px; } }
@media (max-width:620px)  { h1#TheTitle { font-size: 3.8rem; letter-spacing:12px; } }
@media (max-width:450px)  { h1#TheTitle { font-size: 3rem; letter-spacing:8px; } }