* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  /*font-family: Verdana, Geneva, sans-serif;*/
  color: #2b2b2b;
  text-align: center;
  background: #2D6075; 
}


p {
  text-align: justify;
}


header {
  background: url("kepek/nyitokep.png") center/cover no-repeat;
  height: 100vh;

  display: flex;
  justify-content: flex-start; /* balra */
  align-items: flex-start;     /* felülre */

  padding: 60px 40px; /* térköz a szélektől */
  text-align: left;

  position: relative;
  color: #f5f5f5;
}

/* Sötét overlay + gradient */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.3),
    transparent
  );
}

/* Szöveg konténer */
header div {
  position: relative;
  z-index: 1;

  padding: 10px 10px;
  border-radius: 12px;
  max-width: 520px;
}

/* Cím */
header h1 {
  font-size: 70px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  margin-bottom: 10px;
  animation: fadeInDown 1s ease;
  color: #f6f3ef;
}

/* Alcím */
header h2 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: normal;
  animation: fadeInUp 1s ease;
  color: #ffffff;
}
/* TABLET / kisebb laptop */
@media (max-width: 900px) {
  header h1 {
    font-size: 48px;
  }

  header h2 {
    font-size: 18px;
  }

  header div {
    max-width: 70%;
  }
}

/* TELEFON */
@media (max-width: 600px) {
  header {
    height: 100vh;
    padding: 30px 20px;
  }

  header h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  header h2 {
    font-size: 16px;
    line-height: 1.4;
  }

  header div {
    max-width: 60%;
    padding: 15px 18px;
    border-radius: 10px;
  }
}


.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(31, 78, 95, 0.08);
  margin-top: 10px;
  transition: all 0.8s ease;
  animation: fadeInDown 1.0s ease;
}

.card p {
  margin-top: 4px;
  font-size: 1.2rem;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(20, 45, 50, 0.85);
  padding: clamp(10px, 1.5vw, 18px);

  display: flex;
  justify-content: center;
  align-items: center;

  gap: clamp(15px, 4vw, 50px);

  z-index: 1000;
  backdrop-filter: blur(6px);

  font-size: clamp(14px, 1.2vw, 18px);
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  transition: 0.3s;

  font-size: inherit; /* fontos: kövesse a nav méretét */
  white-space: nowrap;
}

nav a:hover {
  color: #7fd3c6;
}


section {
  padding: 20px 20px;
  max-width: 1000px;
  margin: auto;
}

table {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  border-collapse: collapse;
  font-family: Georgia, serif;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  color: #2b2b2b;
}

tr:first-child {
  background: #7fd3c6;
  color: #2b2b2b;
  font-weight: bold;
}

td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #e6e0da;
}

tr:not(:first-child):hover {
  background: #f6f3ef;
  transition: 0.2s ease;
}

tr:last-child td {
  border-bottom: none;
}

.card a:link {
  color: #2b2b2b;
}

.card a:visited {
  color: #2b2b2b;
}

.card a:hover {
  color: #7fd3c6;
}


.card:hover {
  transform: translateY(-10px) scale(1.02);
}


.card div {
  padding: 5px;
}



.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.more {
  position: relative;
  cursor: pointer;
}

.more img {
  filter: brightness(60%);
}

.more .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5f5;
  font-size: 22px;
  font-weight: bold;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 43, 43, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox {
  z-index: 9999; /* nagyobb mint a header */
}

/* gombok */
.lightbox .prev,
.lightbox .next,
.lightbox .close {
  position: absolute;
  color: #f5f5f5;
  font-size: 30px;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.lightbox .close:hover {
  color: #7fd3c6;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .prev:hover {
  color: #7fd3c6;
}

.lightbox .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next:hover {
  color: #7fd3c6;
}


footer {
  display: flex;              
  flex-direction: column;     
  background: #2b2b2b;
  color: #f5f5f5;
  padding: 20px 10px;
  text-align: center;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
}

footer a {
  color: #7fd3c6;
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
  transition: 0.2s;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}




@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}