.info {
  padding-top: 70px;
}
.header {
  height: 250px;
  min-height: 250px;
  max-height: 250px;
}

/* Új reszponzív kezdőlap stílusok */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #222;
}
.home-buttons {
  text-align: center;
  margin: 1rem 0;
}
.home-buttons a button {
  background: #0077cc;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.home-buttons a button:hover {
  background: #005fa3;
}

.section {
  margin-top: 2rem;
}
.section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Rácsok alapbeállításai */
.grid-3, .grid-2, .grid-1 {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.grid-1 {
  grid-template-columns: 1fr;
}

/* Kártyák minden grid oszlopban */
.grid-3 > div,
.grid-2 > div,
.grid-1 > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Iframe-ek egységes magassága */
.grid-3 iframe,
.grid-2 iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

.grid-1 iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
}

/* A glóbuszos térkép külön */
#turak iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
}

/* Linkek középre igazítva a kártyák alján */
.grid-3 > div a,
.grid-2 > div a {
  text-align: center;
  display: block;
  margin-top: 0.5rem;
}

/* Figyelmeztető szöveg */
.notice {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}
#custom-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.45); /* áttetsző */
  color: #fff;
  text-align: center;
  padding: 10px 5px;
  font-size: 14px;
  z-index: 9999;
  transition: transform 0.5s ease;
  backdrop-filter: blur(4px); /* üveg-hatás */
}
#custom-footer a {
  color: #4da3ff;
  text-decoration: none;
}
#custom-footer a:hover {
  text-decoration: underline;
}
#custom-footer.hide {
  transform: translateY(100%);
}

/* Mobilon kisebb legyen */
@media (max-width: 768px) {
  #custom-footer {
    font-size: 12px;
    padding: 6px 4px;
  }
}

#popupModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 800px;
  height: 80vh;
  max-height: 90vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

#popupFrame {
  width: 100%;
  height: calc(100% - 50px);
  border: none;
}

#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

/* Bezáró gomb */
#popupModal button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Animáció */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Mobilbarát */
@media (max-width: 600px) {
  #popupModal {
    width: 95vw;
    height: 85vh;
  }

  #popupModal button {
    padding: 6px 12px;
    font-size: 14px;
  }
}
#cookie_consent_preferences {
  position: fixed !important;
  bottom: 20px;
  left: 20px;
  z-index: 10001 !important;
}
#backToTop {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  z-index: 10001 !important;
}

#svt-app,
.svt-content {
  padding-bottom: 160px !important;
}

@media (max-width: 768px){
  #svt-app,
  .svt-content {
    padding-bottom: 190px !important;
  }
}


/* ===== Fix: overlay ne nyelje el a kattintást, és a rétegsorrend legyen biztos ===== */
#overlay{
  pointer-events: none;      /* alapból ne kapjon kattintást */
  z-index: 10000;            /* legyen a footer felett, amikor aktív */
}

#popupModal{
  z-index: 10001;            /* modal mindig overlay felett */
}

#custom-footer{
  z-index: 10002;            /* footer mindig legfelül, kattintható linkekkel */
  pointer-events: auto;
}
#custom-footer {
  pointer-events: auto;
}

#custom-footer.hide {
  pointer-events: none;
}

/* --- Rétegsorrend: BackToTop legyen a footer felett --- */

/* Footer legyen alacsonyabb rétegen */
#custom-footer {
  z-index: 9998 !important;
}

/* Back to top mindig felette */
#backToTop {
  z-index: 10005 !important;
}

/* Cookie is lehet felette, ha kell (vagy hagyd alatta) */
#cookie_consent_preferences {
  z-index: 10004 !important;
}

/* Modal/overlay mindig legfelül */
#overlay {
  z-index: 10010 !important;
}
#popupModal {
  z-index: 10011 !important;
}
