html, body {
  min-height: 100%;
  overflow-x: hidden;
}
:root {
  color-scheme: light dark;
  --bg-color: light-dark(white, #121212);
  --text-color: light-dark(#333, #eee);
  --muted-text-color: light-dark(#5c6670, #cfd6de);
  --accent-color: light-dark(#0073e6, #66aaff);
  --button-hover-text: light-dark(white, #121212);
}
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  height: 100svh;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 460px);
}
.intro {
  display: none;
}
html:lang(en) .intro.en, html:lang(hu) .intro.hu {
  display: revert;
}
.controls {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.controls button {
  border: 1px solid var(--accent-color);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.controls button:hover {
  background: var(--accent-color);
  color: var(--button-hover-text);
}
.lang-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.flag {
  width: 1rem;
  height: 0.72rem;
  border-radius: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.flag-hu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23477050'/%3E%3Crect width='3' height='1.333' fill='%23fff'/%3E%3Crect width='3' height='0.666' fill='%23ce2939'/%3E%3C/svg%3E");
}
.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23c8102e' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}
img.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent-color);
}
.intro h1 {
  margin: 0 0 25px 0;
  font-weight: 700;
  font-size: 2rem;
}
.intro h2 {
  margin: -12px 0 24px 0;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--muted-text-color);
}
.intro h2 a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}
.intro h2 a:hover {
  color: var(--accent-color);
}
.icons {
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 0.6rem;
}
.icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 44px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  touch-action: manipulation;
}
.icons i {
  font-size: 2rem;
}
.icons a:hover {
  color: var(--accent-color);
}
@media (max-width: 640px) {
  .controls {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 0.75rem;
  }
  .controls button {
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
  }
  main {
    width: min(100%, 360px);
  }
  .intro h1 {
    margin: 0 0 20px 0;
    font-size: 1.85rem;
  }
  .intro h2 {
    margin: -10px 0 20px 0;
    font-size: 1rem;
  }
  .icons {
    gap: 1rem 0.6rem;
  }
  .icons a {
    min-width: 40px;
  }
  .icons i {
    font-size: 1.8rem;
  }
}
