/************************
     Navigation
*************************/

/* Static */

.navbar {
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "menu image image image ."
        "category category . . m-search"
        "search search search search search"
        "options options options options options";
    background-color: #ffeb3b;
    grid-row-gap: .5em;
    padding: 0.5em 1em;
    transition: all 0.5s ease;
    color: #c8b900;
}

/* While scrolling */

.fixed-nav .navbar {
    top: 0;
    position: fixed;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "menu image image image ."
        "category category . . search"
        "search search search search search"
        "options options options options options";
}

.fixed-nav .image-container .logo {
    height: 3em;
    display: block;
    margin: 0 auto;
}

/* Containers */

.menu-container {
    grid-area: menu;
}

.search-container {
    grid-area: search;
    overflow: hidden;
    display: none;
}

.image-container {
    grid-area: image;
}

.category-container {
    grid-area: category;
    display: flex;
}

.lang-container {
    grid-area: lang;
    /* display: flex; */
    justify-content: flex-end;
    line-height: 2.5em;
    text-align: center;
    display: none;
}

.options-container {
    grid-area: options;
    list-style: none;
    /* display: none; */
    transition: height 0.2s ease;
    justify-content: flex-end;
    line-height: 2.5em;
    text-align: center;
}

.navigation-container {
    grid-area: navigation;
    display: none;
    line-height: 2.5em;
    text-align: center;
}

.mobile-search-container {
    grid-area: m-search;
    display: flex;
    justify-content: flex-end;
}

/* Icons and images */

.logo {
    height: 15vh;
    /* height: 100%; */
    display: block;
    margin: 0 auto;
    transition: height 0.5s ease, width 0.5s ease;
}

.circle-btn {
    height: 2.5em;
    width: 2.5em;
    border-radius: 50%;
    background-color: #fff;
}

.circle-btn>i,
.circle-btn>img {
    width: 100%;
    height: 100%;
    line-height: 2.5em;
    text-align: center;
}


.circle-btn:hover {
    animation: gradient 0.2s linear;
    background-color: #c8b900;
    color: #f9f9f9;
}

/* Aditions styles */

.category-container>div {
    white-space: nowrap;
    padding: 0em 1em;
    height: 2.5em;
    line-height: 2.5em;
    border-radius: 1.25em;
    background-color: #fff;
}

.category-container>div>i {
    display: inline-block;
}

.category-container>div:hover {
    animation: gradient 0.2s linear;
    background-color: #c8b900;
}

.category-container>div:hover span,
.category-container>div:hover i {
    color: #f9f9f9;
}

.navigation-container .navigation-element,
.options-container .navigation-element {
    display: inline-block;
    min-width: 6em;
    background-color: #fff;
    border-radius: 5px;
    height: 2.5em;
    padding: 0em 1em;
    margin: auto 0em auto 1em;
}

.lang-container .navigation-element {
    display: block;
    min-width: 6em;
    background-color: #fff;
    border-radius: 1.25em;
    height: 2.5em;
    padding: 0em 1em;
    margin: auto 0px;
}

.navigation-element:hover {
    animation: gradient 0.2s linear;
    background-color: #c8b900;
    color: #f9f9f9;
}

.navigation-element:hover a {
    color: #f9f9f9;
}

#login-nav,
#register-nav {
    display: none;
}

/* .profile-container {
    display: inline-block;
    display: flex;
    height: 3em;
    word-wrap: none;
    margin: auto 0em;
    margin-left: 1em;
    padding: 0.25em 1em;
} */
.profile-container {
    /* display: inline-block; */
    display: flex;
    justify-content: flex-end;
    height: 3em;
    flex-wrap: nowrap;
    margin: auto 0em;
    /* margin-left: 1em; */
    padding: 0.25em 0em;
}

.profile-container:hover {
    background-color: #c8b900;
}

.prifile-container h4 {
    display: inline-block;
}

.profile-container img {
    display: inline-block;
    height: 2.5em;
    margin-left: 0.6em;
    border-radius: 999px;
}

/* for dropdo */

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 0.5em 1em;
    text-decoration: none;
    display: block;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    animation: gradient 0.2s linear;
    background-color: #c8b900;
    color: #f9f9f9;
}


/* --------------------------------------- */

.cursor-pointer {
    cursor: pointer;
}

.searchTxt-desk {
    display: none;
}

.searchTxt {
    display: inline-block;
    height: 2.5em;
    width: 100%;
    margin: auto -2.5em auto 0px;
    padding-left: 1em;
    border-radius: 1.25em;
}

.flex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.display-none {
    display: none !important;
}


/**************************
     Filter row
**************************/
.filter-container {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    padding: 0.1em;
}

.filter-container>span {
    display: inline-block;
    text-align: center;
    /* line-height: 40px; */
    padding: 10px 0px;
}

.filter-container>span>img {
    display: inline-block;
    height: 20px;
    width: 20px;
}

/* for display_container */
#display_container {
    display: none;
}

/**********************
     Side navigation
***********************/

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.3);
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: none;
    transition: 0.3s;
    white-space: nowrap;
    display: block;
}


/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #ffc107;
}

.sidenav a#logout:hover {
    color: red;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0.3em;
    right: 0.3em;
    height: 2.5em;
    width: 2.5em;
}

.sidenav .profile-container-mob {
    text-align: center;
    margin-bottom: 2em;
}

.sidenav .profile-container-mob img {
    height: 75px;
    margin-bottom: 1em;
}

@media only screen and (min-width: 1200px) {
    .menu-container {
        display: none;
    }

    /* .logo {
        height: 5em !important;
    } */

    .navbar {
        transition: all 0.2s ease;
        z-index: 10;
        grid-template-columns: 1fr 3fr 1fr 1fr;
        grid-template-rows: auto auto;
        grid-row-gap: 0;
        grid-column-gap: 0.5em;
        grid-template-areas:
            "image navigation . search category lang"
            "image options options options options options"
    }

    .fixed-nav .navbar {
        grid-template-columns: 1fr 3fr 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "image navigation . search category lang"
            ". options options options options options"
    }

    .fixed-nav .image-container {
        display: block;
    }

    .fixed-nav .logo {
        height: 2.5em;
    }

    .fixed-nav .options-container {
        /* display: none; */
        height: 0px;
        overflow: hidden;
    }

    /* for navigation link and container */

    .navigation-container {
        display: flex;
        justify-content: center;
    }

    /* for search container and input */
    .search-container {
        display: flex;
    }

    .mobile-search-container {
        display: none;
    }

    #searchBtn {
        margin: auto 0px;
    }

    .searchTxt:focus+#searchBtn {
        animation: gradient 0.1s linear;
        background-color: #c8b900;
    }

    /* for options container */
    .options-container {
        display: flex;
    }

    #login-nav,
    #register-nav {
        display: inline-block;
    }

    /* for categories */
    .category-container>div {
        margin: auto 0px;
    }

    /* for lang */
    .lang-container {
        display: flex;
    }


    .lang-container>div {
        margin: auto 0px;
    }

    .profile-container {
        margin-left: 1em;
        padding: 0.25em 1em;
    }

    /* for display_container */
    #display_container {
        display: flex;
    }
}