* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family:Arial, Helvetica, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo, img {
    width: 70px;
    margin-left: 20px;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-right: 20px;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #7DFF91;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease-in-out;
}

.nav-links i{
    padding-left: 10px;
    font-size: 1rem;
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.scroll-top-btn{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    font-size:18px;
    cursor: pointer;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    display: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.scroll-top-btn:hover{
    background-color: rgba(0, 0, 0, 0.7);
}

.scroll-top-btn.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

.scroll-top-btn.hide {
    visibility: hidden;
    opacity: 0;
}

.home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.432), rgba(5, 6, 5, 0.91)), url('./assets/IMG_3866.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 70% 43%; 
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-align: left;
    box-sizing: border-box; 
}

.home-content {
    margin-top: 0;  
    max-width: 90%; 
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-title {
    color: white;
    font-weight: bold;
    font-size: 5vh;
    margin-bottom: 5vh; 
    text-transform: uppercase;
    width: 100%;
}

.sub-main-title {
    color: rgba(112, 253, 154, 0.874);
    font-weight: bold;
    font-size: 3vh; 
    text-transform: uppercase;
    margin-left: 2vw;
    width: 100%;
}

.about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.732), rgba(5, 6, 5, 0.91)), url('./assets/DSC_1573.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 10px; /* Csökkentett padding, hogy mobilon ne legyen túl nagy */
    color: white;
    text-align: center; /* Szöveg középre helyezése */
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-content {
    max-width: 90%; /* Kisebb szélesség mobilhoz */
    padding: 20px; /* Kisebb belső margó */
}

.about-title {
    font-size: clamp(24px, 6vw, 43px); /* Nagyobb minimális betűméret */
    letter-spacing: 1px;
    margin-bottom: 50px; /* Jobb távolság */
}

.pf-uppercase {
    text-transform: uppercase;
    font-size: clamp(20px, 5vw, 45px); 
    margin-bottom: 20px;
}

.about-title2 {
    font-size: clamp(20px, 5vw, 30px); /* Nagyobb betűméret mobilon */
    font-weight: bold;
    margin: 20px 0;
    margin-bottom: 50px;
    color: #7DFF91;
    font-style: italic;
}

.about-text {
    max-width: 50%; /* Teljes szélesség mobilon */
    font-size: clamp(18px, 4vw, 22px); /* Nagyobb minimális betűméret */
    line-height: 1.6; /* Kényelmesebb olvashatóság */
    margin: 10px auto;
    text-align: justify; /* Igazítás */
}

.about-text p {
    margin-bottom: 20px; /* Több távolság a bekezdések között */
}

.service-container {
    padding: 30px 20px;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.532), rgba(5, 6, 5, 0.97)), url('./assets/dumbbell-1966247.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
    min-height: 110vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    box-sizing: border-box;
}

.service-container h2 {
    text-align: center;
    color: #7DFF91; 
    margin-bottom: 40px;
    font-size: 45px;
    text-transform: uppercase;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    color: white;
    position: relative;
    font-size: 19px;
}


.service-header {
    text-align: center;
    padding: 20px;
}

.service-header h1 {
    margin: 45px;
    font-size: 2em;
    color: rgb(96, 247, 141);
}

.service {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.service-logo{
    width: 70px;
    padding: 5px;
}

.service-item img {
    max-width: 100px; 
    height: auto;
    border-radius: 50px;
    text-align: center;
    background-color: #7DFF91;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    text-align: left;
}

.service-text p {
    margin: 0;
    text-align: left;
    position: relative;
}

.trainers {
    background-image: linear-gradient(rgba(0, 0, 0, 0.732), rgba(5, 6, 5, 0.91)), url('./assets/DSC_1585.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; /* Központosított háttérkép */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Dinamikus padding */
    min-height: 100vh;
    box-sizing: border-box;
}

.trainers-content {
    display: flex;
    flex-wrap: wrap; /* Wrap, ha nincs elég hely */
    gap: 50px; /* Csökkentett gap */
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px; /* Maximális szélesség */
}

.trainers-text {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    text-align: justify;
}

.trainers-text p {
    padding-bottom: 15px;
    color: white;
    line-height: 1.6; /* Jobb olvashatóság */
    font-size: 1.46rem;
}

.trainers-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: rgba(112, 253, 154, 0.874);
}

.trainers-text hr {
    width: 50px;
    border: 1px solid rgba(112, 253, 154, 0.874);
    margin: 10px 0;
}

.trainer-img1 img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px; /* Finom lekerekítés */
}

.pricing-section {
    display: flex;
    flex-direction: column; /* A cím és a kártyák függőlegesen egymás alatt */
    align-items: center; /* Középre igazítás vízszintesen */
    width: 100%;
    padding: 20px;
    margin: auto;
    background-image: linear-gradient(rgba(36, 35, 35, 0.732), rgba(5, 6, 5, 0.91)), url('./assets/fitness-3439343.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative; 
}

.pricing-title {
    margin-bottom: 10px;
    font-size: 3rem;
    margin-top: 150px;
    font-weight: bold;
    color: rgba(112, 253, 154, 0.874);;
    text-align: center; 
}

.pricing-sub-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    color: white;
    text-align: center; 
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
    justify-content: center; 
    align-items: center; 
    width: 100%;
    margin-bottom: 50px;
}

.pricing-card {
    width: 350px;
    background: #ccc6c6;
 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    margin: auto;
    align-items: center;
}

.pricing-header {
    text-align: center;
    padding: 30px;  /* A padding növelése a nagyobb kártyához */
    background: linear-gradient(135deg, rgba(112, 253, 154, 0.9), rgba(94, 216, 132, 0.9));
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

#standard .pricing-header {
    background: linear-gradient(135deg, rgba(85, 190, 112, 0.95), rgba(60, 153, 92, 0.9));
}

#premium .pricing-header {
    background: linear-gradient(135deg, rgba(72, 148, 84, 0.95), rgba(43, 115, 70, 0.9));
}

#premium-package .pricing-header {
    background: linear-gradient(135deg, rgba(76, 178, 73, 0.85), rgba(7, 101, 1, 0.9));
}

.price {
    font-size: 20px;  
    font-weight: bold;
    color: #fff;
}

.pricing-cards h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.pricing-body {
    padding: 30px;  
    position: relative;
}

.pricing-details {
    color: white;
    font-size: 1.2rem;
}

.email-button {
    position: absolute; 
    bottom: -20px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #7DFF91;
    padding: 12px 25px; 
    border-radius: 25px; 
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.email-button:hover {
    background: #333;
    color: #fff;
}

.pricing-details {
    padding: 0;
    margin: 0;
}

.pricing-details li {
    margin: 15px 0;  /* Növeljük a távolságot a listában */
    font-size: 1.1rem; /* A lista szövegének nagyobb mérete */
    color: #555;
}

/* .pricing-details li::before {
    content: "✔";
    color: #4caf50;
    margin-right: 12px;  
} */

.popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999; 
}

.popup-content {
    background-color: #f9f9f9;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    margin: 100px auto;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-content h2{
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: none;
}

textarea {
    height: 100px;
}

.popup button {
    background-color: rgba(66, 239, 118, 0.874);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.popup button:hover {
    background-color: rgba(112, 253, 154, 0.874);;
}

.card ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
}

.card ul li {
    margin-bottom: 10px;
}

.card button {
    background-color: #444;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.card button:hover {
    background-color: #7DFF91;
    color: #111;
}

.slider-section {
    background-color: black;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 110vh;
  }

 .slider {
    position: relative;
    width: 95%;
    max-width: 1000px;
    height: 660px; 
    margin: 0 auto; 
    overflow: hidden;
  }

  #gallery > div.slider.hidden.show > div:nth-child(4) > img {
    margin: 0;
  }

  .img3866 {
    position: relative; 
    top: -270px;
  }

  .dsc1657 {
    position: relative; 
    top: -250px;
  }

  .img4546 {
    position: relative; 
    top: -620px;
  }

  .img5331 {
    position: relative; 
    top: -150px;
  }

  .gallery-title {
    color: #7DFF91;
    font-size: 45px; 
    font-weight: bold;
    margin-bottom: 20px; 
    text-transform: uppercase;
    letter-spacing: 5px;
    padding-bottom: 45px;
  }
  
  .slide img {
    width: 100%;
    object-fit: cover; 
  }

  .dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
  }
  
  .dot {
    height: 8px;
    width: 8px;  
    margin: 0 4px;
    background-color: white;
    border-radius: 5px; 
    display: inline-block;
    cursor: pointer;
    transition: all 0.5s ease-in-out; 
  }
  
  .dot.active {
    width: 20px;
    height: 8px; 
    background-color: white; 
  }
  
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transform: translateY(-50%);
  }
  
  .prev {
    border-radius: 3px 0 0 3px;
  }
  
  .next {
    right: 0;
    border-radius: 0 3px 3px 0;
  }
  
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }

  .contact-section {
    display: flex;
    flex-direction: row; /* Elemek egymás alá rendezése */
    justify-content: center; /* Függőleges középre igazítás */
    align-items: center; /* Vízszintes középre igazítás */
    padding: 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.132), rgba(5, 6, 5, 0.91)), url('assets/fitness-1882721.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 70% 43%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1500px;
    height: 300px;
    border-radius: 5px;
    min-height: 50vh;
    position: relative; /* Ehhez igazodik az abszolút pozícionált elem */
}
.contact-info {
    flex: 1;
    text-align: left;
}

.contact-info img {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info ul li {
    font-size: 1.2em;
    line-height: 50px;
    display: flex;
    align-items: center;
    color: white;
}

.social-links {
    position: absolute;
    bottom: 20px; /* Az ikonok a szekció aljához igazodnak */
    display: flex;
    justify-content: center; /* Középre vízszintesen */
    align-items: center; /* Ikonok középen igazítása */
    gap: 30px; /* Távolság az ikonok között */
    font-size: 50px; /* Alapértelmezett ikonméret */
}

.social-links a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #7DFF91; /* Hover szín */
}

#contact > div.contact-info > ul > li > a {
    text-decoration: none;
    color: white;
}

.contact-logo {
    height: 150px;
    width: auto;
}

.menu-and-map{
    flex: 2;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.menu{
    flex: 1;
}

.menu a{
    text-decoration: none;
}

.menu h3{
    font-size: 1.5em;
    margin-bottom: 15px;
}

.menu ul {
    padding: 0;
}

.menu ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #7DFF91;
}

.map{
    flex: 1;
    text-align: right;
}

.menu iframe{
    width: 100%;
    height: auto;
    border: 0;
}

#contact > div.contact-info > ul > li > i{
    color: #7DFF91;
    padding: 5px;
    margin-right: 5px;
}

.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.service-item:nth-child(2){
    transition-delay: 200ms;
}
.service-item:nth-child(3){
    transition-delay: 200ms;
}
.service-item:nth-child(4){
    transition-delay: 200ms;
}
.service-item:nth-child(5){
    transition-delay: 400ms;
}
.service-item:nth-child(6){
    transition-delay: 400ms;
}

@media (max-width: 1550px) { 
    .pricing-cards {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 20px 0;
        gap: 15px;
        font-size: 12px;
    }

    .service-container {
        background-position: center; 
        padding: 30px 10px; 
        min-height: 100vh; 
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block;
        font-size: 40px;
        margin-right: 20px;
    }

    .main-title {
        font-size: 4vh;
    }

    .sub-main-title {
        font-size: 2.5vh;
    }

    .about-title2 {
        font-size: 30px;
    }

    .about-content {
        padding: 10vw;
    }

    .about-text {
        max-width: 95%;
        padding: 2%;
        font-size: 1.5rem;
    }

    .service-container h2 {
        font-size: 40px;
    }

    .services-content {
        display: flex;
        flex-direction: column;
    }

    .trainers-content {
        display: flex;
        flex-direction: column;
    }

    .trainers-text p {
        font-size: 25px;
    }

    .pricing-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .pricing-cards {
        display: flex;
        flex-direction: column;
    }

    .pricing-card {
        height: fit-content;
        width: fit-content;
    }

    .pricing-details li{
        font-size: 15px;
        text-align: left;
    }

    .gallery-title {
        font-size: 40px;
    }

    .slider {
        height: 600px;
    }

    .contact-info {
        font-size: 12px;
    }

    .scroll-top-btn {
        padding: 15px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 5px;
    }

    .logo img {
        width: 50px;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-right: 0;
        margin-top: 10px;
    }

    .home-content {
        padding: 20px;
    }

    .main-title {
        font-size: 3vh;
    }

    .sub-main-title {
        font-size: 2vh;
    }

    .about-content {
        padding: 10px; /* Még kisebb belső margó kisebb képernyőkre */
    }

    .about-title {
        font-size: 25px; /* Nagyobb betűméret mobilon */
        margin-bottom: 20px;
    }

    .about-title2 {
        font-size: 18px; /* Nagyobb betűméret mobilon */
        margin-bottom: 20px;
    }

    .about-text {
        font-size: 12px; /* Jobb olvashatóság mobilon */
        line-height: 1.8;
    }

    .service-logo {
        padding: 5px;
    }

    .service-item img {
        width: 50px;
    }

    #prices > div.pricing-title.hidden.show {
        margin-top: 25px;
        margin-bottom: 10px;
    }

    #prices > div.pricing-sub-title.hidden.show {
        font-size: 16px;
        margin-bottom: 30px;
    }

    #prices > div.pricing-detail > p{
        font-size: 14px;
        text-align: justify;
    }

    #services > h2 {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .services-content {
        flex-direction: column; /* Egy oszlopba rendezés */
        gap: 15px; /* Csökkentett távolság */
      }

      #services > h2 {
        font-size: 18px;
      }
    
      .service-item {
        flex: 1 1 100%; /* Teljes szélességű kártyák */
        padding: 0px;
      }
    
      .service-logo {
        width: 60px; /* Kisebb logóméret */
      }
    
      .service-text h3 {
        font-size: 0.8rem; /* Kisebb címsor */
      }
    
      .service-text p {
        font-size: 0.6rem; /* Kisebb szövegméret */
      }

      #trainers > div {
        gap: 5px;
      }

      #trainers > div > div.trainers-text > h3 {
        font-size: 20px;
        margin-top: 30px;
      }

      .trainers-text p {
        font-size: 13px;
      }

      .trainer-img1 img {
        padding: 15px;
      }

    .price {
        font-size: 14px;
    }

    .pricing-section {
        padding: 50px;
    }

    .pricing-cards h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-header {
        padding: 10px;
    }

    .pricing-body {
        padding: 5px;
    }

    #basic > div.pricing-body > ul {
        padding: 15px;
    }

    .pricing-card {
        width: fit-content;
        height: fit-content;
    }

    .pricing-details li {
        padding: 0px;
        font-size: 14px;
    }

    .pricing-details {
        padding: 15px;
        width: 200px;
    }

    .pricing-card button {
        color: #333;
    }

    .email-button {
        padding: 8px 16px;
        font-size: 12px; 
    }

    .slider {
        height: 400px;
    }

    a.next {
        background-color: rgba(0, 0, 0, 0.6);
    }

    a.prev {
        background-color: rgba(0, 0, 0, 0.6);
    }

    #gallery > div.slider.hidden.show > div:nth-child(4) > img {
        margin: 0;
    }

    .img3866 {
        position: relative; 
        top: -50px;
      }

      .dsc1657 {
        position: relative; 
        top: -55px;
    } 
    
      .img5331 {
        position: relative; 
        top: -150px;
      }

      .img5337 {
        height: 367px;
      }
    
      .img5347 {
        height: 367px;
      }

    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px; 
        height: fit-content;
    }

    .contact-info {
        text-align: center; 
        margin-bottom: 20px; 
    }

    .contact-logo {
        width: 80px;
        height: 80px; 
        margin-bottom: 10px; 
    }

    .contact-info ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .contact-info ul li {
        font-size: 16px; 
        margin: 10px 0; 
    }

    .social-links {
        display: flex;
        top: 0;
        margin-bottom: 40px;
    }

    .social-links a {
        margin: 0 10px; /* Térköz a közösségi ikonok között */
        font-size: 30px; /* Kisebb ikonok mobilon */
    }

    .social-links a i {
        color: #7DFF91;
    }

    .menu-and-map {
        width: 100%; /* Biztosítjuk, hogy a térkép és a menü ne legyenek szélesebbek a szülőelem szélességénél */
        text-align: center;
    }

    iframe {
        height: 300px;
        width: 300px;
        margin: auto;
    }
}
