:root {
    --light: #ebebeb;
    --dark: #242424;
}

/* box-bar */
#box-bar {
    position: fixed;
    top: 110px;
    right: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

    #menu-bar {
        /* height: 100%; */
        /* background-color: red; */
        padding: 5px 7px;
        font-size: 30px;
        align-items: center;
        display: flex;
        display: none;
        text-shadow:
            2.5px 2px var(--shadow-contact);
        cursor: pointer;
    }

        #menu-bar:hover {
            text-shadow:
                2.5px 2px var(--main-color);
        }
            #menu-bar.light:hover {
                text-shadow: 2.5px 2px var(--main-color);
            }
            #menu-bar.dark:hover {
                text-shadow: 2.5px 2px var(--main-color-dark);
            }

        /* #menu-bar.close-header {
            display: none !important;
        } */

        #dark-light-bar {
            width: 33px;
            height: 55px;
            border-radius: 80px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            /* background-color: rgb(94, 94, 94); */
            z-index: -1;
            box-shadow: 3px 4px 5px rgba(128, 128, 128, 0.466);

            transition: top 0.5s linear, background-color 0.5s;    
            /* transform: rotate(-90deg); */
        }
            #dark-light-bar.switch-light {
                background-color: var(--light);
                
            }
                #dark-light-bar.switch-light #switch-border {
                    border-color: var(--light);
                }

            #dark-light-bar.switch-dark {
                background-color: var(--dark);

            }
                #dark-light-bar.switch-dark #switch-border {
                    border-color: var(--dark);
                }

            #switch-padding {
                position: absolute;
                top: 1px;
                left: 1px;
                right: 1px;
                bottom: 1px;
                overflow: hidden;
                border-radius: 23px;
            }

                #switch-bar {
                    /* width: 41px; */
                    aspect-ratio: 1 / 1;
                    border-radius: 50%;
                    position: absolute;
                    left: 4px;
                    right: 4px;
                    /* height: 30px; */
                    top: 4px;
                    
                    transition: top 0.5s linear, background-color 0.5s;        
                    
                    background-color: rgb(240, 164, 0) !important;
                    box-shadow: 0px 3px 4px rgba(240, 164, 0, 0.425);
                    /* z-index: 6; */
                }

                    #switch-bar-dark {
                        position: absolute;
                        aspect-ratio: 1 / 1;
                        /* background-color: #585858 !important; */
                        transform: translateY(-100%);

                        bottom: 23px;
                        padding: 1px;
                        left: 1px;
                        right: 0px;
                        border-radius: 30px;
                        z-index: -1;
                        overflow: hidden;

                        transition: top 0.5s linear, background-color 0.5s;    
                            
                    }
                        #switch-bar-dark::before{
                            content: "";
                            left: 1px;
                            right: 1px;
                            top: 1px;
                            bottom: 1px;
                            border-radius: 50%;
                            position: absolute;
                            background-color: rgb(134, 134, 134);
                        }

                        #switch-bar-dark::after{
                            content: "";
                            position: absolute;
                            aspect-ratio: 1 / 1;
                            /* background-color: #b1b1b1 !important; */

                            top: 4px;
                            bottom: 4px;
                            right: -1px;
                            border-radius: 50%;

                            transition: top 0.5s linear, background-color 0.5s;        
                        }

                    #switch-bar.switch-light {
                        top: 4px;
                        background-color: var(--light);
                    }
                        #switch-bar.switch-light #switch-bar-dark::after {
                            background-color: var(--light);
                        }

                    #switch-bar.switch-dark {
                        top: 50px;
                        background-color: var(--dark);
                    }
                        #switch-bar.switch-dark #switch-bar-dark::after {
                            background-color: var(--dark);
                        }

            #switch-border {
                width: 100%;
                height: 100%;
                /* background-color: red; */
                position: absolute;
                box-sizing: border-box;
                border-radius: 20px;
                border: 5px solid;
                border-color: var(--light);

                transition: border-color 0.5s;
            }



/* ----- header ----- */
#header {
    display: flex;
    height: 80px;
    width: 100%;
    position: fixed;
    /* position: relative; */
    top: 0px;
    left: 0px;
    font-family: "Poppins", serif;
    font-weight: 500;
    font-style: normal;
    text-transform: capitalize;
    /* text-transform: uppercase; */
    z-index: 10;
    transition: left 0.6s;
    background-color: #f0f0f0ef;
}
    #header.light {
        background-color: #f0f0f0ef;
    }
    #header.dark {
        background-color: #292929ef;
    }

    #header a{
        color: rgb(85, 85, 84);
        text-decoration: none;
    }
        #header.light a{
            color: rgb(85, 85, 84);
        }
        #header.dark a{
            color: rgb(207, 207, 207);
        }

.header-content{
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 20px;
    position: relative;
    padding: 0px;
    /* background-color: red; */
}

    #logo {
        position: absolute;
        left: 12%;
    }

        #logo-header {
            height: 45px;
        }
            #logo-header img{
                height: 100%;
                object-fit: cover;
                object-position: center;
            }

    #menu {
        margin: 0px;
        display: flex;
        list-style: none;
        gap: 30px;
        position: absolute;
        right: 12%;
    }
    
        .subnemu{
            padding: 10px 10px;
            position: relative;
        }

        .subnemu:hover a{
            color: rgb(32, 32, 28) !important;
            transition: color 0.25s;
            cursor: pointer;
        }
            #header.light .subnemu:hover a{
                color: rgb(32, 32, 28) !important;
            }

            #header.dark .subnemu:hover a{
                color: rgb(238, 238, 238) !important;
            }

            .short-show-header {
                display: none;
                text-transform: uppercase;
            }

            .short-show-header::after {
                content: ".";
            }

            @media screen and (max-width: 1100px){
                .long-show-header {
                    display: none;
                }

                .short-show-header {
                    display: flex;
                }
            }

        /* .highlight-submenu {
            position: relative;
        }

        .highlight-submenu::after{
            content: "";
            background-color: rgb(255, 196, 0);
            height: 4px;
            z-index: 11;
            border-radius: 20px;
            position: absolute;
            left: 5px;
            right: 5px;
            bottom: 5px;
        } */

        .subnemu::after {
            content: "";
            position: absolute;
            left: 4px;
            right: 4px;
            /* left: 0px;
            width: 100%; */
            bottom: 5px;
            height: 4px;
            border-radius: 20px;
            background-color: rgb(255, 196, 0);
            transform: scaleX(0);
            transition: transform 0.6s;
        }
            #header.light .subnemu::after{
                background-color: var(--main-color);
            }
            #header.dark .subnemu::after{
                background-color: var(--main-color-dark);
            }

        .highlight-submenu {
            position: relative;
        }

        .highlight-submenu::after {
            /* right: 4px; */
            transform: scaleX(1);
        }

            
@media screen and (max-width: 900px) {
    #box-bar {
        top: 30px;
        right: 30px;
    }

    #menu-bar {
        display: flex;
    }

        #header.close-header {
            /* background-color: rebeccapurple; */
            left: -250px;
            /* width: 0px; */
        }

    #header {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 250px;    
        justify-content: center;
    }

    .header-content {
        height: auto;
        width: 100%;
    }

    #logo {
        right: auto;
        left: auto;
        top: 15px;

            /* display: flex;
            flex-direction: column; */
        
            justify-content: center;
    }

    #menu{
        flex-direction: column;
        right: auto;
        left: auto;
        position: relative;
    }

    /*  */

    .long-show-header {
        display: grid;
    }

    .short-show-header {
        display: none;
    }
}