body {
  font-family: 'Helvetica', sans-serif;
  background: #f6f0fa;
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 180vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #6e4da7;
  color: #fff;
  padding: 0;
  font-size: large;
  border: #533c78;
  border-radius: 0.6rem;
  box-shadow: 0 3px 10px rgba(118, 75, 192, 0.08);
}
nav {
  display: flex;
  gap: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.169);
}

nav a {
  flex: 1;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  margin: 0;
  font-weight: 500;
  font-family: inherit;
  font-size: inherit;
  padding: 0.8rem 0.8rem 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: underline;
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.3),
    inset -1px -1px 0 rgba(0, 0, 0, 0.2);
}

nav a:hover {
  color: #e9d5ff;
  background-color: rgba(22, 3, 3, 0.05);
}

nav a.active {
  background-color: rgba(62, 4, 109, 0.1);
  color: #ffffff;
}

/* Emoji tooltip styles */
span[title] {
  cursor: help;
  position: relative;
  border-bottom: 1px dotted currentColor;
}

span[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.6rem;
  background: #333;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.85rem;
  z-index: 1000;
  margin-bottom: 0.3rem;
  pointer-events: none;
}

span[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  margin-bottom: -0.2rem;
  z-index: 1000;
  pointer-events: none;
}


main {
  flex: 1;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 0.5rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(124,58,237,0.07);
  padding: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main {
    max-width: 100%;
    margin: 0 0.5rem 0.5rem 0.5rem;
    padding: 1rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  main {
    margin: 0 0.25rem 0.5rem 0.25rem;
    padding: 1rem;
  }
}
footer {
  background: #6d28d9;
  color: #fff;
  padding: 0.4rem 2rem;  
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  position: sticky;
  bottom: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
  flex: 1;
}

footer a:first-child {
  text-align: left;
}

footer a:last-child {
  text-align: right;
}

footer p {
  margin: 0;
  flex: 1;
  text-align: center;
}

footer p a {
  flex: none;
}

/* Disclaimer - only visible when scrolled past footer */
#disclaimer {
  background: #f6f0fa;
  color: #666;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  border-top: 1px solid #e9d5ff;
  position: relative;
}

#disclaimer p {
  margin: 0;
  letter-spacing: 0.02em;
}

h1, h3 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

h2 {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

/* Link styles */
main a {
  color: #0563c1;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid #e9d5ff;
}

main a:hover {
  color: #0563c1;
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(109, 40, 217, 0.4),
    inset 1px 1px 3px rgba(255, 255, 255, 0.4),
    inset -1px -1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background-color 0.2s;
  z-index: 1000;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop i {
  font-size: 1.8rem;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(109, 40, 217, 0.5),
    inset 1px 1px 3px rgba(255, 255, 255, 0.4),
    inset -1px -1px 3px rgba(0, 0, 0, 0.2);
}
