@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul
{
    list-style: none;
}

.header
{
    background-color: #000;
    position: sticky;
    top: 0;
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    z-index: 99;
}

.logo
{
    display: inline-block;
    margin: 10px 10px 0 10px;
}

.nav
{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #000;
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s ease-out;
}

.menu a
{
    background: linear-gradient(180deg, rgba(41, 41, 43, 1) 0%, rgba(54, 56, 63, 1) 100%);
    display: block;
    padding: 10px;
    margin: 20px;
    border-radius: 8px;
    color: #fae6bb;
    text-shadow: 1px 1px #000;
    text-decoration: none;
    transition: all .2s ease-out;
}

.menu a:hover
{
    background: linear-gradient(180deg, rgba(32, 32, 33, 1) 0%, rgba(64, 66, 71, 1) 100%);
    color: #ca9a5c;
}

.hamb
{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}


.hamb-line 
{
    background: #fff;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamb-line::before,
.hamb-line::after
{
    background: #fff;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb-line::before
{
    top: 5px;
}

.hamb-line::after
{
    top: -5px;
}

.side-menu 
{
    display: none;
}

.side-menu:checked ~ nav
{
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line 
{
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before 
{
    transform: rotate(-45deg);
    top:0;
}

.side-menu:checked ~ .hamb .hamb-line::after 
{
    transform: rotate(45deg);
    top:0;
}

@media (min-width: 768px)
{
    .nav
    {
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
    }

    .menu li
    {
        float: left;
    }

    .menu a:hover
    {
        background-color: transparent;
    }

    .hamb
    {
        display: none;
    }
}