* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

nav {
    height: 80px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    transition: 0.3s;
}

.logo a {
    display: block;
}

.logo a img {
    width: 80%;
    display: block;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: 0.5s;
}

.menu li a {
    color: #ffffff;
    display: block;
    font-size: 18px;
    padding: 40px 25px;
    line-height: 1;
    text-decoration: none;
    transition: 0.3s;
}

.hamburger {
    height: 4px;
    width: 30px;
    background-color: #ffffff;
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    height: 4px;
    right: 0;
    background-color: #ffffff;
    border-radius: 10px;
    transition: 0.3s;
}

.hamburger::before {
    top: -10px;
    width: 20px;
}

.hamburger::after {
    top: 10px;
    width: 25px;
}

.toggle-menu {
    height: 100%;
    width: 30px;
    position: absolute;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
}

.hamburger,
.toggle-menu {
    display: none;
}

.navigation input:checked~.hamburger {
    background: transparent;
}

.navigation input:checked~.hamburger::before {
    width: 30px;
    top: 0;
    transform: rotate(-45deg);
}

.navigation input:checked~.hamburger::after {
    width: 30px;
    top: 0;
    transform: rotate(45deg);
}

.navigation input:checked~.menu {
    right: 0;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 992px) {

    .hamburger,
    .toggle-menu {
        display: block;
    }

    .nav {
        padding: 10px 20px;
    }

    .menu {
        height: 50%;
        width: 40%;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        position: fixed;
        top: 0;
        right: -300px;
        background-color: #bed417;
        padding-top: 80px;
    }

    .menu li {
        width: 100%;
    }

    .menu li a,
    .menu li a:hover {
        padding: 30px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    }
}
