/* =================== Header nav bar ======================== */
#menu-bar {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: black;
    font-family: "Centaury", Arial, sans-serif;
    /* font-family: "BerkshireSwash", Arial, sans-serif; */
    font-size: 0.8em;
    width: 100%;

    z-index: 1000;
    margin: auto;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    overflow: visible;
}

#menu-bar a {
    float: left;
    display: block;
    text-align: center;
    /*padding: 10px 12px;*/
    font-size: clamp(16px, 2vw, 28px);
    padding: clamp(8px, 1vw, 20px) clamp(16px, 2vw, 32px);
    text-decoration: none;
}

.topnavlink {
    color: #f2f2f2;
}

/* Change color on hover */
.topnavlink:hover {
    background-color: #ddd;
    color: black;
}

#inschrijven {
    /*padding: 4px 15px;*/
    color: black;
    background-color: rgb(252, 133, 252);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    font-family: "Centaury", Arial, sans-serif;
    font-size: clamp(16px, 2vw, 28px);
    /*padding: clamp(6px, 1vw, 8px) clamp(12px, 0.8vw, 15px);*/
    padding: 15px;
    padding-top: 4px;
    padding-bottom: 8px;
}

#inschrijven:hover {
    background-color: #dd12dd;
    transform: scale(1.1);
}

#home-button-wrapper {
    width: 7rem;
    /* Reserve space for the button */
    height: 0.8em;
    position: relative;
    display: flex;
    justify-content: center;
}

#home-button {
    position: relative;
    width: 7rem;
    height: 7rem;
    margin-bottom: -1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9e9e9, #e3e3e3);
    border: 0.4rem solid #7aace1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(5%);
    /* This creates the 30% overflow effect */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 110;
}

#home-button svg {
    height: 5rem;
    width: 5rem;
}

#hamburger-wrapper {
    display: none;
    position: fixed;
    right: 1rem;
    top: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 25%;
    background: linear-gradient(135deg, #e9e9e9, #e3e3e3);
    border: 0.4rem solid #7aace1;
    cursor: pointer;

    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1111;
}


/*******************new********************/
/* Hamburger button */
/* Hide checkbox */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

@media only screen and (max-width: 610px) {
    #hamburger-wrapper {
        display: flex;
    }

    #menu-bar {
        flex-direction: column;
        position: button;
        margin-bottom: 4rem;
    }

    #menu-bar a:not(#homelink) {
        display: none;
        visibility: hidden;
    }

    .hamburger {
        display: flex;
    }

    /* .topnavlink {
                opacity: 0;
                visibility: hidden;
                transform: translateY(-20px);
                transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            } */
    #home-button {

        position: fixed;
        top: 0.1rem;
        left: 0.7rem;
        width: 4rem;
        height: 4rem;
        transform: translateY(0.5rem);
        margin-bottom: -1rem;
        border-radius: 50%;
        background: linear-gradient(135deg, #e9e9e9, #e3e3e3);
        border: 0.4rem solid #7aace1;
    }
    #home-button svg {
        height: 2.6rem;
        width: 2.6rem;
    }

    #menu-bar a:not(#homelink) {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #333;
    }

    #menu-bar a:last-of-type {
        border-bottom: none;
    }
}