* {
    margin: 0;
    padding: 0;
    font-size: 24px;
    box-sizing: border-box;
}

ul li {
    list-style: none;
}

.sub-menu {
    display: none;
}

ul>li:hover .sub-menu {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.main-menu li {
    background-color: #c22fef;
    color: aliceblue;
    border-radius: 2px;
    text-align: center;
}

.main-menu>li {
    width: 200px;
    border: 1px solid #77049a;
    margin: 1px 3px;

}

li:hover {
    background-color: #a93aca;
}

/* div {
    border: 20px solid red;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    display: inline-block;
} */