nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px;
    margin-bottom: -25px;
    font-size: 15px;
    
}

.burger-menu {
    border: none;
    position: relative;
    padding: 0;
    outline: none;
    height: 30px;
    width: 30px;
    border-radius: 15px;
    display: none;
}

.line {
    background-color: cornflowerblue;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    height: 3px;
    width: 20px;
}

.line:first-of-type {
    top: 40%;
}

.line:last-of-type {
    top: 60%;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: black;
}

@media screen and (max-width: 1024px) {
    .burger-menu {
        display: block;
    }

    nav ul {
        background-color: white;
        box-shadow: 0 3px 5px rgb(0, 0, 0, 0.3);
        flex-direction: column;
        text-align: center;
        position: fixed;
        top: 100px;
        right: 0%;
        width: 50%;
        transform: translateX(120%);
        transition: transform 0.2s ease;
    }

    nav ul li {
        margin: 8px 16px 8px 16px;
        
    }

    nav ul li a:hover {
        color: cornflowerblue;
    }

    .show {
        transform: translateX(0);
    }

    .show-x .line:first-of-type {
        transform: translate(-50%, 50%) rotate(225deg);
    }

    .show-x .line:last-of-type {
        transform: translate(-50%, -150%) rotate(-225deg);
    }
}
