* {
    box-sizing: border-box;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.toggle {
    display: flex;
    width: 50px;
    height: 50px;
    background-color: #EEE;
    cursor: pointer;
    /* flex-direction: column;
    justify-content: space-around;
    padding: 8px; */
    flex-wrap: wrap;
    align-items: center;
    padding: 8px;
}

.toggle span {
    width: 100%;
    background-color: #777;
    height: 4px;
    transition: 0.5s;
}

.toggle:hover span {
    background-color: #333;
}

nav {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.5s;
    transform: translateY(-100%);
}

nav.open{
    transform: translateY(0);
}

nav .close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #EEE;
    border: 2px solid #EEE;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    border-radius: 50%;
    transition: 0.5s;
    cursor: pointer;
}

nav .close:hover{
    color:indianred;
    border-color:indianred;
}

nav a {
    color: #EEE;
    text-decoration: none;
    font-size: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 80px;
    transition: 0.5s;
}

nav a:hover{
    background-color: rgb(0 0 0 / 50%);
}