 @import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p,
a {
    font-family: "Instrument Serif", sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: 0.5s all;
    line-height: 100%;
}

.nav {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgb(0, 0, 0);
    z-index: 1;
    transition: width 0.5s ease;
}


.nav-bottom {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 5px;
}

.nav-items {
    flex: 1;
    display: flex;
    gap: 5px;
    height: 100%;
    cursor: pointer;
}

.nav-items .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: 0.5s all;
    height: 100%;
}

.nav-items .nav-item a {
    width: 100%;
    text-align: center;
}


.nav-items .nav-item:hover {
    border: 1px solid rgb(251, 251, 251);
}

.nav-items .nav-item:hover a {
    color: #fff;
}

.nav-item {
    cursor: pointer;
}

/* Fade out */
#navbar {
    transition: opacity 0.5s ease;
}

@media (max-width: 1200px) {

    .nav {
        width: 70%;
        height: 55px;
        padding: 8px;
        border-radius: 8px;
    }

    .nav-items {
        gap: 4px;
    }

    .nav-items .nav-item {
        height: 100%;
        border-radius: 8px;
        font-size: 1rem;
    }

    .nav-items .nav-item a {
        font-size: 0.8rem;
    }
}

@media (max-width: 1000px) {

    .nav {
        width: 80%;
        height: 55px;
        padding: 8px;
        border-radius: 8px;
    }

    .nav-items {
        gap: 4px;
    }

    .nav-items .nav-item {
        height: 100%;
        border-radius: 8px;
        font-size: 1rem;
    }

    .nav-items .nav-item a {
        font-size: 0.8rem;
    }
}

@media (max-width: 500px) {

    .nav {
        width: 100%;
        height: 60px;
        padding: 6px;
        border-radius: 6px;
        left: 50%;
        bottom: 3%;
    }

    .nav-items {
        gap: 3px;
    }

    .nav-items .nav-item {
        height: 100%;
        border-radius: 6px;
        font-size: 12px;
    }

    .nav-items .nav-item a {
        font-size: 0.7rem;
    }
}