
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

/* Betöltő képernyő */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  /* Spinner animáció */
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

html {
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Raleway", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    position: relative;
    overflow: hidden;
    height: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('images/background.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: top left;
    filter: brightness(0.3);
}

@media (max-width: 767px) {
    body::before {
        background-image: url('images/background_mobile.webp');
        filter: brightness(0.3);
    }
}

a {
    text-decoration: none;
    color: unset;
}

.header {
    background-color: rgba(255, 255, 255, 0);
    position: fixed;
    display: grid;
    grid-template-columns: auto 1fr;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.4);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.left-header {
    display: flex;
    align-items: center;
}

.logo {
    background-color: #fff;
    background-image: url('images/logo.webp');
    background-size: 65px 65px;
    background-repeat: no-repeat;
    background-attachment: center;
    height: 70px;
    width: 70px;
    border-radius: 0 0 50% 0;
}

.brand {
    font-size: 30px;
    font-weight: 500;
    font-weight: bold;
    margin-left: 1vw;
    color: #f8f8f8;
}

.menu {
    flex-grow: 1;
}

.desktop-menu ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

.desktop-menu li {
    margin: 0;
}

.desktop-menu li a {
    text-decoration: none;
    color: #f8f8f8;
    font-size: 14px;
    font-weight: 200;
}


.desktop-menu li a:hover {
    font-weight: 600;
}

.hamburger-menu {
    display: none;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    color: #f8f8f8;
    margin-right: 20px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgb(248, 248, 248);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 300;
}

.mobile-nav.open {
    display: flex;
}

@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .header-content {
        justify-content: space-between;
    }

    .brand {
        font-size: 26px;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .desktop-menu li:nth-child(7),
    .desktop-menu li:nth-child(8),
    .desktop-menu li:nth-child(9) {
        display: none;
    }

    .mobile-nav li:nth-child(1),
    .mobile-nav li:nth-child(2),
    .mobile-nav li:nth-child(3),
    .mobile-nav li:nth-child(4),
    .mobile-nav li:nth-child(5),
    .mobile-nav li:nth-child(6) {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.open {
        display: flex;
    }

    .desktop-menu li a {
        font-size: 1.2vw;
    }

    .brand {
        font-size: 3vw;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(3, 3, 3, 0.8);
    opacity: 0;
    transition: opacity 1s;
    color: #fff;
    font-weight: 200;
    text-align: center;
    text-transform: none;
    padding: 5px;
    border-radius: 6px;
    top: 100%;
    left: 50%;
    margin-left: -60px;
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.content-wrapper {
    position: absolute;
    top: calc(50px + 20px);
    left: 0;
    width: 100%;
    height: calc(100vh - (50px + 20px));
    overflow: hidden;
    background: rgba(255, 255, 255, 0);
}

.content {
    position: relative;
    overflow: auto;
    height: 100%;
    padding: 2vw;
    box-sizing: border-box;
}

.content::-webkit-scrollbar {
    display: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
    min-height: 50vh;
    color: #f8f8f8;
    padding: 0 20px;
}

.hero h1 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtext {
    font-size: 36px;
    font-weight: 200;
    margin-bottom: 20px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.9);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.callnow_button {
    display: none;
    flex-direction: row;
    justify-content: center;
    width: fit-content;
    margin: 2vw auto 2vw auto;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.callnow_button>div {
    text-align: center;
    font-size: 1vw;
    font-weight: 400;
    cursor: pointer;
    margin: 0px 10px;
    text-transform: uppercase;
}

.callnow_button:hover {
    background-color: grey;
    border-color: grey;
    transition: 400ms;
}

.callnow_number {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: fit-content;
    margin: 2vw auto 2vw auto;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.callnow_number>div {
    text-align: center;
    font-size: 1.8em;
    font-weight: 400;
    cursor: pointer;
    margin: 0px 10px;
    text-transform: uppercase;
}

.callnow_number:hover {
    background-color: grey;
    border-color: grey;
    transition: 400ms;
}

.socialbox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 3vw;
}

.socialbox>div {
    font-size: 3em;
    text-align: center;
    margin: 0vw 3vw;
    color: #fff;
}

.fa-brands {
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.socialbox .fa-brands:hover {
    color: grey;
    transition: 400ms;
}

.maplink {
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.maplink:hover {
    color: grey;
    transition: 400ms;
}

#email_link {
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

#email_link:hover {
    color: grey;
    transition: 400ms;
}

#footer_email_link {
    color: darkgrey;
}

#footer_email_link:hover {
    color: black;
}

.messenger {
    display: none;
}

.fa-chevron-down {
    margin-top: 20px;
    font-size: 3vw;
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 20px 0;
    margin: 40px auto 0 auto;
    /* Header alatti hely */
}

.service-box {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 5px solid #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    text-align: justify;
}

.service-box>div {
    background-size: cover;
    background-attachment: local;
    background-position: top left;
    border-radius: 18px 18px 0 0;
    align-content: center;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.service-box p {
    font-size: 2.8vh;
    font-weight: 300;
    margin: 0 5px;
}

h2 {
    color: #fff;
    font-weight: 600;
    font-size: 3.5vh;
    margin: 0 0 0 0.5em;
    text-shadow: 2px 2px 3px #1d1d1d;
}

.more_info {
    display: block;
    box-sizing: border-box;
    text-align: right;
    font-size: 2.4vh;
    font-weight: 600;
    padding: 5px;
    margin: 0;
}

.call-to-action {
    font-weight: 600;
}

#fitness {
    background-image: url('images/fit1.webp');
}

#personal {
    background-image: url('images/personal.webp');
}

#groups {
    background-image: url('images/group.webp');
}

#solarium {
    background-image: url('images/solarium.webp');
}

#body {
    background-image: url('images/body.webp');
}

#infra {
    background-image: url('images/infra.webp');
}

@media (min-width: 1199px) {
    .callnow_button {
        display: none;
    }

    .callnow_number {
        display: flex;
    }
}

@media (max-width: 1199px) {
    .services {
        grid-template-columns: 1fr;
    }

    .callnow_button {
        display: flex;
    }

    .callnow_number {
        display: none;
    }

    .callnow_button>div {
        font-size: 2vh;
    }

}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 4.2vh;
    }

    .hero-subtext {
        font-size: 2.8vh;
    }

    .messenger {
        display: inline;
    }

    .socialbox>div {
        font-size: 3.5vh;
    }

    .fa-chevron-down {
        font-size: 3vh;
    }
}

#prefooter {
    display: block;
    box-sizing: border-box;
}

#footer {
    background-color: #333;
    color: #fff;
    font-size: 1.6vh;
    font-weight: 100;
    padding: 20px;
    margin-top: 40px;
    box-sizing: border-box;
}

#footer h2 {
    margin-left: 0;
    font-size: 2vh;
    font-weight: 300;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    margin: 0 auto 0 auto;
}

.footer-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    margin: 0 auto 0 auto;
    align-content: start;
    width: 100%;
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact i {
    margin-right: 10px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);

}

.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#nyitvatartás {
    display: flex;
    flex-direction: column;
}

.footer-map {
    width: 100%;
    height: 100%;
    border: solid 5px #fff;
    border-radius: 14px;
    box-sizing: border-box;
}

.footer-left p,
.footer-right p {
    margin: 0;
    gap: 10px;
}

.footer-left a,
.footer-right a {
    color: #fff;
}

.footer-left a:hover,
.footer-right a:hover {
    font-weight: 400;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 9px;
}

.footer .fa-brands:hover {
    color: inherit;
    transform: none;
}

.copyright {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #333;
    color: #fff;
    font-size: 1.4vh;
    font-weight: 200;
    padding: 5px 0;
    margin-top: 10px;
    box-sizing: border-box;
    justify-content: space-between;
}
.copyright p {
    margin: 0;
    padding: 0;
}


@media (max-width: 1199px) {

    #prefooter {
        height: calc(100vh - (50px + 20px));
        margin: auto;
        margin-bottom: calc(100vh - 100dvh);
        align-content: center;
    }

    #footer {
        margin: auto;
        font-size: 2vh;
        padding: 10px 20px 10px 20px;
    }

    #footer h2 {
        font-size: 2.4vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        align-content: space-between;
    }

    .footer-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 0 auto 20px auto;
        width: 100%;
        height: 100%;
    }

    .footer-map {
        width: 100%;
        /* A container teljes szélessége */
    }

    .contact {
        justify-content: space-between;
    }

    .contact p {
        margin: 2px 0;
    }
}

@media (max-width: 499px) {
    .footer-left {
        grid-template-columns: 1fr;
    }

    .footer-left p {
        margin: 3px;
    }

}