html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* wrapper lefedi a teljes képernyőt */
.page-wrapper {
  min-height: 100vh;          /* fontos! teljes ablak magasság */
  display: flex;
  flex-direction: column;
}

/* tartalom kitölti a köztes helyet */
main.content {
  flex: 1;                    /* kitolja a footert az aljára */
  padding-top: 3.5rem; /* navbar magasságának megfelelő */

}




/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;                /* teljes szélesség */
  display: flex;              /* <<< fontos: legyen flex konténer */
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;          /* ne törjön új sorba */
  z-index: 1000;
  background-color: #004080;
  padding: 0.5rem 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

.external-link {
  margin-left: auto;          /* jobb szélre tolja */
  margin-right: 2rem;       /* <<< balra húzza a jobb szélső linket */

}

.external-link a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.external-link a:hover {
  text-decoration: underline;
}



/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: #eef3f9;
}
.hero h1 {
  color: #004080;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* CTA button (general) */
.cta-button {
  background: #004080;
  color: #fff;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95rem;
}
.cta-button:hover {
  background: #ffcc00;
  color: #004080;
}

/* Home content */
.home-content {
  margin-left: 2rem;   /* beljebb tolja a tartalmat */
  margin-right: 2rem;  /* opcionális, hogy jobbról is legyen tér */
  max-width: 900px;    /* opcionális: ne legyen túl széles */
}


/* Publications */
.pub-list {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 2px solid #004080;
}

.pub-item {
  margin-bottom: 1.5rem;
}

.pub-item em {
  font-style: italic;
  color: #004080;
}

.pub-links {
  margin-top: 0.5rem;
}

.pub-links .cta-button {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.3rem 0.8rem;
  background-color: #004080;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.pub-links .cta-button:hover {
  background-color: #002d5a;
}



/* Fixed bottom-right button (landing only) */
.landing .cta-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* függőlegesen középre */
  align-items: center;       /* vízszintesen középre */
  min-height: 100vh;         /* teljes képernyő magasság */
  padding-top: 4rem;         /* kicsit lentebb tolja */
  text-align: center;
}

.landing h1 {
  color: #004080;
  margin-bottom: 2.5rem;
  max-width: 800px;
}

.landing p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  color: #555;
}



/* About */
.about-content {
  margin: 2rem;
  line-height: 1.6;
}

.about-content h1, 
.about-content h2 {
  color: #004080;
  margin-top: 1.5rem;
}




/* footer */
.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}



/* Search */

.search-form {
  margin-bottom: 1rem;
}

.search-form input {
  padding: 6px;
  margin-right: 8px;
}

.search-form button {
  padding: 6px 12px;
}

.autocomplete-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  max-width: 400px;
}

.autocomplete-list li {
  padding: 4px 8px;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background: #f0f0f0;
}

.results-list {
  list-style: none;
  padding: 0;
}



/* Result table */
.ceph-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.ceph-table th,
.ceph-table td {
  border: 1px solid #ccc;
  padding: 10px 16px; /* tágabb cellák */
  text-align: left;
}

.ceph-table th {
  background: #f5f5f5;
}






/* List of galaxies */
.galaxy-list li {
  margin: 0.5em 0;
}
.galaxy-list a {
  text-decoration: none;
  color: #0066cc;
}
.galaxy-list a:hover {
  text-decoration: underline;
}



/* References */
.articles-separator {
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid #ccc;
}

.related-articles {
  margin-top: 1rem;
}

.related-articles h3 {
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: bold;
}

.article-list {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.article-list li {
  margin-bottom: 0.3rem;
}

.reference-list {
    list-style-type: decimal; /* számozott lista */
    padding-left: 2rem;       /* beljebb tolja a számokat */
    margin: 1rem 0;           /* lista teteje/lába */
}


