Font family not working on html,css

@font-face {
    font-family: 'Main UI';
    src: local('./BebasNeue-Regular.ttf'), url('https://fonts.google.com/specimen/Bebas+Neue') format('woff2');
 }
  
html, body {
    margin: 0;
    padding: 0;
}
#topBar {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 9vh;
    z-index: 10;
    background-color: #f5f5f5;
}
#textBox {
    justify-content: center;
    transform: translate(2%, -20%);
}

#navbarText {
    display: flex;
    justify-content: center;
    list-style-type: none;
    transform: translate(0%, -12%);
    font-size: 6.5vh;
    color: #050505;
}

#navbarText li {
    font-family: 'Main UI', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: inline-block;
    margin-right: 10px;
}

   <div id="textBox">
            <ul id="navbarText">
                <li id="home"><i class="fa fa-home"></i> Home</li>
                <li id="shop"><i class="fa fa-shopping-cart"></i> Shop</li>
                <li id="about"><i class="fa fa-info-circle"></i> About</li>
            </ul>
        </div>
Was this page helpful?