/* Reset és alap betűtípus */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

/* Háttér PC-re */
body {
  background: url("./images/pc.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* Sötét overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: 0;
}

/* Mobil háttér */
@media (max-width: 768px) {
  body {
    background: url("./images/telefon.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
}

/* Tartalom overlay fölött */
main {
  position: relative;
  z-index: 1;
}

/* ---------- Fejléc ---------- */
header {
  margin-top: 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header img {
  width: 9em;
  height: 9em;
  border-radius: 100%;
  border: 4px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

header h1 a {
  display: inline-block;
  margin-top: 0.8em;
  padding: 0.4em 0.9em;
  font-size: 1em;
  font-weight: bold;
  color: #000;
  background: rgba(255,255,255,0.7);
  border-radius: 1em;
  text-decoration: none;
  text-shadow: 1px 1px 2px #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ---------- Linklista ---------- */
ul {
  list-style: none;
  margin: 2em auto;
  padding: 0;
  max-width: 480px;
}

ul li {
  display: flex;
  justify-content: center;  /* gomb középre */
  margin: 1em 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.2em;
  background: rgba(255,255,255,0.7);
  color: #000;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.9em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);

  /* Azonos szélességű gombok */
  width: 300px;
  max-width: 100%;
}

ul li a img {
  flex-shrink: 0;
}

/* ---------- Lábléc ---------- */
footer {
  margin-top: 2em;
  padding-bottom: 1.5em;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px #000;
}

/* ---------- Mobil méretezés ---------- */
@media (max-width: 480px) {
  header img {
    width: 7em;
    height: 7em;
  }

  header h1 a {
    font-size: 0.9em;
    padding: 0.3em 0.6em;
  }

  ul li a {
    font-size: 0.95rem;
    gap: 0.5em;
    width: 300px;
    max-width: 90%;  /* mobilon ne nyúljanak ki */
  }
}
