body {
  margin: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.5s, color 0.5s;
}
:root {
  --bg: #f5f5f7;
  --text: #111;
  --accent: #0071e3;
}
body.theme-dark {
  --bg: #181818;
  --text: #f5f5f7;
  --accent: #0a84ff;
}
body.theme-pink {
  --bg: #ffe4f0;
  --text: #a0005e;
  --accent: #ff69b4;
}
body.theme-green {
  --bg: #e6f9e6;
  --text: #006400;
  --accent: #00c853;
}
header {
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 2rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.5s;
}
header h1 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: -1px;
}
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  position: relative;
}
nav ul li {
  position: relative;
}
.dropdown .dropbtn {
  cursor: pointer;
  user-select: none;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: var(--bg);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-radius: 12px;
  z-index: 100;
  top: 2.2rem;
  left: 0;
  animation: dropdownFade 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-content a {
  color: var(--text);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-size: 1.05rem;
}
.dropdown-content a:hover {
  background: var(--accent);
  color: #fff;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}
nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
nav ul li a:hover {
  background: var(--accent);
  color: #fff;
}
.theme-switcher {
  display: flex;
  gap: 0.5rem;
}
.theme-switcher button {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border 0.3s;
}
.theme-switcher button:hover {
  background: var(--accent);
  color: #fff;
}
main {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.emoji {
  font-size: 1.2em;
  vertical-align: middle;
}
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, transform 0.2s;
}
.download-btn:hover {
  background: #111;
  transform: scale(1.05);
}
footer {
  text-align: center;
  padding: 1.5rem 0 0.7rem 0;
  color: var(--text);
  font-size: 1rem;
  opacity: 0.8;
}
@media (max-width: 800px) {
  main {
    max-width: 98vw;
    padding: 1rem;
  }
  header {
    padding: 1rem 1rem 0.7rem 1rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  .dropdown-content {
    position: static;
    min-width: unset;
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    top: unset;
    left: unset;
  }
  nav ul {
    gap: 0.5rem;
  }
}
