
header{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--yellow-color);
    z-index: 2;
}

.main-logo-wrapper{
    width: 5%;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
}
/* .main-logo-wrapper:hover{
 background: none;
} */
.main-logo-wrapper:not(:hover) img:last-child{
    display: none;
}
.main-logo-wrapper:hover img:last-child {
    display: block;
}
.main-logo-wrapper:hover img:first-child {
    display: none;
}

.main-logo{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    z-index: 5;
    width: 100%;
    flex: 0.1;
}



#main-menu{
    width: 100%;
    background-color: var(--yellow-color);
    display: flex;
    padding: 0;
    margin-left: auto;
    margin-right: 0;
    justify-content: center;
    align-items: center;
}



#main-menu>ul{
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex:0.45;
    list-style-type: none;
    flex-wrap: wrap;
    color: black;


}

#main-menu ul>li>a, #sidebar-menu>a {
    color: black;
    font-weight: bold;
    font-style: italic;
    text-decoration:none;
    padding: 0.5em 1em;
    margin-left: 0.3em;
    margin-right: 0.3em;
}

.nav-bar-list{
    justify-content: end;
    row-gap: 24px
}
.nav-bar-list-start{
    justify-content: start;
    row-gap: 24px
}
.nav-bar-socials{
    justify-content: start;

}

.nav-bar-socials a{

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}
.nav-bar-socials a>img{
    width: 2.1em;
    height: 2.1em;
    margin-right: 0.5em;
    filter: drop-shadow(1px 1px 2px black);
}

.nav-bar-socials a:hover img{
    transform: scale(1.08);
    -webkit-transition:  transform 200ms ease-in-out;
    -ms-transition:  transform 200ms  ease-in-out;
    transition:  transform 200ms ease-in-out;
}



.nav-bar-socials a:not(:hover) img{
    transform: scale(1);
    -webkit-transition:  transform 200ms ease-in-out;
    -ms-transition:  transform 200ms  ease-in-out;
    transition:  transform 200ms ease-in-out;
}



/*------MOBILE-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

#hamburger-menu {
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    padding: 0;
    margin: 20px;
    z-index: 2;
    transition: 0.3s;
    transform-origin: center;
    background: linear-gradient(
            to bottom,
            var(--brown-color), var(--brown-color) 10%,
            transparent 10%, transparent 40%,
            var(--brown-color) 40%, var(--brown-color) 50%,
            transparent 50%, transparent 80%,
            var(--brown-color) 80%, var(--brown-color) 90%,
            transparent 90%, transparent 100%
    );
}
#sidebar-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: hidden;
    position: absolute;
    top: -500px;
    right: 0;
    width: 100%;
    background-color: var(--brown-color-semi-transparent);
    padding: 0 10px;
    box-sizing: border-box;
    transition: 0.3s;
    padding-top: 80px;
    z-index: 1;
}

#sidebar-menu h3{
    color: var(--yellow-color);
    font-size: 24pt;
    margin-bottom: 20px;
}
#sidebar-menu ul{
    list-style: none;
    color: white;
    text-align: center;
    padding: 0;
}
#sidebar-menu a{
    text-decoration: none;
    font-size: large;
    color: white;
    font-style: italic;
    font-weight: bold;
}
#sidebar-menu li{
    margin-bottom: 15px;
}
#sidebar-menu .nav-bar-socials{
    background: none;
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: row;
}
#sidebar-menu .nav-bar-socials> a{
    margin:  20px 5px;
    color: white;
}

#hamburger-input{
    display: none;
}
#hamburger-input:checked ~  #sidebar-menu, #hamburger-menu {
    visibility: visible;
    top: 0;

}
#hamburger-input:checked ~ .overlay{
    visibility: visible;
    opacity: 0.4;
}



/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .main-logo-wrapper{
        flex:0.12;

    }

    #main-menu{
        display: none;
    }
    #mobile-logo-wrapper{
        display: block;
    }

}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 601px) {
    .main-logo-wrapper {
        flex:0.1;
    }

    #main-menu{
        display: none;
    }

    #mobile-logo-wrapper{
        display: block;
    }
}


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #hamburger-menu{
        display: none;
    }

    #main-menu{
        display: flex;
    }

    #main-menu a{
        font-size: medium;
    }
    #main-menu .nav-bar-socials a{
        font-size: 15px;
    }
    #mobile-logo-wrapper{
        display: none;
    }
}




/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .main-logo-wrapper{
        flex:0.05;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    #main-menu a{
        font-size: large;
    }

}