/*
Színséma:
#f9dc5c - Háttér
#fae588
#fcefb4
#fdf4cb
>fdf8e1
*/
/* Változók */
:root {
  --bg-color: #0e3a2f;

  --header-color: #0e3a2f;

  --footer-color: #0e3a2f;

  --text-color: #fff;
  --a-color: #78faae;
  --hover-color: #fff;
  --active: rgba(199, 255, 222, 0.25);
  --header-height: 2em;
  --footer-height: 2em;

  --img-main-height: 0px;
}

/* Fő formázás */

* {
  margin: 0;
  padding: 0;
  /*min-height: 100%;*/
}

body {
  background-color: var(--bg-color);
  font-family: "Merienda", cursive;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: var(--text-color);
  text-align: justify;
}

a {
  text-decoration: none;
  color: var(--a-color);
}

a:hover {
  color: var(--hover-color);
}

#menu-toggle {
  padding: 0.5em;
  cursor: pointer;
  font-size: 2em;
}

/* Fejléc */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  font-size: 1.25em;
  z-index: 1000;
  padding-top: 1.25em;
  background-color: var(--header-color);
}

header li a {
  border-radius: 10px;
}

nav {
  background-color: var(--header-color);
}

.nav-link {
  color: var(--a-color);
}

.nav-link:hover{
  color: var(--hover-color);
}

.active, .active a{
  font-weight: bold;
  color: var(--a-color);
  background-color: var(--active);
  border-radius: 10px;
}

/* Fő tartalom */

main {
  margin-top: calc(2.5em + var(--header-height));
  margin-bottom: calc(2.5em + var(--footer-height));
}

/* Lábléc */
footer {
  background-color: var(--footer-color);
  text-align: center;
  width: 100%;
  min-height: var(--footer-height);
  position: fixed;
  bottom: 0;
  text-align: center;
  font-size: 1.25em;
  z-index: 1000;
  color: var(--a-color);
}

/*
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 20px;
}*/

footer p {
  margin: 0;
  font-size: 1em;
  text-align: center;
}

/* Index.php */
.tartalom {
  padding: 20px;
  background-color:#444;
  border-radius: 15px;
  height: calc((100vh - 50px)/5*4);
}

.text-2center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc((100vh - 50px)/5*4);
}

.nev {
  font-size: 5em;
  font-family: "Merienda", cursive;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.preprevertival-center {
  position: relative;
  width: 100%;
  margin: 0;
}

.vertical-center {
  left: 0;
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
}

.enkep {
  width: 75%;
  display: flex;
  margin: auto;
  margin-top: calc(var(--img-main-height)/5*1);
}

/* Rolam.php */
.tartRol {
  margin-top: 2.5em;
  text-align: justify;
}

/* Idővonal */
.tartTan {
  margin-top: 2.5em;
  text-align: left;
}

.vonal {
  border-left: 2px solid #78faae;
  height: calc(100% + 2.5em); /* Nyújtsuk meg a vonalat, hogy átfusson a paddingon is */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.dot {
  width: 15px;
  height: 15px;
  background-color: #78faae;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-55%);
  top: 0;
  z-index: 2; /* A pötty legyen a vonal fölött */
}

.text-right {
  text-align: right;
}

.terkoz-le {
  padding-bottom: 2.5em;
  position: relative;
}

.text-center {
  text-align: center;
  position: relative;
}

.fullW {
  width: 100%;
}

/* Palyazat.php */
.beszamolo {
  padding-top: 5em;
  text-align: justify;
}

.beszamolo img {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  width: 100%;
}

.beszamolo ul {
  padding-left: 2.5em;
}

.beszamolo table, tr, th, td {
  margin: 0 auto;
  border-collapse: collapse;
  text-align: center;
  border: rgba(120,250,174,0.5) 1px solid;
  padding: 1px;
}

.palyLogo {
  width: 100%;
}

/* Egyebek */
@media (max-width: 1000px) {
  header {
    padding-top: 0;
  }

  .vertical-center {
    margin: 0 1em;
    width: 90%;
    margin-top: 1em;
  }

  .text-2center {
    height: calc((50vh - 50px)/5*4);
  }
  .nev {
    font-size: 3em;
    text-align: center;
  }

  .enkep {
    margin: auto;
    align-items: center;
    display: grid;
  }

  .tartalom {
    height: calc((80vh - 50px)/5*4);
  }

  .beszamoloC {
    width: 100%;
  }
}