/* ===== Alap ===== */
    html, body {
      margin: 0; height: 100%; background: #111; color: #eee;
      font-family: Arial, sans-serif; scroll-behavior: smooth;
      overflow-x: hidden; /* vízszintes görgetés tiltása */
      overflow-y: auto;   /* függőleges görgetés engedélyezése */
    }
    .background-wrapper {
      min-height: 100dvh;
      background: #111;
      display: flex;
      flex-direction: column;
      
    }


    /* ===== Top bar ===== */
    /*#top-bar {
      position: fixed; top: 0; left: 0; width: 100%;
      display: flex; justify-content: center; align-items: center;
      padding: .5rem; z-index: 1100;
    }
    #visitor-count {
      position: absolute; left: 1rem;
      font-size: .95rem; white-space: nowrap;
    }
    #info-toggle {
      position: absolute; right: 1rem;
      background: none; border: none; color: #fff;
      font-size: 1.2rem; cursor: pointer; white-space: nowrap;
    }*/

    #top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: .5rem 1rem;
      background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0));
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1200;
    }

    #top-left {
      padding-left: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: white;
    }

    #top-center {
      flex: 1;
      text-align: center;
      color: white;
      font-weight: bold;
    }

    #top-right {
      display: flex;
      align-items: center;
      gap: 1rem;
      color: white;
      white-space: nowrap;
      padding-right: 1rem;  /* ez tolja be a tartalmat */
    }


    .button {
      display: block;          /* blokk szintű elem lesz */
      margin: 10px auto 0;     /* automatikus bal és jobb margó (középre igazít) */
      background: rgba(0,0,0,.6);
      border: none;
      color: #fff;
      padding: .4rem .8rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.95rem;
      transition: background 0.3s ease;
    }

    .button:hover {
      background: #0ff;
      color: #000;
    }

    #info-toggle {
      background:rgba(0, 122, 170, 0.616) ;
      border: 0.5px solid #ccc;
      border-radius: 8px;
      color: #fff;
      padding: .4rem .6rem;
      font-size: 1.2rem;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    #info-toggle:hover {
      background: #0ff;
      color: #000;
    }

    /* ===== Election container ===== */
    #election-container {
      position: absolute; top: .5rem; left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,.75); padding: .3rem .8rem;
      border-radius: 6px; white-space: nowrap;
      display: inline-flex; flex-direction: column; align-items: center;
    }
    #election-label { font-size: .85rem; font-weight: bold; color: #422e97; }
    #election-countdown { font-size: .95rem; color: #fff; }

    /* ===== Initial modal ===== */
    #initial-modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.85);
      display: none; align-items: center; justify-content: center; z-index: 2000;
    }
    #initial-modal-overlay.active { display: flex; }
    .modal { position: relative; max-width: 400px; max-height: 80vh; overflow: hidden; }
    .close-btn { position: absolute; cursor: pointer; }
    #initial-modal-close {
      top: 16px; right: 16px; background: #ff5555; color: #fff;
      border: none; font-size: 24px; width: 40px; height: 40px; border-radius: 50%;
    }

    /* ===== Hero ===== */
    header {
      position: relative; overflow: hidden;
      height: 70vh;
      /* háttérkép most a header-en: cover, bottom-alignment */
      background: #111 url('linux.png') center bottom / cover no-repeat;
      display: flex; align-items: center; justify-content: center;
    }
    .hero-content {
      text-align: center; color: #fff; z-index: 1;
      display: flex; flex-direction: column; gap: 1rem; padding: 0 1rem;
    }
    .hero-content img.logo {
      width: 140px; filter: drop-shadow(0 0 8px rgba(0,0,0,.5)) brightness(1.2);
    }
    .hero-content h1 { margin: 0; font-size: 3rem; }
    .hero-content p  { margin: 0; font-size: 1.2rem; }
    .hero-content a.button {
      margin-top: 1rem; padding: .75rem 1.5rem;
      background: rgba(0,0,0,.6); color: #422e97;
      border-radius: 6px; transition: .3s; text-decoration: none;
    }
    .hero-content a.button:hover {
      background: #0ff; color: #000; transform: translateY(-2px);
    }

    /* ===== News Carousel ===== */
    .news-carousel-wrapper {
      position: relative; z-index: 100; width: 100%; overflow: hidden;
      margin: 0; height: 30vh; border-top: 1px solid #424242;
    }
    .news-carousel {
      display: flex; transition: transform .6s ease; height: 100%;
    }
    .news-item {
      min-width: 100%; box-sizing: border-box; position: relative; height: 100%;
    }
    .news-item img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .news-text {
      position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
      background: rgba(0,0,0,.5); color: #fff;
      padding: .75rem; border-radius: 4px; font-size: .9rem;
    }
    .news-text h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
    .news-text p  { margin: 0; font-size: .85rem; }

    /* ===== Features ===== */
    .content-wrapper { flex: 1; background: rgba(0, 42, 97, 0.685); }
    .features {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
      gap: 1.5rem; padding: 2.5rem 1rem; max-width: 1000px; margin: 0 auto;
      padding-bottom: 4rem; /* ez segíti, hogy legyen hely alul */
    }
    .features-heading {
      grid-column: 1 / -1; color: #fff; font-size: 1.4rem; margin-bottom: 1rem;
    }
    .feature-card {
      background:rgba(0, 91, 128, 0.363); border: 1px solid #ccc; border-radius: 8px;
      box-shadow: 0 4px 12px rgba(255,255,255,.1);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 1.5rem; text-align: center; cursor: pointer; transition: .2s; height: 180px;
    }
    .feature-card:hover {
      transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,.1);
    }
    .feature-card img { width: 60px; height: 60px; margin-bottom: 1rem; }
    .feature-card h3 { margin: 0; font-size: 1rem; color: #fff; }

    /* ===== Modals ===== */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.6);
      display: none; align-items: center; justify-content: center; z-index: 2000;
    }
    .modal-overlay.active { display: flex; }
    .modal-overlay .modal {
      background:rgba(0, 122, 170, 0.685); color: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 1.5rem;
      max-width: 90%; width: 300px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,.2);
    }
    .modal-overlay .close-btn {
      position: absolute; top: 8px; right: 12px; background: none; border: none; color: #fff;
      font-size: 1.5rem; cursor: pointer;
    }

    /* ===== Info panel ===== */
    .info-container {
      position: fixed; top: 3rem; right: 1rem; background:rgba(0, 122, 170, 0.288) ; padding: 1rem; border: 0.5px solid #ccc; border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,.5); z-index: 1100; display: none;
    }
    .info-container.open { display: block; }
    .info-container h3 { margin: 0 0 .5rem; font-size: .95rem; color: #ccc; }
    .info-container p  { margin: 0 0 1rem; font-size: 1.1rem; }

    /* ===== Footer ===== */
    footer {
      background: rgba(0, 91, 128, 0.363); color: #fff; text-align: center; padding: 1.5rem 1rem;
    }
    footer .footer-link {
      display: inline-flex; align-items: center; margin: 0 8px 1rem; color: #fff;
      text-decoration: none; transition: .2s;
    }
    footer .footer-link img { width: 30px; height: 30px; margin-right: 6px; }
    footer .footer-link:hover { color: #0ff; }
    footer p { margin: 0; font-size: .9rem; }

    /* ===== Mobil ===== */
    @media (max-width: 768px) {
      header { height: 50vh; }
      .news-carousel-wrapper { height: 25vh; }
      .hero-content h1 { font-size: 2rem; }
      .hero-content p  { font-size: 1rem; }
    }
   @media (max-width: 480px) {
  #visitor-count {
    display: none;
  }

  .info-visitor-count {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
  }

  #top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  #top-left {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 1rem;
    order: 1;
  }

  #top-center {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  #top-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: 1rem;
    order: 3;
    position: relative;
    box-sizing: border-box;
  }

  #info-toggle {
    margin-top: 1.8rem;
    align-self: flex-end;
    max-width: 90px;
    margin-right: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 👇 Ez igazítja a fiók gombot és a profilképet az info-toggle magasságához */
  #login-btn,
  .profile-menu {
    margin-top: 1.2rem; /* vagy próbáld 1.5rem-ig finomhangolni */
    align-self: flex-end;
  }

  .profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
  }

  .profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    padding: 0.5rem;
    z-index: 100;
  }

  .profile-menu:hover .profile-dropdown {
    display: block;
  }

  #election-container {
    padding: 0.2rem 0.6rem;
    left: 30%;
    transform: translateX(-30%);
  }

  #election-label {
    font-size: 0.75rem;
  }

  #election-countdown {
    font-size: 0.85rem;
  }

  .features {
    gap: 1rem;
    padding: 2rem 0.5rem;
  }

  .feature-card {
    height: 150px;
    padding: 1rem;
  }
}

    /* ===== Login modal ===== */

      .info-login-btn {
        margin-bottom: 1em;
        text-align: center;
    }

    /* Add at the end of your file */
      .form-box.login {
        background: rgba(34, 34, 34, 0.6);  /* halványan áttetsző */
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.301);
        padding: 2.5rem 2rem 2rem 2rem;
        max-width: 350px;
        margin: 2rem auto;
        color: #fff;
        backdrop-filter: blur(10px); /* hogy legyen üveges hatás */
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

      .form-box.login h2 {
        text-align: center;
        margin-bottom: 1.5rem;
        color: #0ff;
    }
      .input-box {
        position: relative;
        margin-bottom: 1.5rem;
    }
      .input-box input {
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 2.5rem;
        background: #222;
        border: none;
        border-radius: 6px;
        color: #fff;
        font-size: 1rem;
        outline: none;
        box-sizing: border-box;
    }
      .input-box label {
        position: absolute;
        left: 2.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        pointer-events: none;
        transition: 0.2s;
    }
      .input-box input:focus + label,
      .input-box input:not(:placeholder-shown) + label {
        top: -0.7rem;
        left: 2.2rem;
        font-size: 0.85rem;
        color: #0ff;
        background: #222;
        padding: 0 0.2rem;
    }
      .input-box .icon {
        position: absolute;
        left: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        color: #0ff;
        font-size: 1.2rem;
    }
      .input-box .show-password {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #aaa;
        font-size: 1.1rem;
    }
      .error-message {
        color: #ff5555;
        font-size: 0.95rem;
        margin-bottom: 1rem;
        text-align: center;
    }
      .forgot-password {
        background: none;
        border: none;
        color: #0ff;
        cursor: pointer;
        margin-top: 0.5rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
      #login-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: transparent; /* vagy rgba(0,0,0,0) */
        z-index: 3000;
        align-items: center;
        justify-content: center;
    }
      #login-modal-overlay.active {
        display: flex;
        background: rgba(0,0,0,0.4) !important; /* például egy kicsit sötét háttér */
    }
      .login-modal {
        background: transparent !important;
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 30px !important;
        box-shadow: none !important;
        color: #fff;
    }
      .login-modal .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 10;
    }

    .profile-menu {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.profile-menu img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  vertical-align: middle;
}

.profile-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background:rgba(0, 122, 170, 0.288);
  border: 0.5px solid #ccc;
  display: none;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 8px;
}

.profile-dropdown a {
  display: block;
  padding: 10px;
  color: rgb(255, 253, 253);
  text-decoration: none;
}

.profile-dropdown a:hover {
  background-color: #07b9d8;
  border-radius: 8px;
}

.profile-dropdown.show {
  display: block;
}

.bemutato {
    border: #ccc solid 1px; /* vékony szegély */
    border-radius: 8px; /* lekerekített sarkok */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* enyhe árnyék */
    background:rgba(0, 122, 170, 0.288);
    max-width: 700px;  /* korlátozzuk a szélességet */
    margin: 0 auto;    /* középre igazítás */
    font-size: 18px;   /* könnyen olvasható méret */
    line-height: 1.5;  /* a sorok közti távolság */
    padding: 20px;
}

.bemutato h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}


.border {
    border-top: 1px solid #ccc; /* vékony szegély */
    margin: 20px 0; /* felső és alsó margó */
    }

/* === Közös overlay beállítás === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

/* === LOGIN (Bejelentkezés) === */
.login-modal .form-box.login {
  background: transparent;          /* nincs háttér */
  border: none;                     /* nincs keret */
  box-shadow: none;                 /* nincs árnyék */
}

/* az overlay se sötétedjen a loginhoz */
.login-modal:has(.form-box.login:not(.hidden)) ~ .modal-overlay {
  background: transparent;
}

/* === REGISZTRÁCIÓ === */
.login-modal .form-box.register {
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  padding: 40px;
  color: white;
}

