@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;
    --links-color: #007bff;
    --links-hover-color: #0056b3;
}

* {
    box-sizing: border-box
}

html {
    scroll-padding-top: 400px;
}
  
body {
    font-family: 'Roboto', sans-serif !important;
    margin: 0;
    background-color: var(--background-color) !important;
}

/* 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;
    height: 70px;
    margin-right: 10px; 
    border-radius: 50%; 
}


.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;
}

#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);
}

@media (max-width: 576px) {
  #scrollToTopBtn {
    width: 46px;
    height: 46px;
  }

  #scrollToTopBtn svg {
    width: 22px;
    height: 22px;
  }
  .navbar .container-navbar .navbar-brand {
    font-size: 18px;
}
}

.custom-section {
    height: 100vh;
    display: grid;
    place-items: center;
}

/* Slider items */

#hero-carousel {
  position: relative;
}

.c-item {
    height: 700px;
}
  
.c-img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; 
    text-align: center;
}

.carousel-caption .btn {
    background-color: transparent;
    border: .11rem solid white;
    transition: background-color 0.5s ease;
}

.carousel-caption .btn:hover {
    background-color: rgba(255, 255, 255,.2);
    border: .11rem solid white;
}

.carousel-caption .btn:active {
    background-color: #ccc !important;
    border: none;
    transform: scale(0.95);
}

@media (max-width: 768px) {
    #hero-carousel .carousel-inner {
        height: 50vh;
    }

    .carousel-item img {
        width: 50vw;
    }

    .c-item {
        height: 50vh;
    }
    
    .c-img {
        height: 50vh;
    }
    .header-picture {
        height: 40vh !important;
    }
    .header-picture img {
        height: 40vh !important;
    }
}

/*Contact Button*/
.container-fluid .own-button {
    background-color: transparent;
    border: .11rem solid black;
    color: var(--text-color);
    transition: background-color 0.5s ease;
}

.container-fluid .own-button:hover {
    background-color: rgba(0, 0, 0,.5);
    border: .11rem solid white;
    color: white;
}

.container-fluid .own-button:active {
    background-color: #ccc !important;
    border: none;
    transform: scale(0.95);
}

/* Swiper Items */
.swiper-container {
    margin: 50px 0;
    width: 100%;
    overflow: hidden;
}
    
.custom-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.custom-card h5 i {
    margin-right: 10px;
}
    
.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(220, 220, 220, 1));
}
  
.custom-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}
  
.custom-card:hover img {
    transform: scale(1.03);
}
  
.custom-card h5 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}
  
.custom-card p {
    font-size: 1rem;
    color: #666;
}
  
.custom-card .btn {
    background-color: transparent;
    border: .11rem solid black;
    color: var(--text-color);
    transition: background-color 0.5s ease;
}
  
.custom-card .btn:hover {
    background-color: rgba(0, 0, 0,.5);
    border: .11rem solid white;
}

.custom-card .btn:active {
    background-color: #ccc !important;
    border: none;
    transform: scale(0.95);
}

.custom-card:hover {
    animation: glow 0.5s ease-in-out;
}

@keyframes glow {
    0% {
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
    50% {
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
}
    
@media (max-width: 768px) {

    .custom-card {
      padding: 15px;
    }
  
    .custom-card h5 {
      font-size: 1.2rem;
    }
  
    .custom-card p {
      font-size: 0.9rem;
    }    
}
@media screen and (max-width: 767px) {
  .custom-card {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }

  .swiper-container {
    overflow: visible;
  }

  .swiper-container > div {
    display: block !important; /* Biztos, hogy ne legyen flex vagy inline-flex */
  }
}

/*******************************Modal window*****************************/
.modal-xl {
    max-width: 95vw !important; /* Kényszerítjük a szélességet */
}

.modal-body {
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.header-picture-capture p {
  font-size: clamp(1rem, 2.5vw, 2rem);
}
.header-picture-capture h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}
.header-picture-capture h2 {
  font-size: clamp(1.2rem, 3.5vw, 2.5rem);
}

/*******************Subsites Items from here******************/
/*********************Hikers Informations********************/

.table {
    width: 100%;
    table-layout: auto !important;
}

.table th, .table td {
    min-width: 50px !important;
    word-wrap: break-word;
}
@media (max-width: 572px) {
    .table th, .table td {
        font-size: 10px; 
        padding: 8px; 
    }

    .table-container {
        padding: 0;
    }

    .table {
        display: block;
        overflow-x: auto;

    }
    .main-container {
        padding: 10px !important;
        text-align: justify;
    }

    .main-container p, ul, h5 {
        font-size: 10px;
    }
    .main-container h4 {
        font-size: 15px !important;
        text-align: center;
    }
    .main-container h3 {
        font-size: 18px !important;
    }
    .main-container h2 {
        font-size: 25px;
    }
    .main-container h1 {
        font-size: 30px;
    }
}

.rules-container .description {
    margin: 100px 0 !important;
}

.visitmadeira-logo a {
    text-decoration: none;
    color: var(--text-color);
}

.visitmadeira-logo {
    transition: all 0.3s ease-in-out;
}

.visitmadeira-logo:hover {
    transform: scale(1.1);
}

/***********************************Good to Know****************************/
.content-container {
    margin-top: 150px;
}

/***********************************Airplanes*******************************/
.signage {
  margin:0 auto;
  padding: 0;
  text-align: center;

}

iframe {
  font-size: 5px !important;
  width: 100%;
  height: 900px;
}

@media (max-width: 572px) {
iframe {
  height: 750px;
}
}

/*********************************All about Madeira*****************************/
.accordion-button {
  font-size: clamp(1rem, 2vw, 1.4rem);
}
/***********************************Footer Items*******************************/
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);
}
