.navbar {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 70rem;
    margin-top: 0.1vw;
    margin-bottom: 3rem;
    transition: all 0.5s ease;
}

.navbar-container {
    list-style: none;
    display: flex;
    justify-content: center;
    perspective: 50rem;
    background-color: rgb(110, 200, 240);
    box-shadow: 0 0 19px 11px rgba(0, 0, 0, 0.2);
}

.navbar-item {
    flex-grow: 1;
    padding: 1rem;
    font-size: 2rem;
    background-color: #FAD4D6;
    font-weight: bold;
    text-align: center;
    color: whitesmoke;
    transition: all 0.7s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.navbar-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.navbar-item:hover {
    transform: rotateY(180deg);
}

.navbar-item:hover > a {
    transform: rotateY(180deg);
}

.navbar-item:hover > .navbar-item_label {
    transform: scaleY(1) rotateY(0deg);
    opacity: 1;
    visibility: visible;
}

.navbar-item_label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: inherit;
    font-size: inherit;
    font-weight: bold;
    text-align: right;
    transform: scaleY(0) rotateY(180deg);
    transform-origin: top;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease 0.1s;
    background-color: #6ec8f0;
    color: #ffffff;
}