.site-header {
  background-color: #fff;
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  height: auto;
}
.site-logo {
  height: auto;
  max-width: 90vw; /* fontos: logó ne nyúljon ki teljes képernyőre */
  max-height: 400px; /* desktop méret */
}



.ency_site-header {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ency_logo-container {
  width: 100%;
  overflow: hidden;
}

.ency_site-logo {
  width: 100%;
  height: auto; /* ez megőrzi az arányokat */
  display: block;
  object-fit: cover; /* lefedi a szélességet, nem torzít */
  max-height: 500px;
}


/* Tablet nézet */
@media (max-width: 768px) {
  .ency_site-logo {
    max-height: 250px;
  }
}

/* Mobil nézet */
@media (max-width: 480px) {
  .ency_site-logo {
    max-height: 220px;
  }
}






/* Lenyíló menü háttérkép */
.login-menu {
    background-image: url('../images/Images-from-the-discovered-manuscript-of-the-paleontology-lecture-from-summer-semester.png'); /* Cseréld le a saját képedre */
    background-size: cover;
    background-position: center;
    border: none;
    width: 450px;
    height: 400px;
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

/* Átlátszó input mezők */
.login-menu .form-control {
    background: rgb(36, 36, 35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

/* Fehér placeholder szöveg */
.login-menu .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Címkék színe */
.login-menu .form-label {
    color: white;
}

/* Kisebb gombok */
.login-menu .btn {
    font-size: 0.9rem;
}



/* Alapértelmezett: desktopon igazítjuk jobbra, picit balra tolva */
.navbar-nav .dropdown-menu {
  right: 0;
  left: auto;
  transform: translateX(-75%);
}

/* Mobilnézetre fixáljuk, hogy ne lógjon ki balra */
@media (max-width: 576px) {
  .navbar-nav .dropdown-menu {
    right: auto;
    left: 0;
    transform: none;
  }
}


@media (max-width: 576px) {
  .navbar-nav .dropdown-menu {
    width: 85vw;
    max-width: 400px;
  }
}









/* INDEX.PHP */
.main-section {
    padding: 60px 0;
}

/* Container for Text and Image */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Text Section */
.text-section {
    max-width: 600px;
}

/* Heading Styling */
h1 {
    font-size: 3rem;
    color: #343a40;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Paragraph Styling */
.text-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
}

/* Highlight Text */
.text-section strong {
    color: #007bff;
}

/* Link Styling */
.text-section a {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s ease;
}

.text-section a:hover {
    color: #0056b3;
}

/* Image Section */
.image-section {
    flex: 1;
    height: 400px;
    width: 400px;
    background-image: url('https://via.placeholder.com/500x400'); /* Replace with actual image */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-section img {
    height: 400px;
    width: 680px;

}


/* Subheading Styling */
h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .image-section {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }
    
    .image-section img {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    .text-section {
        max-width: 90%;
    }
}









.learn-section {
    padding: 0;
    margin: 0;
}

.learn_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.text-learn_section {
    max-width: 600px;
    padding: 20px;
}

h1 {
    font-size: 3rem;
    color: #343a40;
    font-weight: 700;
    margin-bottom: 20px;
}

.text-learn_section p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
}

.text-learn_section strong {
    color: #000000;
}

.impact-btn {
    background-color: #ff4d00;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.impact-btn:hover {
    background-color: #ff0000;
}

.image-learn_section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter 3s ease-in-out, opacity 3s ease-in-out;
}

.impact-effect {
    filter: blur(15px) brightness(2);
    opacity: 0;
    transition: opacity 2s ease-out, filter 2s ease-out;
}

.new-content {
    display: none;
    text-align: center;
    margin-top: 50px;
}

.reverse-effect {
    opacity: 1;
    filter: blur(0) brightness(1);
    transition: opacity 2s ease-in-out, filter 2s ease-in-out;
}

#backButton {
    display: block;
    margin: 10px auto;
    padding: 8px 16px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    top: -40px; /* Back button feljebb helyezve */
    right: 100px;
}

#backButton:hover {
    background-color: #0056b3;
}






.new-content .d-flex {
  display: flex;
  align-items: center;
  justify-content: start; /* A nyelvi gombokat és a vissza gombot balra igazítja */
}

.new-content .language-buttons {
  display: flex;
  gap: 10px; /* Kis térköz a nyelvi gombok között */
}

.new-content #backButton {
  margin-left: 15px; /* Távolság a nyelvi gomboktól */
  margin-top: 10px;
}

.language-buttons {
  display: flex;
  gap: 10px;
}
  
  @media (max-width: 768px) {
    .language-buttons {
      padding-left: 10px; /* mobilon picit kisebb margó */
    }
  }




  #learningProgressWrapper {
    background-color: #212529; /* ugyanolyan mint nav (bg-dark) */
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  #learningProgressWrapper .progress {
    margin: 0 auto;
    border-radius: 0;
    height: 25px;
    background-color: #343a40; /* sötét háttér */
    max-width: 100%;
  }
  
  #learningProgressWrapper .progress-bar {
    background-color: #b0e955; /* sárga */
  }
  
  #learningProgressWrapper span {
    color: white;
    font-weight: bold;
  }

  @media (max-width: 768px) {
    .learning-progress-bar-full {
      padding: 8px 10px;
    }
  
    .learning-progress-label {
      font-size: 16px;
    }
  
    .learning-progress-wrapper {
      height: 18px;
    }
  }

            



/*learning  stilusok*/
.centered-content {
    margin: 0 auto;
    max-width: 1000px;
    text-align: center;
}


.hadean-img,
.archean-img,
.proterozoic-img,
.cambrian-img,
.ordovician-img,
.silurian-img,
.devonian-img,
.devonian_plants-img {
  width: 1000px;
  max-width: 1000px;
  height: 500px;
  max-height: 500px;
  object-fit: fill;           /* nem vág, de lehet benne üres hely */
  background-color: #f5f5f5;     /* egységes hátteret ad a különböző arányokhoz */
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 12px;
}


/* A címsor stílusa */
.period-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* A bekezdések stílusa */
.period-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
    color: #333;
}












/* Responsive Design */
@media (max-width: 768px) {

    .modal-dialog {
        max-width: 95%;
        margin: auto;
    }

    .image-learn_section img {
        height: 200px;
    }

    .text-learn_section {
        max-width: 90%;
    }
}



.devonian-btn-wrapper {
    position: relative;
  }
  
  .mass-extinction-alert {
    position: absolute;
    top: 50%;
    left: 105%; /* gombon kívül jobbra jelenik meg */
    transform: translateY(-50%);
    background-color: #111;
    color: #f00;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  }



  .mass-extinction-text-ordovician,
  .mass-extinction-text-devonian {
    margin-left: 10px;
    color: #f00;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
  }

  .extinction-label {
    margin-left: 10px;
    color: red;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}


.devon-section {
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 12px;
    margin-bottom: 30px;
  }







/* Webshop elrendezés */
.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}



/* Termékek megjelenítése */
.products-section {
    position: relative;
    left: 10px;
    flex-grow: 1;  /* A termékek kitöltik a maradék helyet */
    margin-top: 20px;
}

/* Szűrő formázás */
.form-label {
    font-weight: bold;
    color: #333;
}

.form-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button[type="submit"] {
    width: 100%;
}

/* Termékek stílusa */
.card {
    width: 420px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

.card .btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border: none;
    transition: background-color 0.3s ease;
}

.card .btn:hover {
    background-color: #0056b3;
}

/* Média leképezés mobilra */
@media (max-width: 767px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .filter-section {
        width: 100%;  /* Mobilon a szűrő panel szélessége 100% */
    }

    .products-section {
        width: 100%;
    }
}









.forum-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .forum-topics .btn {
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 20px;
  }
  
  .forum-form-card {
    background-color: #f8f9fa;
    border-radius: 16px;
  }
  
  .forum-message-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
  }
  
  .forum-avatar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .forum-username {
    font-size: 1rem;
    color: #2c3e50;
  }
  
  .forum-message-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
  }
  
  .forum-image {
    max-height: 350px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 12px;
  }















  .btn-quantity-small {
    font-size: 12px !important;
    padding: 2px 6px !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 1 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .product-qty-small {
    max-width: 50px !important;
    font-size: 14px !important;
    padding: 3px !important;
    height: 28px !important;
    text-align: center;
  }


  .products-section .card {
    min-height: 100%;
  }
  .card .product-qty-small {
    max-width: 60px;
    padding: 0.2rem 0.4rem;
    font-size: 0.875rem;
  }
  .btn-quantity-small {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }


  .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
  }











  .list-group-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}
.list-group-item.active {
    background-color: #007bff;
    color: white;
}