/* Alap stílusok */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a; /* Sötét háttérszín */
  margin: 0;
  padding: 0;
  scroll-snap-type: y mandatory;
  scroll-padding: 50px;
  color: #c4b709; /* Világosabb szövegszín */
}

/* Fejléc */
header {
  background-color: #000000; /* Fekete háttérszín */
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  margin-bottom: 20px;
}

/* Navigáció */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1.5rem;
}

a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #4caf50; /* Zöldes árnyalat hover esetén */
}

/* Fő tartalom */
main {
  padding: 2rem;
  text-align: center;
}

/* Lábléc */
footer {
  flex-shrink: 0;
  background-color: #000000; /* Fekete háttérszín */
  color: #fff;
  padding: 20px;
}

/* Hírek box */
.news,
.news2 {
  background-color: #333; /* Sötét zöld háttérszín */
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.news:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Görgetősáv stílusok */
::-webkit-scrollbar {
  width: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #000000; /* Fekete háttérszín */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #4caf50; /* Zöldes árnyalat */
  animation: scrollbar-color-change 2s infinite alternate;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #388e3c; /* Sötétebb zöld hover esetén */
}

/* Gombok */
.button,
.button1,
.button2,
.button3,
.button4 {
  border-radius: 8px;
  background-color: #4caf50; /* Zöldes árnyalat */
  border: none;
  color: #000000; /* Fekete szövegszín */
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover,
.button1:hover,
.button2:hover,
.button3:hover,
.button4:hover {
  background-color: #388e3c; /* Sötétebb zöld hover esetén */
}

/* Menü toggle animáció */
.menu-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.line {
  width: 100%;
  height: 4px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.menu-toggle.open .line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .menu-toggle {
      display: flex;
  }

  nav ul {
      display: none;
  }

  nav ul.open {
      display: flex;
      flex-direction: column;
  }
}

/* Scroll animáció */
html {
  animation: slide-down 3s ease;
  scroll-behavior: smooth;
}

@keyframes slide-down {
  from {
      transform: translateY(-100%);
  }
  to {
      transform: translateY(0);
  }
}

body {
  font-family: Arial, sans-serif;
}

#chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#chat-iframe {
  width: 300px;
  height: 400px;
  border: none;
  display: none; /* Kezdetben rejtett */
}

#chat-toggle-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#chat-toggle-button.close {
  background-color: #ff0000;
}


/*   User Profile    */
.user-profile {
  position: fixed; /* Fix pozíció a teljes képernyőhöz képest */
  top: 10px; /* Távolság a felső résztől */
  right: 10px; /* Távolság a jobb oldaltól */
  display: flex; /* A kép és a link egymás mellé rendezése */
  align-items: center; /* Kép és link függőleges igazítása */
  gap: 10px; /* Térköz a kép és a link között */
  z-index: 1000; /* Az elem mindig felül legyen */
}

.user-profile img {
  border-radius: 50%; /* Kör alakú kép */
  border: 2px solid #ccc; /* Szegély hozzáadása */
  width: 50px; /* A kép méretének meghatározása */
  height: 50px; /* A kép méretének meghatározása */
}

.user-profile a {
  color: #3498db; /* Link színe */
  text-decoration: none; /* Aláhúzás eltávolítása */
  font-weight: bold; /* Félkövér betű */
}

.user-profile a:hover {
  color: #2980b9; /* Színváltozás hover esetén */
}
