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

nav {
    background-color: red;
    user-select: none;
}

nav ul li, nav ul li a {
    display: inline-block;
    overflow: visible;
}

nav ul {
    text-align: right;
    margin-top: 10px;
}

nav ul li a {
    text-align: center;
    padding: 0 20px;
    margin: 0 10px;
    font-size: 35px;
    text-decoration: none;
    color: white;
    font-family: "Edu QLD Hand", cursive;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    border-radius: 10px 10px 0 0;
    transition: padding 500ms;
}

nav ul li a.current {
    background-color: white;
    color: red;
}

nav ul li a:hover {
    background-color: white;
    color: red;
    padding: 0 25px;
}