.navbar {
    display: flex;
    justify-content: center;
    height: fit-content;
    width: 100%;
}

.menu, .mobileMenu {
    z-index: 2;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: inherit;
	-webkit-animation: slide-in-blurred-top 1.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
	animation: slide-in-blurred-top 1.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

.mobileMenu {
    display: none;
}

.menu ul, .mobileMenu ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 75vw;
    list-style: none;
}

.menu ul li, .mobileMenu ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 20%;
}

.menu ul li:first-child {
    display: none;
    justify-content: end;
    height: fit-content;
    padding-top: 10px;
    padding-right: 30px;
    padding-bottom: 10px;
}

.menu ul li:first-child span {
    display: flex;
    justify-content: center;
    width: 60px;
    font-size: 40px;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    cursor: pointer;
}

.mobileMenu ul li:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s;
    gap: 10px;
    cursor: pointer;
}

.mobileMenu ul li:last-child span {
    height: 8px;
    width: 70px;
    background-color: rgb(0, 0, 0);
    border-radius: 2px;
}

.mobileMenu ul li:last-child:active span {
    background-color: rgb(255, 255, 255);
}

.menu ul li a, .mobileMenu ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 80%;
    font-size: 20px;
    font-weight: bolder;
    text-transform: uppercase;
    text-decoration: none;
    color: rgb(0, 0, 0);
    padding-top: 15px;
}

.menu ul li a:active, .mobileMenu ul li a:active {
    color: rgb(255, 255, 255);
}

.tooltip {
    position: relative;
}
  
.tooltipText {
    z-index: 4;
    position: fixed;
    display: block;
    height: fit-content;
    min-width: 60px;
    max-width: 130px;
    font-size: 15px;
    font-weight: normal;
    color: #fff;
    background-color: #222;
    text-align: center;
    visibility: hidden;
    opacity: 0.9;
    padding: 8px;
    border-radius: 6px;
    border-bottom-left-radius: 0;
    bottom: 0px;
}
  
.tooltip:hover .tooltipText {
    visibility: visible;
}

#menuPrincipal a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menuPrincipalIcon {
    height: 100%;
    width: 60px;
    background-image: url("../images/logoBlack.png");
    background-size: cover;
    background-position-y: center;
    background-position-x: center;
    background-repeat: no-repeat;
}

.menu ul li a:active .menuPrincipalIcon, .mobileMenu ul li a:active .menuPrincipalIcon {
    background-image: url("../images/logoWhite.png");
    background-size: cover;
    background-position-y: center;
    background-position-x: center;
    background-repeat: no-repeat;
}

@keyframes slide-in-blurred-top {
    0% {
        -webkit-transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
                transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
        -webkit-transform-origin: 50% 0%;
                transform-origin: 50% 0%;
        -webkit-filter: blur(40px);
                filter: blur(40px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0) scaleY(1) scaleX(1);
                transform: translateY(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
                transform-origin: 50% 50%;
        -webkit-filter: blur(0);
                filter: blur(0);
        opacity: 1;
    }
}

@media (width < 1200px) {
    .menu {
        z-index: 3;
        position: fixed;
        align-items: start;
        height: 100vh;
        width: 100%;
        left: 100vw;
        color: rgb(255, 255, 255);
        background-color: #222;
        -webkit-animation: none;
        animation: none;
        opacity: 0.99;
        transition: 1s;
    }

    .menu ul {
        flex-direction: column;
        justify-content: start;
        height: 91%;
        width: 100%;
    }

    .mobileMenu ul {
        width: 85vw;
    }

    .menu ul li {
        width: inherit;
    }

    .menu ul li:hover, .menu ul li:first-child span:hover {
        opacity: 0.8;
    }

    .menu ul li:first-child {
        opacity: 1;
    }

    .menu ul li:active {
        opacity: 0.6;
    }

    .menu ul li:first-child {
        display: flex;
        font-weight: bolder;
        border-bottom: 1px solid rgb(255, 255, 255);
    }

    .menu ul li:last-child {
        border-bottom: 1px solid rgb(255, 255, 255);
    }

    .menu ul li a {
        width: inherit;
        color: rgb(255, 255, 255);
    }

    .menu #menuPrincipal {
        display: none;
    }

    .mobileMenu {
        display: flex;
    }

    .mobileMenu ul {
        justify-content: space-evenly;
    }
}

@media (width < 1100px) {
    .mobileMenu ul {
        width: 88vw;
    }
}

@media (width < 950px) {
    .mobileMenu ul {
        justify-content: space-around;
        width: 85vw;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (width < 650px) {
    .mobileMenu ul {
        width: 90vw;
    }
}