* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kufam', cursive;
}

nav {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    width: 400px;
    line-height: 40px;
    padding: 8px 25px;
}

nav label {
    color: white;
    font-size: 22px;
    font-weight: 500;
    display: block;
    cursor: pointer;
}

.button span {
    float: right;
    line-height: 35px;
}

nav ul {
    position: absolute;
    background: black;
    list-style: none;
    top: 75px;
    left: 0;
    width: 100%;
    border-radius: 5px;
    display: none;
}

[id^=btn]:checked+ul {
    display: block;
}

nav.menu:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    background: red;
    right: 20px;
    top: -10px;
    transform: rotate(45deg);
    z-index: -1;
}

nav ul li {
    line-height: 40px;
    padding: 8px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgb(0, 0, 0, 0.2);
}

nav ul li label {
    font-size: 18px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

nav ul li a:hover,
nav ul li label:hover {
    color: cyan;
}

nav ul ul {
    position: static;
}

nav ul ul li {
    line-height: 30px;
    padding-left: 30px;
    border-bottom: none;
}

nav ul ul li a {
    color: #e6e6e6;
    font-size: 17px;
}

nav ul li span {
    font-size: 20px;
    float: right;
    margin-top: 10px;
    padding: 0 10px;
}

input {
    display: none;
}