#top-social {
    margin-right: 0;
}

#top-social svg,
#footer-social svg {
    width: 1.5rem;
    height: 1.5rem;
}

#top-social svg path,
#footer-social svg path {
    fill: var(--salmon);
}

#top-social svg path:hover,
#footer-social svg path:hover {
    background: var(--text-color);
}

#main-top {
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(255, 250, 238, 0.2);
}

#top-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#top-head ul li {
    font-size: 16px;
    list-style: none;

}

#top-social ul li:first-child,
#footer-social ul li:first-child {
    margin-left: 0;
}

#top-info ul,
#top-social ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0;

}


#footer-social ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;

}

,
#footer-info ul li a {
    color: #fff !important;

}

#top-info ul li a {
    color: var(--text-color);

}

#top-info ul li a:hover,
#footer-info ul li a:hover {
    color: var(--main-color);

}

#top-info li {
    margin-right: 2rem;
    text-decoration: none;
}



#top-social ul li,
#footer-social ul li {
    list-style-image: none !important;
    list-style-type: none;
}

#search-container {
    margin-top: 1rem;
}

.email,
.tel,
.cim {
    list-style-type: none;
    position: relative;
    line-height: 2;
    padding: 0 0 0 15px;
}

.email:before {
    content: "";
    width: 25px;
    height: 25px;
    position: absolute;
    display: block;
    background: url(../img/email.png) center center no-repeat;
    left: -20px;
    top: 25%;
    margin-top: -7px;
    background-size: 25px 25px;
}

.tel:before {
    content: "";
    width: 25px;
    height: 25px;
    position: absolute;
    display: block;
    background: url(../img/tel.png) center center no-repeat;
    left: -15px;
    top: 25%;
    margin-top: -7px;
    background-size: 25px 25px;
}

.cim:before {
    content: "";
    width: 25px;
    height: 25px;
    position: absolute;
    display: block;
    background: url(../img/cim.png) center center no-repeat;
    left: -15px;
    top: 25%;
    margin-top: -7px;
    background-size: 25px 25px;
}

/* #logo {
    width: 15%;
    height: auto;
    
}

#logo a {
    display: inline-block;
    margin: 1.5rem 0;
} */

#logo {
    max-width: 250px;
    height: auto;
    padding: 0.5rem 0;
}

#logo svg {
    width: 100%;
    height: auto;
}

#logo .cls-3,
.cls-1,
.cls-2,
.cls-4,
.cls-5,
.cls-6 {
    opacity: 0;
    transition: opacity 1s;
}

@keyframes tumbleIn {
    0% {
        transform: rotate(0deg) translateX(-1000px) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) translateX(0) scale(1);
        opacity: 1;
    }
}

#logo .visible {
    opacity: 1 !important;
}

.tumble {
    animation: tumbleIn 1s forwards;
}


.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-bottom: -2rem;
}

#main-menu {
    position: relative;
    padding: 1rem 1rem;
    /* Eredeti padding */
    background: var(--dark-blue);
    border-radius: 20px;
    color: #fff;
    z-index: 100;
    transition: all 0.5s ease;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Középre igazítás */
}

#main-menu nav {
    font-size: 1rem;
}

#main-menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--dark-blue);
    border-radius: 0;
    color: #ccc;
    padding: 0.4rem 1rem;
    justify-content: center;
}

#main-menu.sticky nav {
    font-size: 0.8rem;
}

#main-menu.sticky .logo-container {
    display: flex;
    position: absolute;
    left: 2rem;
}

.logo-container {
    display: none;
    align-items: center;
}

.logo {
    max-height: 35px;
    margin-right: 1rem;
}


#main-menu ul {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#main-menu ul li {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
}

#main-menu ul li a {
    color: inherit;
    line-height: 2.2rem;
    margin: 0 1.5vw;
    padding: 0.1rem 0.3rem;
    display: inline-block;
    border-radius: 15px;
    text-transform: uppercase;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

#main-menu ul li ul li a {
    text-transform: none;
    font-weight: normal;
    font-size: smaller;
}

#main-menu ul li a:hover,
#main-menu ul li.current-menu-item a {
    background: var(--main-color);
    color: var(--text-color);
    border-radius: 15px;
}

#main-menu ul li ul li a {
    white-space: nowrap;
}

.sub-menu {
    background: var(--dark-blue) !important;
}

.opener {
    right: 0px;
    position: absolute;
    top: 0px;
    width: 1rem;
    height: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}


.opener svg {
    width: 0.5rem;
    height: auto;
    fill: var(--main-color);
}

@media only screen and (min-width: 961px) {
    #main-menu ul li ul {
        z-index: 10;
        display: block;
        overflow: hidden;
        position: absolute;
        left: -0.5vw;
        background: #fff;
        top: 1.8em;
        padding: 0.5vw 0.5vw;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }





    #main-menu ul > li:hover ul {
        opacity: 1;
        visibility: visible;
        display: block;
        top: 2.2rem;
    }

    #main-menu div > ul > li > a:before {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background: var(--main-color);
        display: block;
        bottom: 0;
        left: 0;
        -webkit-transition: all 0.2s ease-in-out;
        -moz-transition: all 0.2s ease-in-out;
        -o-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }

    #main-menu div > ul > li > a:hover:before {
        width: 100%;
        height: 2px;
    }

    #main-menu ul li ul li {
        width: 100%;
    }
}

@media only screen and (max-width: 960px) {
    #top-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #top-social ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0;
        list-style: none;
    }

    #top-social svg path {
        fill: white;
    }
#footer-social .social-icon {
        background-color: inherit;
    }
    .social-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 2.5rem;
        height: 2.5rem;
        background-color: var(--main-color);
        border-radius: 50%;
        margin-right: 0.5rem;
    }

    #top-social ul li {
        text-align: center;
        margin-right: 1rem;
    }

    #top-social ul li a,
    #hamburger {
        display: inline-block;
    }

    #main-menu.sticky {

        background-color: none;

    }

    #main-menu.sticky .logo-container {
        display: none;

    }

    #hamburger {
        height: 2.5rem;
        width: 2.5rem;
        padding: 0.7rem;
        background: var(--main-color);
        border-radius: 50%;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        cursor: pointer;
        position: relative;
    }

    #hamburger span {
        position: relative;
        display: block;
        height: 2px;
        background: #fff;
        opacity: 1;
        border-radius: 3px;
        -webkit-transition: .3s ease-in-out;
        -moz-transition: .3s ease-in-out;
        -o-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
    }

    #hamburger span:nth-child(1) {
        top: 0;
    }

    #hamburger span:nth-child(3) {
        bottom: 0;
    }

    #hamburger.open span:nth-child(1) {
        top: 50%;
        margin-top: -1px;
        -webkit-transform: rotate(135deg);
        -moz-transform: rotate(135deg);
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    #hamburger.open span:nth-child(3) {
        bottom: 50%;
        margin-bottom: -1px;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        -o-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    #hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    #main-menu {
        background: none;
        margin-bottom: 1rem;
    }

    #main-menu ul {
        overflow: hidden;
        display: block;
        -webkit-transition: all .8s ease-in-out;
        -moz-transition: all .8s ease-in-out;
        -o-transition: all .8s ease-in-out;
        transition: all .8s ease-in-out;
    }

    #main-menu ul.open,
    #main-menu ul.sub-menu.open {
        opacity: 1;

        max-height: 1000px;
    }

    #main-menu ul.sub-menu,
    #main-menu ul {
        max-height: 0;
        opacity: 0;
    }

    #main-menu ul li {
        text-align: left;
        display: block;
    }

    #main-menu ul li:last-of-type a {
        border: none;
    }

    #main-menu ul li a {
        padding: 0.3rem 0.6rem;
        margin: 0;
        display: block;
        border-bottom: solid 1px #ddd;
        border-radius: 0;
        color: var(--text-color);
    }

    .sub-menu {
        background: none !important;
    }

    #main-menu ul li ul li a {
        padding: 0 15px;
        border: none;
    }

    .opener {
        right: 0px;
        position: absolute;
        top: 0px;
        width: 2rem;
        height: 2rem;
        cursor: pointer;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .opener svg {
        width: 50%;
        height: auto;
        -webkit-transition: 0.3s ease-in-out;
        -moz-transition: 0.3s ease-in-out;
        -o-transition: 0.3s ease-in-out;
        transition: 0.3s ease-in-out;
    }

    .open.opener svg {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
    }
}

@media only screen and (max-width: 380px) {
    .social-icon {
        margin-right: 0;
    }

    #top-social ul li {
        margin-right: 0;
    }
}
