nav {
    border-bottom: 1px solid white;
    width: 100%;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-menu svg {
    color: #ffffff;
}

nav form {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    width: 50%;
}

#menu-section input {
    width: 100%;
    border-radius: 1.5rem;
    max-height: 2rem;
    padding: .5rem !important;
    border: 1px solid #dee2e6 !important;
}

.account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    justify-content: flex-end;

    width: 100%;
    /* gap: 0.75rem; */
}

.user {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-left: 2rem;
    margin-bottom: 0;
}

nav ul li {
    width: 100%;
    line-height: 2rem;
}

.login {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: auto;

}

.logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
    margin-left: 1rem;
}

.logo img {
    max-width: 120px;
}

nav .nav-link,
footer a {
    color: #fff !important;
}

nav .nav-link:hover,
footer a:hover {
    color: #bbb !important;
}

.nav-link {
    position: relative;
    display: block;
    padding: 0 10px;
}

.nav-link:hover::after {
    width: 100%;
    background-color: currentColor;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: transparent;
    transform-origin: left;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-toggler-icon {
    filter: invert(1);
}

.toggle {
    display: none;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    inset: 0;
}

.toggle svg {
    position: absolute;
}

.part2 {
    display: flex;
    align-items: center;
}

.part1 {
    display: flex;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

.forum {
    display: flex;
    position: relative;
}

.number {
    position: absolute;
    height: 17px;
    width:  17px;
    background-color: #d63031;
    border-radius: 50%;
    text-align: center;
    top: -5px;
    left: 20px;
    padding: 1px;
    border: 2px solid rgb(255, 255, 255);
    font-size: 8px;
    color: #ffffff;
}

.number:empty {
    display: none;
}

.notBtn {
    position: relative;
    transition: 0.5s;
    cursor: pointer
}

.fa-bell {
    color: #ffffff;
    font-size: 8px;
}

.dropbox {
    position: absolute;
    height: 300px;
    width: 250px;
    z-index: 10;
    display: none;
    top: 100%;    /* začne pod tlačítkem */
    left: 0;
    margin-top: 8px;
    border: 1px solid #ccc;
    cursor: default;
    transition: opacity 0.15s ease, transform 0.15s ease;
    opacity: 0;
    transform: translateY(-6px);
}

/* také při klávesové fokusaci */
.group:focus-within .dropbox { 
    display: block;
}

.group:focus-within .dropbox {
    opacity: 1;
    transform: translateY(0);
}

.dropbox::before {
    content: '';
    position: absolute;
    top: -8px;
    left: .75rem;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px; /* trojúhelník */
    border-style: solid;
    border-color: transparent transparent #f9f9f9 transparent;
}

.dropbox a:hover {
    text-decoration: underline;
    color: grey;
}

.dropbox p {
    line-height: 1.25rem;
    font-weight: 700;
    margin-bottom: .5rem; /* 8px */
}

.dropbox ul {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    margin-left: 0px;
}

.dropbox ul li a {
    display: block;
    border-radius: .25rem !important;
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.menu {
    display: flex;
}

#menu-icon {
    cursor: pointer;
    margin-right: 2.5rem; /* 40px */
}

#menu.hidden {
    display: flex;
}





@media (min-width: 992px) {
    #menu-section input {
        width: 20rem;
    }
}

@media screen and (max-width: 812px) and (min-width: 601px) {
    .part1 {
        width: 100%;
    }

    .part2 {
        flex-wrap: wrap;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
    }

    .login {
        justify-content: flex-end;
    }

    .account {
        padding: 10px;

        justify-content: flex-end;

    }

}

@media (max-width: 812px) {
    nav ul {
        margin-left: 3rem;
    }

}

@media (max-width: 599.98px) {
    .account {
        width: 100%;
    }

    #menu-section .searching {
        display: none;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        width: auto;
        margin: 10px 0;
    }

    .searching input {
        width: 60%;
        border-radius: 1.5rem;
        max-height: 2rem;
        padding: .5rem !important;
        border: 1px solid #dee2e6 !important;
    }

    #menu.hidden {
        display: none;
    }

    .hidden {
        display: none;
    }

    .nav-menu {
        flex-wrap: wrap;
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
    }
    
    .account::before {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: rgb(255, 255, 255);
        margin: 20px 0;
    }

    nav form {
        width: 90%;
        margin: 0 auto;
    }

    .toggle {
        display: flex;
        flex-direction: column;
        margin-left: auto;
        margin-top: 10px;
    }

    #menu-section input {
        width: 100%;
    }

    nav {
        align-items: flex-start;
        border-bottom: 1px solid white;
        flex-direction: row-reverse;
    }

    .part1 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .part2 {
        flex-wrap: wrap;
    }

    .login {
        width: 90%;
        margin: 10px auto;
    }
}



