@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

:root{
  --ink: #182850;
  --primary: #35c2b2;
  --primary-dark: #2d988c;
  --accent: #1d809f;

  --bg: #f6fbfd;
  --card: #ffffff;

  --border-dash: rgba(29,128,159,0.55);
  --shadow: 0 14px 34px rgba(0,0,0,0.10);
}

*{
  margin: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

/* =======================
   Typography
   ======================= */
h1{
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  letter-spacing: -1px;
}

h3{
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

p{
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a{
  color: var(--primary);
  text-decoration: none;
  font-family: 'Indie Flower', cursive;
  font-size: 1.15rem;
}
a:hover{
  color: var(--primary-dark);
  text-decoration: underline;
}

/* =======================
   Buttons (globális)
   ======================= */
button{
  background-color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 160px;
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .12s ease, filter .18s ease;
}

button:hover{
  background-color: var(--primary-dark);
  filter: brightness(0.98);
}

button:active{
  transform: translateY(1px);
}

button:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}

/* ha nálad maradtak a class-ok a HTML-ben */
.button-1, .button-2, .button-3{
  background-color: var(--primary);
  border-radius: 10px;
}

.button-2{
  background-color: rgba(29,128,159,0.12);
  color: var(--accent);
  border: 2px dashed rgba(29,128,159,0.55);
}

.button-2:hover{
  background-color: rgba(29,128,159,0.18);
}

.button-3{
  background-color: var(--primary);
}

/* =======================
   Top nav
   ======================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(24,40,80,0.08);
}

.nav-text{
  padding: 8px 14px;
  border: 2px dashed rgba(53,194,178,0.55);
  border-radius: 14px;
}

/* =======================
   Hero
   ======================= */
.hero{
  width: min(980px, 92vw);
  margin: 34px auto 10px;
  text-align: center;
  padding: 18px 10px 8px;
}

/* =======================
   Quiz card
   ======================= */
.quiz{
  width: min(520px, 92vw);
  margin: 18px auto 24px;
  background: var(--card);
  border-radius: 16px;
  border: 2px dashed var(--border-dash);
  box-shadow: var(--shadow);
  padding: 26px 22px 28px;
  text-align: center;
}

/* HUD sorok */
.flex-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(53,194,178,0.10);
  border: 2px dashed rgba(53,194,178,0.45);
  margin-bottom: 10px;
}

.quiz-top{
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  font-size: 0.95rem;
}

.number{
  font-family: 'Roboto Slab', serif;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

/* kérdés */
.flex-quiz{
  margin-top: 14px;
}

.field{
  margin: 10px 0 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 2px dashed rgba(29,128,159,0.40);
  background: rgba(29,128,159,0.06);

  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* válasz gombok – külön stílus (nem a globális zöld) */
#answerA, #answerB, #answerC, #answerD{
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;

  background: #f9fbfc;
  color: var(--ink);

  border-radius: 12px;
  border: 2px dashed rgba(29,128,159,0.45);

  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;

  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease, filter .18s ease;
}

#answerA:hover, #answerB:hover, #answerC:hover, #answerD:hover{
  background: rgba(53,194,178,0.12);
  border-color: rgba(53,194,178,0.75);
}

#answerA:active, #answerB:active, #answerC:active, #answerD:active{
  transform: translateY(1px);
}

#restartBtn{
  width: 100%;
  margin-top: 18px;
}

/* helyes / hibás jelzések (JS adja a classokat) */
.correct-answer{
  background: rgba(0,163,90,0.12) !important;
  border-color: rgba(0,163,90,0.75) !important;
}

.wrong-answer{
  background: rgba(198,40,40,0.12) !important;
  border-color: rgba(198,40,40,0.75) !important;
}

.correct-answer-bg{
  background: var(--primary) !important;
  color: #fff !important;
  border-color: rgba(53,194,178,0.9) !important;
}

/* =======================
   Bibliography
   ======================= */
.bibliography{
  width: min(820px, 92vw);
  margin: 16px auto 40px;
  padding: 16px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px dashed rgba(255,210,95,0.90);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.bibliography p{
  font-size: 15px;
  line-height: 1.5;
}
.bibliography p + p{
  margin-top: 10px;
}

/* =======================
   Modal + backdrop
   ======================= */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hidden{
  display: none !important;
}

.modal-content{
  width: min(480px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 2px dashed rgba(29,128,159,0.55);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  padding: 22px 18px 18px;
  text-align: center;
}

.modal-content h3{
  font-family: 'Roboto Slab', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-content p{
  font-size: 1rem;
  margin-bottom: 16px;
}

.modal-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* =======================
   Footer
   ======================= */
.footer{
  text-align: center;
  padding: 36px 10px 24px;
  margin-top: 20px;
}

.footer p{
  font-family: 'Indie Flower', cursive;
  font-size: 1.8rem;
  margin: 8px auto;
}

/* =======================
   Responsive finomítások
   ======================= */
@media (max-width: 480px){
  .quiz{
    padding: 22px 16px 24px;
  }
  .field{
    font-size: 1.1rem;
    min-height: 74px;
  }
  #answerA, #answerB, #answerC, #answerD{
    font-size: 0.98rem;
    padding: 13px 14px;
  }
  .footer p{
    font-size: 1.35rem;
  }
}



  button {
    margin-top: 30px;
    background-color: #35c2b2;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    min-width: 160px;;
    font-size: 1.1rem;
    color: white;
    font-family: 'Roboto Slab', serif;
    transition: background-color 0.2s ease-in;
    cursor:pointer
}
    button:hover {
        background-color: #2d988c;
    }

/*nabvbar*/
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #246780; /* Válaszd meg a megfelelő háttérszínt */
    min-height: 70px; /* Maradjon meg a min-height érték */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 24px;
    z-index: 10;
    
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    
}

.nav-menu li {
    list-style: none;    
}

.nav-item a{
    padding: 10px 20px;   
    border: 2px solid #35c2b2; 
    border-radius: 15px; 
}

.logo {
    font-size: 2rem;
}

.nav-link {
    transition: 0.7s ease;
}

.nav-link:hover {
    color: white;
    background-color:#35c2b2
}

.nav-item-1 a{
    padding: 10px 20px;   
    border: 2px solid #fff; 
    border-radius: 15px;
    background-color: #35c2b2; 
    color:#fff;
}
.nav-item-1 a:hover {
    background-color:#fff;
    color:#35c2b2;
    border: 2px solid #35c2b2; }


.hamburger {
    cursor: pointer;
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 3px;    
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    background:#35c2b2;
    
    
}

@media (max-width: 1199px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        flex-direction: column;
        background-color: #246780;
        z-index: 2;
        padding: 20px 0;
        gap:10px;
        border-bottom-left-radius:15%; ;
    }
    .navbar {
        justify-content: space-between;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
        background-color: #246780;
    }
}


.giftbar{
  width: 100%;
  margin: 14px 0 0;
  padding: 0 16px;
}

.giftbar__inner{
  width: min(980px, 92vw);
  margin: 0 auto;
  background: rgba(255,210,95,0.35);
  border: 2px dashed rgba(255,210,95,0.9);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.giftbar__text{
  font-family: 'Open Sans', sans-serif;
  color: #182850;
  font-size: 0.98rem;
  line-height: 1.35;
}

.giftbar__btn{
  display: inline-block;
  background: #35c2b2;
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.giftbar__btn:hover{
  background: #2d988c;
  text-decoration: none;
  color:#fff
}

@media (max-width: 640px){
  .giftbar__inner{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .giftbar__btn{
    text-align: center;
  }
}
