header{
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.001)
    );
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    z-index: 99;
    overflow-x: hidden;
    height: fit-content;
    position: fixed;
}
header .container-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    z-index: 99;
    overflow-x: hidden;
    max-width: 1920px;
    margin: 0 auto;


    & #logo {
        height: 100%;
        display: flex;
        & a {
            height: 100%;
            & img {
                width: 40px;
                height: 40px;
                padding: 16px 0 0 16px;
            }
        }
    }

    & #logo:hover {
        cursor: pointer;
        transform: scale(1.05);
    }

    & #menu {
        height: 100%;

        & #open-btn {
            background: transparent;
            border: none;
            width: 46px;
            height: 46px;
            margin: 11px 11px 0 0;
            padding: 5px;
            cursor: pointer;

            &:hover {
                background-color: rgba(255, 255, 255, 0.1);
            }
        }

        & ul {
            display: none;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            list-style: none;
            padding: 0;
            padding-right: 16px;
            margin: 0;
            gap: 16px;

            & li {
                & a {
                    text-decoration: none;
                    color: white;
                    font-size: 16px;
                    font-weight: 600;
                    padding: 8px 16px;
                    border-radius: 8px;
                    transition: all 0.2s ease-in-out;

                    &.scrolled {
                        color: black;
                    }
                    &.scrolled:hover {
                        background-color: rgba(0, 0, 0, 0.1);
                    }
                    &:hover {
                        background-color: rgba(255, 255, 255, 0.1);
                    }
                }
            }
        }
        & #open-btn .scrolled{
            fill: black ;
        }

    }
}

#menu-dialog {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    min-width: 100%;
    padding: 0;
    min-height: 100%;

    & .dialog-content {
        width: 100%;

        & .close-btn {
            width: 100%;
            background: transparent;
            border: none;
            display: flex;
            justify-content: end;

            & svg {
                width: 24px;
                height: 24px;
                cursor: pointer;
                padding: 16px 16px 0 0;
            }
        }

        & .close-btn:hover svg {
            transform: scale(1.05);
        }

        & ul {
            display: flex;
            flex-direction: column;
            justify-content: center;
            list-style: none;
            padding: 0;
            margin-top: 32px;

            & li {
                padding: 8px 0;

                & a {
                    display: flex;
                    text-decoration: none;
                    color: black;
                    font-size: 16px;
                    font-weight: 600;
                    padding: 8px 16px;
                    border-radius: 8px;
                    transition: all 0.2s ease-in-out;

                    & svg {
                        margin-left: auto;
                        margin-top: auto;
                        margin-bottom: auto;
                    }
                }

                &:hover {
                    background-color: rgba(0, 0, 0, 0.1);
                }
            }
        }
    }
}

@media (min-width: 992px) {

    header .container-header {
        & #open-btn{
            display: none;
        }
        & #menu {
            & ul {
                display: flex;
            }
        }
    }
}