@import 'variables.css';

/* --- NAVBAR --- */
.navbar {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blue-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* lijst voor buttons */
.nav-list {
    list-style-type: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* container voor buttons */
.nav-list li {
    float: left;
}

/* container voor rechtse buttons */
.align-nav-right {
    float: right !important;
}

/* alle buttons */
.dropdown-btn,
.nav-list li a {
    font-size: 18px;
    min-width: 85px;
    display: block;
    color: white;
    text-align: center;
    padding: 25px 16px;
    text-decoration: none;
    -webkit-user-drag: none;
    user-select: none;
}


/* normale button hover */
.dropdown-btn:hover,
.nav-list li a:hover {
    background-color: var(--blue-dark);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

.nav-list .selected {
    background-color: var(--blue-dark);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

/* dropdown button */
.dropdown-btn {
    cursor: pointer;
}

/* dropdown button hover */
.dropdown-btn:hover {
    background-color: var(--blue-dark);
}

/* dropdown links container */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f5f5f5;
    color: black !important;
    min-width: 100px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 15px;
    border: 1px solid #ccc;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

/* dropdown links */
.dropdown-content a {
    color: black !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left !important;
    border-bottom: 1px solid #ccc; /* Add 1px wide lines between links */
}

/* Geen lijntje onder de laatste link */
.dropdown-content a:last-child {
    border-bottom: none;
    border-radius: 15px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.dropdown-content a:hover {
    background-color: #ccc !important;
}

/* Show the dropdown content when the dropdown button is clicked */
.show {
    display: block;
}
/* -------------- */


/* --- TABLET BIG --- */
@media only screen and (max-width: 1060px) {
    .nav-list {
        max-width: 100%;
        width: 100%;
    }
}

/* --- MOBILE --- */
@media only screen and (max-width: 850px) {
    .navbar {
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    }

    .nav-list li {
        width: 25%;
    }

    .dropdown-btn,
    .nav-list li a {
        min-width: 0;
        padding: 25px 5px;
    }

    /* Fix weird mobile hover behaviour */
    .dropdown-btn:hover {
        background-color: var(--blue-main);
        box-shadow: none !important;
    }

    .dropdown-content a {
        padding: 20px 10px !important;
    }

    .footer-buttons .dropdown-btn {
        padding: 20px 0px !important;
    }
}
/* -------------- */