#nav_icon
{
	border: none;
	background: none;
	background-color: cadetblue;
	margin-left: auto;
}

nav
{
	margin-left: auto;
    color: #c9c9c9;
    font-weight: bold;
}

nav ul
{
	display: flex;
	align-items: center;
	gap: 50px;
}

nav ul li a
{
	padding: 10px;
}

nav ul li a:hover
{
	color: #FFFFFF;
	border-bottom: 2px solid #078944;
}

/* Menu Icon */
.hamburguer
{
	cursor: pointer;
	height: 32px;
	width: 32px;
	display: flex;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.hamburguer span
{
    background: #FFFFFF;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamburguer span::before,
.hamburguer span::after
{
    background: #FFFFFF;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamburguer span::before
{
    top: 5px;
}

.hamburguer span::after
{
    top: -5px;
}

/* Toggle menu icon */
#nav_icon:has(input:checked) + nav
{
    max-height: 100px;
	background-color: red;
}

#side-menu:checked +  .hamburguer span
{
    background: transparent;
}

#side-menu:checked +  .hamburguer span::before
{
    transform: rotate(-45deg);
    top:0;
}

#side-menu:checked +  .hamburguer span::after
{
    transform: rotate(45deg);
    top:0;
}

/* Responsiveness */
@media (min-width: 768px)
{
    nav
	{
        position: relative;
        width: fit-content;
        background-color: transparent;
    }

    .hamburguer
	{
        display: none;
    }
}
