.__navbarlink {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 3px 1rem;
    border-bottom: solid 2px rgba(255, 0, 0, 0);
    width: 100%;
    transition: all 1s;
}

.__navbarlinkactive {
    /* border-bottom: solid 2px rgba(255, 0, 0, 0.7); */
    background: rgba(255, 255, 255, 0.76);
    font-weight: 700;
    transition: all 500ms;
}

.__nav {
    min-height: 65px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
    color: grey;
}

.__navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative
}

.__navbarlink {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
    padding: 7px 15px;
    border-bottom: solid 2px rgba(255, 0, 0, 0);
    transition: all 1s;
}

.__navbarlinkactive {
    border-bottom: solid 2px rgba(255, 0, 0, 0.7);
    font-weight: 700;
    transition: all 500ms;
}

.__navbarlink:hover {
    border-bottom: solid 2px rgba(255, 0, 0, 0.7);
    transition: all 500ms;
}

.__togglenav {
    position: relative;
    right: 1rem;
    text-align: right;
}

.__togglenav>label {
    width: 45px;
    aspect-ratio: 1/1;
    background: #eee;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    display: block;
    cursor: pointer;
}

.__togglenav>label>i {
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
}

.__togglesubnav {
    text-align: right;
}

.__togglesubnav>label {
    padding: 10px 20px;
    text-align: right;
    display: block;
    cursor: pointer;
}

.__togglesubnav>label>i {
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
}

#ulnav {
    list-style: none;
    display: flex;
    flex-direction: row;
    text-align: right;
    line-height: 1;
    font-size: 13px;
    width: auto;
    transition: all 1s;
}

#ulnav>li {
    width: 100%;
}

#ulsubnav {
    /* position: absolute; */
    top: 25px;
    left: 125px;
    opacity: 0;
    max-height: 0px;
    list-style: none;
    display: none;
    flex-direction: row;
    text-align: right;
    line-height: 1;
    font-size: 13px;
    width: auto;
    padding: 0;
    gap: 5px;
    transition: all 1s;
}

#ulsubnav>li {
    width: 100%;
    background: #eee;
    border-radius: 5px;
}

.__navbarlink h1 {
    font-size: 14px;
    font-weight: 700;
}

.__toggleinput {
    display: none;
}

#togglesubnav:checked~#ulsubnav,
#togglesubnav:hover~#ulsubnav {
    opacity: 1;
    top: 50px;
    display: flex;
    width: fit-content;
    max-height: 1000px;
    transition: all 500ms;
}


@media screen and (min-width: 300px) {

    .__navbarbrand {
        margin-left: 0.5rem;
    }

    #ulnav {
        background: #ffffffc4;
        opacity: 0;
        padding: 0;
        max-height: 0px;
        overflow: hidden;
        margin-top: 0;
        position: absolute;
        right: 0;
        top: 30px;
        border-radius: 5px;
    }

    #togglenav:checked~#ulnav {
        opacity: 1;
        max-height: 1000px;
        top: 65px;
        right: 0;
        transition: all 500ms;
    }

    .__togglesubnav>label {
        padding: 3px 15px;
    }

    #togglesubnav~#ulsubnav {
        display: flex;
        flex-direction: column;
        /* height: 0px; */
        overflow: hidden;
        transition: all 1s;
    }

    #ulsubnav>li {
        border-right: solid 1px red;
        height: auto;
    }

    #ulsubnav li>a.__navbarlink {
        padding: 3px 7px;
        margin: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: end;
        width: 100%;
        min-height: inherit;
    }

    #togglesubnav:checked~#ulsubnav,
    #togglesubnav:hover~#ulsubnav {
        opacity: 1;
        position: unset;
        flex-direction: column;
        justify-content: start;
        width: fit-content;
        /* height: 200px; */
        max-height: 1000px;
        padding: 0;
        transition: all 500ms;
    }

    .__navbarlink img,
    .__navbarlink p {
        transition: all 1s;
        display: none;
    }

    .__navbarlink h1 {
        transition: all 1s;
        font-size: 10px;
        font-weight: 700;
        margin: 0;
        text-align: right;
    }
}

@media screen and (min-width: 600px) {
    .__navbarbrand {
        margin-left: 1rem;
    }

    #togglenav:checked~#ulnav {
        opacity: 1;
        max-height: 1000px;
        top: 65px;
        right: 0;
        transition: all 500ms;
    }

    #ulnav {
        background: #ffffffc4;
        opacity: 0;
        padding: 0;
        max-height: 0px;
        overflow: hidden;
        margin-top: 0;
        position: absolute;
        right: 0;
        top: 30px;
        border-radius: 5px;
        width: 90vw;
        justify-content: space-around;
    }

    #ulnav>li {
        width: unset;
    }

    #ulnav>li>a {
        padding: 10px 20px;
    }

    .__togglesubnav>label {
        padding: 10px 20px;
        text-align: right;
        display: block;
        cursor: pointer;
    }

    #togglesubnav~#ulsubnav {
        opacity: 0;
        max-height: 0px;
        list-style: none;
        display: none;
        text-align: right;
        line-height: 1;
        font-size: 13px;
        width: auto;
        padding: 0;
        gap: 5px;
        transition: all 1s;
    }

    #ulsubnav>li {
        width: 100%;
        background: #eee;
        border-radius: 5px;
        border-right: none;
       
    }


    #togglesubnav:checked~#ulsubnav,
    #togglesubnav:hover~#ulsubnav {
        opacity: 1;
        display: flex;
        flex-direction: column;
        justify-content: start;
        position: unset;
        top: 15px;
        left: 125px;
        width: fit-content;
        /* height: 130px; */
        padding: 10px 0 0 0;
        max-height: 1000px;
        transition: all 500ms;
    }

    .__navbarlink {
        transition: all 1s;
        align-items: unset;
    }

    .__navbarlink h1 {
        transition: all 1s;
        text-align: right;
    }
}


@media screen and (min-width: 1024px) {
    .__navbarbrand {
        margin-left: 1rem;
    }

    .__togglenav>label {
        width: fit-content;
        aspect-ratio: unset;
        border-radius: unset;
        background: unset;
        display: flex;
        flex-direction: row;
    }

    .__togglenav>label>i {
        display: none;
    }

    .__togglenav>label>#ulnav {
        position: unset;
    }

    #ulnav {
        width: unset;
        max-height: unset;
        opacity: 1;
    }

    #ulsubnav {
        position: absolute;
        top: 25px;
        left: 125px;
        opacity: 0;
        max-height: 0px;
        list-style: none;
        display: none;
        flex-direction: row;
        text-align: right;
        line-height: 1;
        font-size: 13px;
        width: auto;
        padding: 0;
        gap: 5px;
        transition: all 1s;
    }

    #ulsubnav li>a.__navbarlink {
        padding: 3px 7px;
        margin: 0;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        width: 100%;
        min-height: inherit;
    }

    #togglesubnav:checked~#ulsubnav,
    #togglesubnav:hover~#ulsubnav {
        opacity: 1;
        position: absolute;
        top: 50px;
        display: flex;
        flex-direction: row;
        width: fit-content;
        max-height: 1000px;
        transition: all 500ms;
    }

    #ulsubnav>li>a {
        padding: 7px;
    }

    #ulsubnav>li,
    #ulsubnav>li>a {
        transition: all 1s;
        max-width: 150px;
        height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .__navbarlink img,
    .__navbarlink p {
        transition: all 1s;
        display: unset;
        text-align: center;
    }

    .__navbarlink img {
        transition: all 1s;
        width: max-content;
    }

    .__navbarlink h1 {
        transition: all 1s;
        font-size: 14px;
        text-align: center;
    }
}