/* Navbar container */
.navbar {
    overflow: hidden;
    background-color: #333;
    font-family: Arial;
}

/* Links inside the navbar */
.navbar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    width: 210px;
}

/* The navlist container */
.navlist {
    float: left;
    overflow: hidden;
}

/* navlist button */
.navlist .navbutton {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

/* Add a red background color to navbar links on hover */
.navbar a:hover,
.navlist:hover .navbutton {
    border-radius: 20%;
    background-color: red;
}

/* navlist content (hidden by default) */
.navcontent {
    display: none;
    position: absolute;
    background: linear-gradient(to bottom,
            rgb(0, 255, 55),
            rgb(0, 238, 255),
            rgb(38, 0, 255));
    background-size: 300% 150%;
    animation: navanimate 2s linear infinite;
    min-width: 160px;
    border-width: 2px !important;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the navlist */
.navcontent a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Add a grey background color to navlist links on hover */
.navcontent a:hover,
.navcontent a:active {
    background: linear-gradient(to bottom, rgb(0, 255, 0), rgb(61, 61, 255));
    border-style: solid;
    border-bottom-color: coral;
    border-width: 0px 0px 2px 0px;
    border-radius: 10px;
    font-weight: bold;
}

/* Show the navlist menu on hover */
.navlist:hover .navcontent {
    display: block;
}

/* Animation */
@keyframes navanimate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}