/* Csillám Üdvözlőlap Expressz — szándékosan ronda, 2003-as stílus.
   Minden szín és animáció direkt ilyen. Nem bug, hanem feature. */

@keyframes szivarvany {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes villog { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
@keyframes pulzal { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes forog  { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes pereg  { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@keyframes porog  { to { transform: rotate(360deg); } }

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  padding: 0 0 60px;
  font-family: "Comic Sans MS", "Segoe UI", cursive, sans-serif;
  font-size: 16px;
  color: #12005e;
  background: linear-gradient(120deg, #ff00cc, #ffee00, #00ffcc, #3300ff, #ff0066);
  background-size: 400% 400%;
  animation: szivarvany 9s ease infinite;
}

.kozep { max-width: 940px; margin: 0 auto; padding: 0 14px; }

/* ---------- fejléc ---------- */
header {
  text-align: center;
  padding: 18px 10px 10px;
  background: #000080;
  border-bottom: 6px ridge #ffd700;
}
header h1 {
  margin: 0;
  font-size: 40px;
  color: #ffd700;
  text-shadow: 2px 2px 0 #ff00cc, 4px 4px 0 #00ffcc;
  animation: pulzal 2.2s ease-in-out infinite;
}
header .mottó { color: #00ffcc; font-size: 15px; margin: 6px 0 0; }

.futoszoveg {
  overflow: hidden; white-space: nowrap;
  background: #ffff00; color: #ff0000; font-weight: bold;
  border-top: 3px dashed #ff00cc; border-bottom: 3px dashed #ff00cc;
  padding: 5px 0;
}
.futoszoveg span { display: inline-block; animation: pereg 14s linear infinite; }

nav {
  text-align: center; padding: 9px 4px;
  background: #00008b; border-bottom: 4px double #ffd700;
}
nav a {
  color: #ffff00; font-weight: bold; text-decoration: underline;
  margin: 0 9px; font-size: 16px;
}
nav a:hover { color: #00ffcc; background: #ff00cc; }

/* ---------- dobozok ---------- */
.doboz {
  background: #fffacd;
  border: 5px ridge #ff00cc;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}
.doboz h2 {
  margin: 0 0 12px;
  font-size: 25px;
  color: #ff0066;
  text-shadow: 1px 1px 0 #ffd700;
  border-bottom: 3px dotted #00008b;
  padding-bottom: 6px;
}
.doboz h3 { color: #00008b; margin: 18px 0 6px; font-size: 18px; }

.villogo { animation: villog 1.1s steps(1) infinite; color: #ff0000; font-weight: bold; }
.uj-jelzo {
  display: inline-block; background: #ff0000; color: #ffff00;
  font-size: 11px; padding: 1px 6px; border-radius: 3px;
  animation: forog 0.6s ease-in-out infinite alternate;
}

/* ---------- űrlapok ---------- */
label { display: block; margin: 12px 0 4px; font-weight: bold; color: #00008b; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; padding: 8px 10px; font-size: 15px;
  font-family: "Comic Sans MS", "Segoe UI", cursive, sans-serif;
  border: 3px inset #9370db; border-radius: 5px; background: #fff;
}
textarea { min-height: 92px; resize: vertical; }
.gomb {
  display: inline-block; margin-top: 16px; padding: 11px 26px;
  font-family: "Comic Sans MS", "Segoe UI", cursive, sans-serif;
  font-size: 17px; font-weight: bold; color: #fff; cursor: pointer;
  background: linear-gradient(#ff66cc, #cc0066);
  border: 4px outset #ffd700; border-radius: 8px;
  text-shadow: 1px 1px 2px #000;
}
.gomb:hover { background: linear-gradient(#ffcc00, #ff6600); }
.gomb:disabled { filter: grayscale(1); cursor: not-allowed; }
.gomb.masodlagos { background: linear-gradient(#99ccff, #3366cc); font-size: 14px; padding: 7px 16px; }
.jelolo { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.jelolo input { width: auto; margin-top: 4px; }
.jelolo label { margin: 0; font-weight: normal; }

/* ---------- üzenetek ---------- */
.hiba {
  background: #ffe4e1; border: 3px solid #ff0000; color: #b00000;
  padding: 10px 13px; border-radius: 6px; margin-top: 14px; font-weight: bold;
}
.siker {
  background: #e0ffe0; border: 3px solid #00a000; color: #006400;
  padding: 10px 13px; border-radius: 6px; margin-top: 14px; font-weight: bold;
}
.sugo { font-size: 13px; color: #555; margin-top: 4px; }

/* ---------- pörgő (hamis szerverválasz) ---------- */
.porgo {
  display: inline-block; width: 22px; height: 22px; vertical-align: middle;
  border: 4px solid #ffd700; border-top-color: #ff0066; border-radius: 50%;
  animation: porog 0.7s linear infinite; margin-right: 9px;
}
.toltes {
  margin-top: 14px; padding: 10px 13px; background: #000080; color: #ffff00;
  border-radius: 6px; font-weight: bold;
}

/* ---------- lapok ---------- */
.lap-racs { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.lap-kartya {
  position: relative; display: block; text-decoration: none; text-align: center;
  background: #fff; border: 4px ridge #00ced1; border-radius: 8px;
  padding: 14px 8px 12px; color: #12005e; cursor: pointer;
}
.lap-kartya:hover { border-color: #ff00cc; background: #fffacd; }
.lap-kartya .abra { font-size: 46px; line-height: 1.1; }
.lap-kartya .cim { display: block; margin-top: 7px; font-weight: bold; font-size: 15px; }
.lap-kartya .kat { display: block; font-size: 12px; color: #777; }
.premium-jelzo {
  position: absolute; top: -10px; right: -8px;
  background: #ffd700; color: #8b0000; font-size: 11px; font-weight: bold;
  padding: 3px 7px; border: 2px solid #8b0000; border-radius: 4px;
  transform: rotate(9deg);
}

/* ---------- táblázat ---------- */
table { width: 100%; border-collapse: collapse; margin-top: 12px; background: #fff; }
th, td { border: 2px solid #9370db; padding: 7px 9px; text-align: left; font-size: 14px; }
th { background: #9370db; color: #fff; }

/* ---------- overlay-k ---------- */
.fatyol {
  position: fixed; inset: 0; background: rgba(0, 0, 40, 0.72);
  display: flex; align-items: center; justify-content: center; z-index: 900; padding: 16px;
}
.modal {
  background: #fffacd; border: 7px ridge #ffd700; border-radius: 12px;
  padding: 22px 26px; max-width: 430px; text-align: center;
  box-shadow: 0 0 40px #ff00cc;
}
.modal h3 { margin: 0 0 10px; color: #ff0066; font-size: 22px; }

#cookie-sav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: #000080; color: #ffff00; padding: 16px 18px;
  border-top: 5px ridge #ffd700; text-align: center; font-size: 15px;
}

.rejtve { display: none !important; }

footer {
  text-align: center; margin-top: 26px; padding: 14px;
  background: #000080; color: #00ffcc; font-size: 13px;
  border-top: 5px ridge #ffd700;
}
.szamlalo {
  display: inline-block; background: #000; color: #00ff00;
  font-family: Consolas, monospace; padding: 2px 8px; border: 2px inset #888; letter-spacing: 2px;
}

@media (max-width: 560px) {
  header h1 { font-size: 27px; }
  .doboz { padding: 14px; }
}
