* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Lexend", sans-serif;
}

:root {
    --main-background: #18181a;
    --main-text: #F3F5F7;
    --accent: #435ade;
    --col-2: #58585f;
    --col-3: #6d6d75;
    --col-4: #91919b;
}

body {
    background-color: var(--main-background);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}




.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    height: 100%;
    background-color: var(--col-2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 15rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar a {
    text-decoration: none;
    color: var(--main-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar a:hover {
    background-color: var(--col-4);
    color: var(--main-text);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: -0.5rem;
}

.sidebar p {
    color: var(--main-text);
    font-size: 1rem;
}

.sidebar a img {
    height: 1.5rem;
}

.sidebar h3 {
    color: var(--main-text);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.sidebar h1 {
    color: var(--main-text);
    font-size: 2rem;
}

.sidebar_selected {
    background-color: var(--col-3);
    color: var(--main-text);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: -0.5rem;
}

.sidebar button {
    text-decoration: none;
    color: var(--main-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    margin: 1rem -0.5rem 0.5rem -0.5rem;
    padding: 0.5rem;
    background-color: var(--col-3);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.sidebar button:hover {
    background-color: var(--col-4);
    color: var(--main-text);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 1rem -0.5rem 0.5rem -0.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--main-text);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 4.5rem; /* Only show the 'Bedrijf' title at first */
        padding: 1rem 1.5rem;
        z-index: 1000;
        overflow: hidden; /* Hide the links until active */
    }

    /* When the menu is toggled open */
    .sidebar.active {
        height: 100vh; /* Fill screen */
        overflow-y: auto;
    }

    .hamburger {
        display: flex; /* Show on mobile */
    }

    /* Animation: turn hamburger into an X when active */
    .sidebar.active .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .sidebar.active .hamburger span:nth-child(2) { opacity: 0; }
    .sidebar.active .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .sidebar h1 {
        font-size: 1.5rem;
    }

    /* Ensure the wide headers don't look weird on mobile */
    .wide {
        display: block !important;
    }
}