/* =========================================================
   LCDOB.com – modern, romantikus, reszponzív webdesign
   A meglévő HTML struktúrához igazítva.
   ========================================================= */

:root {
  --lcdob-bg-deep: #24091f;
  --lcdob-bg: #3a0d2f;
  --lcdob-bg-soft: #5a163f;
  --lcdob-card: rgba(255, 255, 255, 0.09);
  --lcdob-card-strong: rgba(255, 255, 255, 0.13);
  --lcdob-border: rgba(255, 255, 255, 0.18);
  --lcdob-text: #fff8f6;
  --lcdob-text-soft: #ead8df;
  --lcdob-accent: #ff758f;
  --lcdob-accent-2: #ff9a8b;
  --lcdob-accent-3: #ffc3a0;
  --lcdob-success: #8be0b4;
  --lcdob-shadow: 0 24px 70px rgba(20, 0, 15, 0.38);
  --lcdob-radius-xl: 30px;
  --lcdob-radius-lg: 22px;
  --lcdob-radius-md: 15px;
  --lcdob-container: 1060px;
}
#vegeredmeny{
  display: none !important;
}
/* Alapbeállítások */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 24px;
}
body.modal-open {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--lcdob-text);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 117, 143, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 154, 139, 0.18), transparent 30rem),
    radial-gradient(circle at 52% 92%, rgba(255, 195, 160, 0.12), transparent 35rem),
    linear-gradient(145deg, var(--lcdob-bg-deep) 0%, var(--lcdob-bg) 48%, #68183f 100%);
  background-attachment: fixed;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  filter: blur(2px);
}

body::before {
  top: 8%;
  left: 5%;
  width: 220px;
  height: 220px;
  opacity: 0.24;
  background:
    linear-gradient(135deg, transparent 44%, rgba(255, 255, 255, 0.2) 45% 48%, transparent 49%),
    radial-gradient(circle, rgba(255, 142, 160, 0.45), transparent 68%);
  border-radius: 50%;
}

body::after {
  right: 3%;
  bottom: 7%;
  width: 310px;
  height: 310px;
  opacity: 0.18;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.5), transparent 68%);
  border-radius: 50%;
}

::selection {
  color: #351027;
  background: #ffd0d9;
}

a {
  color: #ffd3dc;
  text-decoration-color: rgba(255, 211, 220, 0.45);
  text-underline-offset: 4px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    opacity 180ms ease;
}

a:hover {
  color: #ffffff;
  text-decoration-color: currentColor;
}

.namebox, #Name1TextBox, #Name2TextBox{
  display: none;
}
/* =========================================================
   LCDOB – figyelmeztető modális ablak
   ========================================================= */

#modalContainer {
  position: fixed !important;
  z-index: 99999;
  inset: 0;
  display: flex;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(22, 2, 17, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lcdob-modal-fade 220ms ease-out;
}

#alertBox {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  display: block;
  width: min(100%, 440px);
  margin: auto;
  padding: 34px 30px 30px;
  overflow: hidden;

  color: #fff8f6;
  text-align: center;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 132, 156, 0.26),
      transparent 220px
    ),
    linear-gradient(
      145deg,
      rgba(92, 24, 64, 0.98),
      rgba(48, 10, 38, 0.98)
    );

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;

  box-shadow:
    0 30px 90px rgba(10, 0, 8, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  animation: lcdob-alert-show 260ms ease-out;
}

#alertBox::before {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  place-items: center;

  content: "!";
  color: #4a102f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;

  background:
    linear-gradient(
      135deg,
      #ffd9df 0%,
      #ff879d 55%,
      #ffc1a0 100%
    );

  border-radius: 50%;

  box-shadow:
    0 14px 34px rgba(255, 103, 137, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#alertBox h1 {
  margin: 0 0 12px;
  padding: 0;

  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;

  background: none;
  border: 0;
  text-shadow: 0 8px 25px rgba(15, 0, 10, 0.3);
}

#alertBox p {
  margin: 0 0 26px;
  padding: 0;

  color: #f0dfe5;
  font-size: 1rem;
  line-height: 1.65;
}

#alertBox #closeBtn {
  display: inline-flex;
  min-width: 150px;
  min-height: 50px;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;

  color: #3b1029;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      #ffd3da 0%,
      #ff879d 52%,
      #ffc09c 100%
    );

  border: 0;
  border-radius: 999px;

  box-shadow:
    0 13px 30px rgba(255, 103, 137, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

#alertBox #closeBtn:hover {
  color: #2d091f;
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);

  box-shadow:
    0 17px 36px rgba(255, 103, 137, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#alertBox #closeBtn:active {
  transform: translateY(0);
}

#alertBox #closeBtn:focus-visible {
  outline: 3px solid rgba(255, 235, 239, 0.96);
  outline-offset: 4px;
}

@keyframes lcdob-modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lcdob-alert-show {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  #modalContainer {
    padding: 14px;
  }

  #alertBox {
    width: 100%;
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  #alertBox::before {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  #alertBox #closeBtn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #modalContainer,
  #alertBox {
    animation: none;
  }
}


/* Fő tartó */

.container {
  position: relative;
  width: min(calc(100% - 32px), var(--lcdob-container));
  margin: 36px auto;
  padding: clamp(24px, 4vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.055));
  border: 1px solid var(--lcdob-border);
  border-radius: var(--lcdob-radius-xl);
  box-shadow: var(--lcdob-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.container::before {
  position: absolute;
  top: -125px;
  right: -80px;
  width: 340px;
  height: 340px;
  content: "";
  background: radial-gradient(circle, rgba(255, 135, 159, 0.24), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.container::after {
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 390px;
  height: 390px;
  content: "";
  background: radial-gradient(circle, rgba(255, 188, 155, 0.14), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Nyelvválasztó */

.lang {
  position: absolute;
  z-index: 5;
  top: 22px;
  right: 26px;
}

.lang a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 0, 12, 0.2);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.lang a:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(15, 0, 12, 0.28);
  transform: translateY(-2px) scale(1.04);
}

/* Fejléc */

header {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 26px auto 58px;
  padding: 50px 24px 44px;
  text-align: center;
}

header::before {
  display: block;
  width: 82px;
  height: 70px;
  margin: 0 auto 22px;
  content: "♥";
  color: #ff91a7;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  text-shadow:
    0 0 28px rgba(255, 105, 135, 0.72),
    0 8px 28px rgba(35, 0, 25, 0.32);
  transform: rotate(-4deg);
}

h1 {
  max-width: 880px;
  margin: 0 auto 14px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 12px 35px rgba(24, 0, 17, 0.35);
}

.subtitle {
  margin: 0 auto 30px;
  color: var(--lcdob-text-soft);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tartalmi blokkok */

main {
  position: relative;
  z-index: 1;
}

section {
  margin: 28px 0;
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--lcdob-radius-lg);
  box-shadow: 0 18px 46px rgba(20, 0, 15, 0.14);
}

section:hover {
  border-color: rgba(255, 255, 255, 0.19);
}

h2,
h3 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 36px 0 16px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

p {
  margin: 0 0 1.15em;
  color: var(--lcdob-text-soft);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: #ffffff;
  font-weight: 750;
}

ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  margin: 13px 0;
  padding-left: 34px;
  color: var(--lcdob-text-soft);
}

li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  content: "♥";
  color: var(--lcdob-accent);
  font-size: 0.9em;
  text-shadow: 0 0 16px rgba(255, 117, 143, 0.46);
}

/* Gombok és hivatkozások */

.tocenter {
  display: flex;
  justify-content: center;
  margin: 26px 0 4px;
}

.kalkulatorhoz {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: #3b1029;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(135deg, #ffd2d9 0%, #ff9a9e 52%, #ffc3a0 100%);
  border: 0;
  border-radius: 999px;
  box-shadow:
    0 12px 28px rgba(255, 117, 143, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.kalkulatorhoz:hover {
  color: #2e0a20;
  box-shadow:
    0 16px 34px rgba(255, 117, 143, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

/* Kalkulátor */

#kalkulator {
  scroll-margin-top: 25px;
}

form.card,
#finale.card {
  position: relative;
  margin: 22px 0;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.072));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--lcdob-radius-lg);
  box-shadow:
    0 18px 48px rgba(16, 0, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

form.card::before {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255, 255, 255, 0.17);
  content: "♥";
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

label {
  display: block;
  margin: 0 0 10px;
  color: #fffaf8;
  font-size: 0.96rem;
  font-weight: 750;
}

.namebox {
  margin-bottom: 24px;
}

input,
select,
button {
  font: inherit;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 15px;
  color: #351026;
  background: rgba(255, 251, 250, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--lcdob-radius-md);
  outline: none;
  box-shadow:
    inset 0 1px 2px rgba(37, 0, 24, 0.08),
    0 6px 18px rgba(20, 0, 15, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

input::placeholder {
  color: #8b687b;
  opacity: 1;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #ffafbd;
  box-shadow:
    0 0 0 4px rgba(255, 155, 174, 0.2),
    0 10px 24px rgba(20, 0, 15, 0.13);
  transform: translateY(-1px);
}

.date-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin: 24px 0;
}

small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 244, 246, 0.73);
  font-size: 0.84rem;
  line-height: 1.5;
}

select {
  cursor: pointer;
}

/* Fő számítás gomb */

#calculateButton,
button[onclick*="match"] {
  display: flex;
  width: min(100%, 380px);
  min-height: 62px;
  margin: 32px auto 12px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  color: #341024;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  background:
    linear-gradient(135deg, #ffd7dd 0%, #ff7f96 48%, #ffb18f 100%);
  border: 0;
  border-radius: 999px;
  box-shadow:
    0 18px 38px rgba(255, 103, 137, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

#calculateButton::before,
button[onclick*="match"]::before {
  margin-right: 10px;
  content: "♥";
  color: #68183f;
  font-size: 1.15em;
}

#calculateButton:hover,
button[onclick*="match"]:hover {
  box-shadow:
    0 22px 44px rgba(255, 103, 137, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-3px);
}

#calculateButton:active,
button[onclick*="match"]:active {
  transform: translateY(0);
}

.calculate-button {
  display: flex;
  width: min(100%, 380px);
  min-height: 62px;
  margin: 32px auto 12px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;

  color: #341024;
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    #ffd7dd 0%,
    #ff7f96 48%,
    #ffb18f 100%
  );

  border-radius: 999px;
  box-shadow:
    0 18px 38px rgba(255, 103, 137, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.calculate-button::before {
  margin-right: 10px;
  content: "♥";
  color: #68183f;
}

.calculate-button:hover {
  color: #341024;
  transform: translateY(-2px);
}
/* Eredmény */

#finale {
  min-height: 150px;
  margin-top: 34px;
  overflow: hidden;
  text-align: center;
}

#finale::before {
  display: block;
  margin: 0 auto 12px;
  content: "♥";
  color: var(--lcdob-accent);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 117, 143, 0.54);
}

#result,
#result2,
#vegeredmeny {
  color: #ffffff;
}

#result {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.75;
  text-align: left;
}

#result h2,
#result h3 {
  text-align: center;
}

#result .result-note,
.result-note {
  margin-top: 24px;
  padding: 18px 20px;
  color: #f8e8ed;
  font-size: 0.9rem;
  line-height: 1.6;
  background: rgba(29, 4, 21, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--lcdob-accent);
  border-radius: 12px;
}

#vegeredmeny {
  margin: 22px auto;
  text-align: center;
}

#ujra,
#download,
#share_button,
#tweet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}

#ujra a,
#download a,
#share_button a,
#tweet a,
#ujra button,
#download button,
#share_button button,
#tweet button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

/* Lábléc */

footer,
#copyright {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  padding-top: 28px;
  color: rgba(255, 244, 246, 0.68);
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer p,
#copyright p {
  color: inherit;
}

footer a,
#copyright a {
  color: #ffd0d8;
}

/* Akadálymentes fókusz */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 224, 230, 0.95);
  outline-offset: 4px;
}

/* Reszponzív megjelenés */

@media (max-width: 760px) {
  body {
    font-size: 16px;
    background-attachment: scroll;
  }

  .container {
    width: min(calc(100% - 18px), var(--lcdob-container));
    margin: 9px auto;
    padding: 20px 16px 30px;
    border-radius: 22px;
  }

  .lang {
    top: 15px;
    right: 15px;
  }

  .lang a {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  header {
    margin: 22px auto 34px;
    padding: 58px 4px 24px;
  }

  header::before {
    margin-bottom: 14px;
    font-size: 52px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .subtitle {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  section {
    margin: 18px 0;
    padding: 22px 18px;
    border-radius: 18px;
  }

  form.card,
  #finale.card {
    padding: 21px 17px;
    border-radius: 18px;
  }

  .date-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  input[type="text"],
  input[type="number"],
  select {
    min-height: 50px;
  }

  #calculateButton,
  button[onclick*="match"] {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .kalkulatorhoz {
    width: 100%;
  }
}

/* Csökkentett mozgás preferencia */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
#finale {
  scroll-margin-top: 24px;
}