@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz@9..40&display=swap');

nav {
    background-color: #FFF;
    box-shadow: 0 0 5px grey;
    width: 100%;
}

.logo {
    display: none;
    height: 60px;
    padding: 10px;
    margin: 0;
    background-color: #FFF;
    box-shadow: 0 0 5px grey;
    width: auto;
    height: auto;
    border-radius: 0;
}

.mobile-navbar {
    z-index: 2;
    position: fixed;
    display: none;
    left: 10px;
    bottom: 10px;
    height: auto;
    width: auto;
    padding: 5px;
    margin: 0;
    background-color: #FFF;
    border-radius: 25px;
    box-shadow: 0 0 5px grey;
}

#mobile-navbar-links {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
}

.mobile-navbar a {
    display: flex;
    height: 50px;
    width: 50px;
    color: var(--grey-text);
    text-decoration: none;
    background-color: #FFF;
    border-radius: 20px;
    text-align: center;
}

.mobile-navbar a:hover {
    background-color: var(--hover-background);
}

.mobile-navbar span {
    margin: auto auto;
}

#burger {
    height: 50px;
    width: 50px;
    border: none;
    border-radius: 20px;
    background-color: #FFF;
}

#burger:hover {
    cursor: pointer;
    background-color: var(--hover-background);
}

a img {
    height: 60px;
    position: relative;
}

ul {
    position: relative;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 10px;
    justify-content: space-around;
}

li {
    display: flex;
    width: 140px;
    text-align: center;
}

li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--grey-text);
    padding: 14px 16px;
    text-decoration: none;
    background-color: #FFF;
    border-radius: 15px;
    width: 140px;
}

li a:hover {
    background-color: var(--hover-background);
}

li a span {
    visibility: visible;
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(1.8);
    transition: transform 0.1s;
    text-align: center;
}

li a p {
    margin: 0;
    opacity: 0;
    transition: opacity 0.1s;
}

li a:hover p {
    opacity: 1;
    transition: opacity 0.1s;
}

li a:hover span {
    transform: translateY(-35px) scale(0.9);
    transition: transform 0.1s;
}

.active {
    color: var(--focus);
}

@media screen and (max-width: 730px) {
    nav {
        display: none;
    }
    
    .logo {
        display: flex;
        max-width: 100%;
    }

    .logo a {
        display: flex;
        width: 140px;
        margin: 0 auto 0 auto;
        padding: 14px 0;
        border-radius: 15px;
        align-items: center;
        flex-direction: column;
    }

    .logo a:hover {
        background-color: var(--hover-background);
    }

    .mobile-navbar {
        display: block;
    }
}