*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  background-color: #f5f5f5;
  margin: 0;
  padding: 20px;
  text-align: center;
}
.menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 14px auto;
  padding: 20px 12px;
  background-color: #e0f7fa;
  border-radius: 12px;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.menu button {
  height: 112px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  background-color: #4dd0e1;
  color: #003344;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.menu button:hover {
  background-color: #00acc1;
  transform: scale(1.05);
  color: white;
}

.emoji-big {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 6px;
}

button {
      padding: 12px 24px;
      margin: 10px;
      font-size: 1.2rem;
      background-color: #4dd0e1;
      border: none;
      border-radius: 10px;
      cursor: pointer;
}

button:hover {
      background-color: #00acc1;
      color: white;
}

.game {
  display: none;
  max-width: 600px;
  margin: 20px auto; /* Hozzáadva a margót */
  text-align: center;
}
.game-title {
  font-size: 2rem;
  background: linear-gradient(to right, #4dd0e1, #81d4fa);
  color: #004d40;
  padding: 14px 20px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.question {
      font-size: 1.2rem;
      margin-bottom: 20px;
}

.options button {
      display: block;
      width: 100%;
      margin: 8px auto;
      background-color: #81d4fa;
}

.options button:hover {
      background-color: #29b6f6;
}

.result {
      font-weight: bold;
      margin-top: 20px;
      font-size: 1.2rem;
}
.intro-banner {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e0f7fa;
  color: #00695c;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 14px 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 1;
  transition: all 0.8s ease;
}
.intro p {
  margin-bottom: 12px;
}

.oldal-fejlec {
    grid-column: 2 / 3;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
}

.oldal-fejlec::after {
    content: "";
    display: block;
    width: 200px;
    height: 3px;
    background: #ffffffaa;
    margin: 8px auto 0;
    border-radius: 2px;
}

.semper-anim {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: wave 1s ease-in-out infinite alternate;
}

.semper-anim img {
    width: 120px;
    transform-origin: bottom right;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.hide {
    animation: hideOut 2s ease forwards;
}

@keyframes hideOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(50px); }
}
  
.semper-chat {
  position: relative; 
  margin: 20px auto;
  max-width: 600px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow: hidden;
}

.chat-img {
  width: 60px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.chat-bubble {
  background-color: #e6f2ff;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  font-weight: bold;
  flex-shrink: 0;
  text-align: center;
}

.chat-questions-scroll {
  overflow-y: auto;
  flex-grow: 1;
  max-height: 300px;
  padding-right: 6px;
}

.game.fade-in {
  animation: fadeSlideIn 0.5s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
  
.question-category {
  margin-bottom: 10px;
}

.question-category h3 {
  font-size: 14px;
  margin: 6px 0;
  color: #0077cc;
}

.question-category button {
  display: block;
  width: 100%;
  padding: 6px;
  margin-bottom: 4px;
  background-color: #ffffff;
  border: 1px solid #0077cc;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.question-category button:hover {
  background-color: #d0ecff;
}

    h1 {
      color: #2b7a78;
    }
#tabla {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 360px;
  margin: 20px auto;
  gap: 6px;
}

.emoji {
  font-size: 36px;
  display: inline-block;
  margin: 5px;
  filter: drop-shadow(1px 1px 2px #333);
}

.emoji-bg {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  padding: 8px;
}

.emoji.megelozes {
  filter: drop-shadow(0 0 5px green);
  animation: none;
}

.emoji.baci {
  animation: lebeg 2s infinite ease-in-out;
  filter: drop-shadow(0 0 4px red);
}

@keyframes lebeg {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes rezeg {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.1); }
  100% { transform: rotate(-2deg) scale(1); }
}
.mezo {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border: 2px solid #444;
  cursor: pointer;
  border-radius: 12px;
  background-color: #e0e7f1;
  transition: all 0.2s ease;
}

.gyozelem-kep {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.9);
  z-index: 1000;
  flex-direction: column;
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  color: #008080;
}

canvas#tuzijatek {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
}
.mezo:hover {
  background-color: #cde;
}
.mezo.felfedve {
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 200, 0, 0.6);
    background-color: #fffbe6;
  }
#eredmeny {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 15px;
    color: #333;
  }
#gyozelem {
    display: none;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    background: #f8f8ff;
    border: 2px solid #6c6;
    padding: 20px 40px;
    border-radius: 20px;
    z-index: 1001;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    animation: pulzalas 0.6s infinite alternate;
  }

@keyframes pulzalas {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.1); }
  }
#tuzijatek {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
  }
  
#pairGame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 20px;
}

#level, #message {
  margin: 10px;
  font-size: 1.2em;
}

#game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}
  iframe {
  width: 100%;
  max-width: 900px;
  height: 600px;
  border: none;
  display: block;
  margin: 0 auto;
}
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.card {
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

.card.flipped {
  background-color: #d0f0c0;
}

#message {
  font-size: 1.3em;
  margin-top: 20px;
  font-weight: bold;
}

#next-button {
  display: none;
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background-color: #4caf50;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

#next-button:hover {
  background-color: #45a049;
}
.fade {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-category h3 {
  font-size: 1em;
  color: #0077b6;
  margin-bottom: 5px;
}

.chat-questions button {
    background: #edf6f9;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 8px 10px;
    margin: 3px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.chat-questions button:hover {
    background: #caf0f8;
}
.chat-questions button:active {
  transform: scale(0.98);
  background-color: #ade8f4;
}
.typing {
  font-style: italic;
  color: #888;
}
.typing-dots {
  display: inline-block;
  margin-left: 5px;
}

.typing-dots span {
  display: inline-block;
  animation: blink 1.4s infinite;
  font-weight: bold;
  font-size: 1.2em;
  opacity: 0.2;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}

@media (max-width: 768px) {
.fejlec-wrapper {
    align-items: center;
    text-align: center;
    max-width: 92%;
    padding: 5px 10px;
    gap: 5px;
}
	
.semper-chat {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 20px auto;
    display: block;
}
  .menu {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  .menu button {
    font-size: 1rem;
    padding: 12px;
  }

.semper-anim {
    display: none;
}

.game {
    max-width: 95%;
    margin: 15px auto;
  }

.question {
    font-size: 1rem;
    margin-bottom: 15px;
  }

.options button {
    font-size: 1rem;
    padding: 10px 20px;
    margin: 6px auto;
  }

.result {
    font-size: 1rem;
    margin-top: 15px;
  }

  #tabla {
    width: 90%;
    gap: 4px;
  }

  #tabla .mezo {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    margin: 2px;
  }

  #gyozelem {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  #eredmeny {
    font-size: 1rem;
    margin: 10px auto;
  }
}  

.mezo {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    margin: 2px;
}

#pairGame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
}

#level, #message {
  font-size: 1.2rem;
  margin: 10px;
  color: #2e7d32;
}

#game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  margin: 20px auto;
  justify-items: center;
  width: 100%;
  max-width: 400px;
}

/* Kártya */
.card {
  width: 70px;
  height: 70px;
  background-color: #97E2FA;
  border: 2px solid #2B729B;
  border-radius: 12px;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card:hover {
  transform: scale(1.08);
}

/* Gomb */
#next-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#next-button:hover {
  background-color: #388e3c;
}

.oldal-fejlec {
    font-size: 1rem; /* További csökkentés */
    padding: 5px 8px; /* Csökkentett padding */
    max-width: 92%;
    border-radius: 8px;
    line-height: 1.2; /* Csökkentett line-height */
}


.header {
    margin-bottom: 10px;
    padding: 3px 0;
    max-width: 92%; /* Vagy 92%, attól függően, melyik tetszik jobban */
    margin: 10px auto; /* A középre igazításhoz */
}

.container {
        grid-template-columns: 1fr;
  }
@media screen and (max-width: 768px) {
  #game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 oszlop mobilon */
    gap: 6px; /* kisebb távolság */
    max-width: 240px; /* vagy 250px a kártyák méretéhez igazítva */
    margin: 10px auto;
  }

  .card {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    padding: 0;
  }

  #level, #message {
    font-size: 1rem;
  }

  #next-button {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin-top: 10px;
  }
}
.intro {
    padding: 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
.intro-banner {
    font-size: 0.9rem;
    padding: 6px 12px;
    top: 16px;
    max-width: 90%;
    line-height: 1.3;
    text-align: center;
  }
}