:root {
    --dark-bg: #0f1019;
    --dark-area: #202429;
    --dark-text-white: #fff;
    --dark-off-white: #f0ede9;

    --light-bg: #f5f3f2;
    --light-area: #f0ede9;
    --light-font-grey: #2f2f2f;
    --light-primary-red: #ea012c;
}

nav {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 2;
}

nav {
    height: 60px;
    background-color: var(--dark-area);
    display: flex;
    justify-content: center;
    align-items: center;
}

.links-container {
    height: 100%;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    /*height: 100%;*/
    padding: 2px 5px;
    margin: 23px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text-white);
    border: 1px solid transparent;
    transition: border-color 0.3s ease; /* Smooth fade effect */
}

nav a:hover {
    color: var(--dark-off-white); /* add outline elment style later ...*/
    border-color: var(--dark-text-white);
}

nav a:active {
    border-color: var(--dark-text-white);
}

.active {
    border-color: var(--dark-text-white);
}

.the-links {
    display: flex;
}

#settings {
    margin-left: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

nav .social-media {
    display: none;
}

/*HIDE THINGS*/

.lightmode {
    display: none;
}

#sidebar-active {
    display: none;
}

.open-sidebar-button {
    display: none;
    margin-right: auto;
}

.close-sidebar-button {
    display: none;
}

.breadcrumb {
    display: block;
}

@media (max-width: 480px) {
    .links-container {
        flex-direction: column;
        align-items: flex-end;
        position: fixed;
        justify-content: center;
        top: 0;
        right: -100%; /* hidden for the sudo element below based on a checkbox elements bopolean status*/
        z-index: 10;
        width: 100%;
        background-color: var(--dark-bg);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.3s ease-out;
    }
    .the-links {
        display: block;
        margin-top: auto;
    }
    nav a {
        width: 100%;
        display: block;
        text-align: right;
        box-sizing: border-box;
        height: auto;
        width: auto;
        padding: 6px 14px;
        font-size: 28px;
    }

    #settings {
        font-size: 14px;
        position: absolute;
        top: 0;
        right: 20px;
    }
    nav #settings a {
        font-size: 16px;
        margin: 2px;
        margin-top: 10px;
        border: 0;
    }

    nav .social-media {
        margin-top: auto;
        margin-bottom: 30px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav .social-media a {
        padding: 0;
        margin: 0;
        display: flex;
        height: inherit;
        align-items: center;
        justify-content: center;
        padding-bottom: 8px;
    }

    nav .icon-base {
        text-align: center;
        width: 56px;
        height: 56px;
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 28px;
        background-color: white;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    }

    nav .icon-base img {
        margin-top: 6px;
    }

    .icon-base a {
        color: #000;
    }
    .icon-base:hover {
        background-color: #999;
    }

    .open-sidebar-button {
        padding-left: 20px;
        display: block;
    }
    .close-sidebar-button {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 12;
        align-self: flex-start;
        padding: 10px;
        padding-left: 20px;
        transition: 0.2s;
    }

    .close-button-background {
        /*background-color: var(--dark-area);*/
        position: absolute;
        top: -160px;
        left: -360px;
        z-index: 11;
        background-color: var(--dark-area);
        height: 160px;
        width: 140%;
        transform: rotate(0deg);
    }
    #sidebar-active:checked ~ .open-sidebar-button {
        display: none;
    }

    #sidebar-active:checked ~ .links-container {
        right: 0%;
    }
    #sidebar-active:checked ~ .close-sidebar-button {
        display: block;
    }

    #sidebar-active:checked ~ .close-button-background {
        /*background-color: var(--dark-area);*/
        position: absolute;
        top: -130px;
        left: -80px;
        z-index: 11;
        background-color: var(--dark-area);
        height: 160px;
        width: 340px;
        transform: rotate(-26deg);
        transition: 0.4s;
    }

    /*css can not look inside the nesting ...*/
    #sidebar-active:checked ~ .links-container .breadcrumb {
        display: none;
    }
}
