/********************************News and Weather****************************/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700;900&display=swap');

:root {
    --background-color: #f7f8fa;
    --primary-color: #d1d5db;
    --secondary-color: #9ca3af;
    --accent-color: #4b5563;
    --text-color: #374151;
    --navbar-color: #c8c8c880;
    --links-color: #007bff;
    --links-hover-color: #0056b3;
}

* {
    box-sizing: border-box
}

body {
    font-family: 'Roboto', sans-serif !important;
    margin: 0;
    background-color: var(--background-color) !important;
    overflow-x: hidden;
}

/* Navbar items + BtT Button */
.container-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand, .navbar-collapse {
    flex: 1;
}

.logo-small {
    width: 70px; /* Állítsd be a megfelelő méretet */
    height: 70px;
    margin-right: 10px; /* Tarts megfelelő távolságot a szövegtől */
    border-radius: 50%; /* Kerek logó */
}


.navbar {
    background-color: var(--navbar-color);
    box-shadow: 5px 5px 5px 5px #4b5563;
}

.navbar .navbar-nav .nav-item {
    position: relative;
    text-align: center;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 500;
    text-shadow: 5px 5px 5px gray;
    letter-spacing: 1px;
    
}

.navbar .container-navbar .navbar-brand {
    letter-spacing: 1px;
    font-size: 30px;
    margin: 0 20px;
    color: var(--text-color);
}

.navbar .navbar-nav .nav-item::after {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    content: "";
    background-color: black;
    width: 0%;
    height: 2px;
    transition: all 0.5s;
}

.navbar .navbar-nav .nav-item:hover::after {
    width: 100%;
}

.navbar .navbar-nav .nav-item .nav-link.active::after {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  margin: 0 auto;
  content: "";
  background-color: black;
  width: 100%;
  height: 2px;
  transition: all 0.5s;
}

.navbar .navbar-toggler {
    box-shadow: 5px 5px 5px gray;
    transition: box-shadow 0.5s ease;
}

.navbar .navbar-toggler:hover {
    box-shadow: 5px 5px 5px black;
}

.dropdown-menu {
    color: black;
    font-weight: 800 !important;
    letter-spacing: 1.5px;
}

.dropdown-menu .dropdown-item {
    background-color: var(--navbar-color);
}

.dropdown-menu .dropdown-item:hover {
    background-color:var(--background-color);
    color: var(--text-color);
}

/*Hamburger Menu*/
@media screen and (min-width: 992px) {
    .navbar {
      padding: 0;
    }
    .navbar .navbar-nav .nav-link {
      padding: 1em 0;
      margin: auto;
    }
    .navbar .navbar-nav .nav-item {
      margin: 0 1em;
    }
    .dropdown-menu {
        background-color: rgba(255, 255, 255, .7) !important;
    }
    .navbar .navbar-toggler {
        box-shadow: 5px 5px 5px gray;
        transition: box-shadow 0.5s ease;
    }
  }

/*Back to Top Button*/
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Nyíl középre igazítása és sima méretezés */
#scrollToTopBtn svg {
  width: 28px;
  height: 28px;
  stroke: white;
  display: block;
}

#scrollToTopBtn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* Extra: kisebb méret mobilon */
@media (max-width: 576px) {
  #scrollToTopBtn {
    width: 46px;
    height: 46px;
  }

  #scrollToTopBtn svg {
    width: 22px;
    height: 22px;
  }
  .navbar .container-navbar .navbar-brand {
    font-size: 18px;
}
}

/* Sidebar Items */
#sidebar {
  height: auto;
  min-height: calc(100vh - 70px);
  padding: 10px;
  border-right: 1px solid #ddd;
}

.sidenav-link {
  font-size: 18px;
  color: #333;
  position: relative;
  text-decoration: none;
  padding: 0 20px;
  letter-spacing: 2px;
}

.sidenav-link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  background-color: black;
  width: 0%;
  height: 2px;
  transition: width 0.5s ease-in-out;
}

.sidenav-link:hover::after {
  width: 100%;
}

.sidenav-link:hover {
    color: #000;
}

.sidenav-link.active {
    color: #000;
}

.sidenav-link.active::after {
    width: 100%;
}

.sidebar-title {
    text-decoration: underline;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-container .description {
    margin-bottom: 100px !important;
}

#newsContainer .btn.open-modal {
    background-color: transparent;
    border: .11rem solid black;
    color: var(--text-color);
    transition: background-color 0.5s ease;
}

#newsContainer .btn.open-modal:hover {
    background-color: rgba(0, 0, 0,.5);
    border: .11rem solid white;
    color: white;
}

#newsContainer .btn.open-modal:active {
    background-color: #ccc !important;
    border: none;
    transform: scale(0.95);
}

.news-item p {
    font-size: 1rem;
}

.modal-title {
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {
    #sidebar {
        min-height: auto;
    }
    #header-picture {
        height: 500px !important;
    }
    #header-picture img {
        height: 500px !important;
    }    
}

@media (max-width: 572px) {
    main {
        padding: 0 !important;
        text-align: justify;
    }
    #allIn {
        padding: 12px ;
    }
    .main-container p, h5 {
        font-size: 1rem;
    }
    .main-container h4 {
        padding: 20px 0 30px 0;
        font-size: 1.2rem !important;
        text-align: center;
    }
    .main-container h3 {
        font-size: 18px !important;
    }
    .main-container h2 {
        font-size: 25px;
    }
    .main-container h1 {
        font-size: 30px;
    }
}

#modalAuthor,
#modalSource {
  display: none;
}


footer {
    font-size: 14px;
    color: #6c757d;
}

footer a {
    text-decoration: none;
    color: var(--links-color);
}

footer a:hover {
    color: var(--links-hover-color);
    font-weight: bold;
}

footer a i {
    color: var(--text-color);
}

footer a i:hover {
    color: var(--secondary-color);
}