input{
    font-size: 14px;
}

.row{
    --bs-gutter-x: 0;
    width: 100%;
}

#app > div.content, #react-app > div.content{
    padding-left:8%;
    padding-right: 8%;
    font-size: 14px;
    color:var(--grey);
    position: absolute;
    top: 59.5px;
    overflow: scroll;
}

.navbar{
    padding: 0;
}

.container-fluid{
    padding: 0 8% 0 8%;
}

body{
    color: var(--grey);
}

a:hover, a:focus{
    color:var(--main-blue);
}

a:hover path {
    fill:var(--main-blue);
}


body::-webkit-scrollbar{
    width: 0;
    height: 0;
}

div::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
    
::-webkit-scrollbar-track {
    box-shadow: none;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background:var(--line-grey); 
    border-radius: 10px;
}

[data-bs-toggle]{
    cursor: pointer;
}

.hyperlink{
    color: var(--main-blue);
}

.dropdown-item.danger{
    color: var(--red);
}

.dropdown-item.danger svg path{
    fill: var(--red);
}

.border-bottom{
    border-color: var(--line-grey);
}

.btn-outline-primary{
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 16px;
}

.btn-outline-primary,.btn-outline-primary:hover,
.btn-outline-primary:focus,.btn-outline-primary:active{
    color: var(--main-blue);
    border: 1px solid var(--main-blue);
    background-color: white;
    box-shadow: none;
}

.btn-secondary,.btn-secondary:hover,
.btn-secondary:focus,.btn-secondary:active{
    background-color: #B3B3B3;
    color: white;
    border-radius: 10px;
    font-weight:700;
    height:40px;
    width: 102px;
}

.btn-primary,.btn-primary:hover,
.btn-primary:focus,.btn-primary:active{
    background-color: var(--main-blue);
    font-size: 16px;
    border: 1px solid var(--main-blue);
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    color: white;
}

.guest-view .guest{
    display: flex;
}

/*nav bar*/
.langOptions{
    position: absolute;
    top: 100%;
    right: 0px;
    width: 100px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-grey);
    height: fit-content;
}

.langOptions > ul{
    /* width: 100%; */
    height: fit-content;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.langOptions > ul > li{
    padding: .1rem .5rem;
}

.langOptions > ul > li.active{
    color: var(--main-blue);
    font-weight: 500;
}

form.search-group{
    background-color: #EFF5FA;
    border: 1px solid #EFF5FA;
    border-radius: 50px;
    height:fit-content;
    padding: 5px;
}

form.search-group-secondary{
    background-color: #F5F5F5;
    border: 0;
    border-radius: 10px;
    height:fit-content;
    padding: 5px;
    width: 100%;
}

input.searchbar {
    width: 260px;
    display: inline;
    border: 0px;
    color: #91ADC9;
    background: transparent;
}

input.searchbar-secondary{
    width: 100%;
    display: inline;
    border: 0px;
    color: var(--grey);
    background: transparent;
}

.searchbar.secondary::placeholder{
    color:var(--grey);
}

.searchbar::placeholder{
    color:#91ADC9;
}

input.searchbar::-webkit-search-cancel-button{
    -webkit-appearance: none;
}

.topics{
    position: absolute;
    top: 100%;
    width: 100vw;
    right: 0;
    height: fit-content;
    max-height: 150px;
    overflow-y: scroll;
    background: white;
    box-shadow: var(--shadow-grey);
    border-radius: 10px;
}

a.nav-link{
    padding:0px;
}

a{
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    color:var(--grey);
}

#sort > div{
    cursor: pointer;
}

a.nav-link svg{
    cursor: pointer;
    padding:5px;
    margin-top:0px;
    margin-bottom:0px;
}

a.nav-link svg path{
    fill:var(--grey);
}

a.nav-link svg.home path{
    fill: none;
    stroke: var(--grey);
}

a.nav-link svg:hover path,div.translate:hover a svg path{
    fill: var(--icon-bg-blue);
}

a.nav-link svg.home:hover path{
    stroke: var(--icon-bg-blue);
    fill:none;
}

a.nav-link.active svg.home path{
    stroke: var(--main-blue);
    fill:none;
}

a.nav-link.active svg path{
    fill: var(--main-blue);
}

a.nav-link svg.translate{
    padding: 0px;
}

svg.translate.active path{
    fill:var(--main-blue);
}

div.translate:hover, a.nav-link svg:hover{
    background-color: #E8F1F9;
    border-radius: 5px;
}

div.translate{
    padding:5px;
}

[data-title]:hover{
    position: relative;
}

.user-view div.translate{
    position: absolute!important;
    right: calc(8% + 40px);
    top:.8rem;
}

nav a{
    width: fit-content;
}

.navbar-toggler:focus{
    box-shadow: unset;
}

.navbar-collapse{
    flex-grow: 0;
}

.navbar-collapse > * {
    display: flex;
    align-items: center;
}

.navbar-collapse a > span{
    display: none;
    margin-left: 5px;
}

.navbar-collapse a{
    display: flex;
    align-items: center;
}

.navbar-collapse .dropdown-menu a > span{
    display: block;
    height: fit-content;
}

.navbar-collapse a.active > span{
    color:var(--main-blue);
}

/* @media (min-width: 855px) {
    .navbar-expand-lg .navbar-toggler{
        display: flex;
    }
} */

/* @media (min-width: 1050px) {
    .navbar-expand-lg .navbar-toggler{
        display: none;
    }
} */

[data-title]:hover::after{
    content: attr(data-title);
    color: var(--main-blue);
    padding: 8px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 5px rgba(106, 137, 170, 0.25);
    border-radius: 10px;
    font-size: 14px;
    line-height: 14px;
    display: block;
    position: absolute;
    top:120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
}

.translate.active:hover::after{
    display: none;
}

.user-view .guest-only, .guest-view .user-only{
    display: none!important;
}

li{
    list-style-type: none;
}

ul{
    cursor: pointer;
    display: inline;
}

.dropdown-menu{
    position: absolute;
    top:100% !important;
    z-index:1;
    overflow: auto;
    width:fit-content;
    padding:5px 5px 5px 5px;
    transform: translateX(-50%) !important;
}

li span{
    height: 100%;
    width: fit-content;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

li.side-menu a, a.dropdown-item{
    display: flex;
    align-items: center;
    text-align: center;
}

ul.dropdown-menu li{
    display: flex;
    justify-content: center;
}

.dropdown-item{
    color:var(--text-grey);
    font-size: 14px;
}

.dropdown-item:active{
    background-color: #e9ecef;
    color: var(--text-grey);
}

.dropdown-divider{
    background-color: var(--line-grey);
    width: 90%;
}

.side-menu a{
    width:100%;
    padding:5px;
    margin-bottom: 2px;
    font-size: 18px;
    font-weight: 500;
    color:var(--grey);
}

.side-menu.active a,.side-menu:hover a{
    background-color: #E8F1F9 !important;
    border-radius: 5px;
    font-weight: 700;
}

.side-menu p {
    margin-left: 35px;
    font-weight: 400;
    font-size: 16px;
    display: none;
    cursor: pointer;
    color: var(--grey);
}

.side-menu.active p {
    display: block;
}

p.active{
    color: var(--main-blue);
}

.side-menu:hover a, .side-menu:hover a:hover{
    color: #A2C2E2;
}

.side-menu.active a{
    color:var(--main-blue) !important;
}

.side-menu a svg,h4 span svg{
    padding:0%;
    margin-right: 1rem;
}

.side-menu a:hover > svg > path,
.side-menu:hover a > svg > path{
    fill:#A2C2E2;
}

.side-menu.active a > svg > path{
    fill:var(--main-blue);
}

h4{
    font-weight: 700;
    font-size: 18px;
    color:var(--main-blue);
}

h5{
    color:var(--grey);
    font-weight: 700;
    font-size: 14px;
}

div.community a.selected, .selected{
    background-color: #E8F1F9;
    color:var(--main-blue);
    border-radius: 5px;
}

div a.community{
    width: fit-content;
    color:#8D8D8D;
    background-color: #F5F5F5;
    text-decoration: none;
    border-radius: 5px;
    padding: 3px 8px 3px 8px;
    margin: 3px;
    font-size: 14px;
    font-weight: 400;
}

p.top3 span.top3{
    font-weight: 500;
    color:var(--text-grey);
}

p.top3 span{
    font-weight: 700;
}

p span{
    font-size: 14px;
    padding-right: 8px;
    color: var(--grey);
}

p{
    font-size: 14px;
    padding:0px;
    margin:3px;
    white-space: normal;
    overflow-wrap: break-word;
    color:var(--text-grey);
}

p.desc{
    font-size: 12px;
    color:var(--grey);
    margin: 0px 3px 3px 3px;
}

.username{
    font-weight: 700;
    color: var(--text-grey);
    padding:0;
    margin: 3px 3px 0px 3px;
}

button{
    background-color: transparent;
    border: 0;
    border-radius: 50px;
}

button.small{
    height:fit-content;
}

.btn-outline-danger, .btn-outline-primary.small, .btn-outline-secondary{
    font-size: 12px;
    border: 1px solid;
    border-radius: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: white;
}

.btn-outline-primary{
    color: var(--main-blue);
    border-color: var(--main-blue);
}

.btn-outline-secondary:disabled, .btn-outline-secondary{
    color:var(--grey);
    border: 1px solid var(--grey);
}

.btn-outline-danger{
    color: var(--red);
    border-color: var(--red);
}

button + button {
    margin-left: 10px;
}

.back{
    background-color: #E8F1F9;
    position: fixed;
    right: 40px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow-v2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-size: 32px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
}

.back.active{
    pointer-events: auto;
    opacity: 1;
}

.get-app{
    background-color: var(--main-blue);
    border: 0px;
    color:white;
    position: fixed;
    right: 120px;
    bottom: 20px;
    /* width: 130px; */
    width: fit-content;
    height: 50px;
    box-shadow: var(--shadow-v2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: 16px;
    text-decoration: none;
}

div.post{
    border:0.5px solid var(--line-grey);
    border-radius: 10px;
}
    
.carousel-indicators [data-bs-target]{
    border-top:0;
    border-bottom: 0;
    border-radius: 50px;
    width: 8px;
    height:8px;
    background-color: #BDBDBD;
}

.carousel-indicators{
    height:fit-content !important;
}

.carousel-control-next, .carousel-control-prev {
    top:50%;
    width: 25px;
    margin-left: 20px;
    margin-right: 20px;
    background-color: #E8F1F9;
    height:25px !important;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    display: flex;
    opacity: 0;
}

div.carousel:hover .carousel-control-next, div.carousel:hover .carousel-control-prev {
    opacity: 0.5;
}

.carousel-control-next:hover, .carousel-control-prev:hover {
    opacity: 1!important;
}

div.modal-body div.carousel-item{
    height: 100%;
    width: fit-content;
    margin-right: 0;
}

.community.btn-info, .community.btn-info:hover{
    color:var(--main-blue);
    font-size: 14px;
    width: fit-content;
    padding: .2rem .5rem;
    background-color: #E0EBF5;
    border-radius: 20px 20px 20px 0px;
    border: 0;
    margin: .2rem;
}

.community-tag{
    color:var(--main-blue);
    font-size: 14px;
    width: fit-content;
    padding: .2rem .5rem;
    background-color: #E0EBF5;
    border-radius: 20px 20px 20px 0px;
    border: 0;
    margin: .2rem;
    white-space: nowrap;
}

div:has(>div.community-tag){
    flex-wrap: wrap;
}

.hashtag{
    color:#5D84C4;
    font-size: 14px;
    width: fit-content;
    margin-right: 5px;
}

.modal-content{
    border-radius: 10px;
}

h5.modal-title, .modal-body h5{
    font-size: 16px;
    font-weight: 400;
    color:var(--text-grey);
}

.modal-header{
    justify-content:center;
}

button.close{
    position: absolute;
    right:20px;
    background: #FFF;
    border: 0;
    font-size: 20px;
}

#reportModal .modal-body img{
    width:50px;
    height: 50px;
}

#reportModal button{
    font-size: 14px!important;
    margin-top: 10px;
}

.fixed-right{
    position: absolute;
    display: block;
    right: 1rem;
    top:0;
    bottom:0;
    margin:auto 0;
    align-items: center;
}

.btn{
    border-radius: 5px;
    height: 50px;
    border: 1px solid #E7E7E7;
    background: #F9F9F9;
    color: var(--text-grey);
}

.btn.btn-outline-danger{
    color:var(--red);
    background: #FCECEC;
    border: 1px solid var(--red);
}

.btn-danger{
    color:#FFF;
    background: var(--red);;
    border: 1px solid var(--red);
}

div.fixed-right > div{
    width:50px;
    height:50px;
    justify-content:center;
    text-align:center;
    background: #FCECEC;
    border-radius: 10px;
}

/* .modal-body > div{
    margin-bottom: 1rem;
} */

.app-download img{
    width: 142px;
    height:48px !important;
}

.notif{
    color:var(--text-grey);
    margin-right: 60px;
}

.notif svg path{
    fill:var(--grey);
}

a.like > span , a.comment > span, a.follower > span{
    display: none;
}

a.like, a.comment, a.follower{
    width: fit-content;
    padding: 5px;
    height: fit-content;
}

a.like.active > span, a.comment.active > span, a.follower.active >span{
    display: inline-block;
    color: var(--text-grey);
    padding: 5px;
}

.like.active{
    background: #FCECEC;
    border-radius: 7px;
}

.comment.active{
    background: #EDF4ED;
    border-radius: 7px;
}

.follower.active{
    background: #EFF5FA;
    border-radius: 7px;
}

.like.active svg path{
    fill:var(--red);
}

.comment.active svg path{
    fill:#4E944F;
}

.follower.active svg path{
    fill:var(--main-blue);
}

div.notif {
    position: relative;
}

div.notif a ~ div{
    background-color: #FFF;
    padding: 8px;
    box-shadow: 0px 3px 7px 0px #6A89AA80;
    border-radius: 10px;
    font-size: 14px;
    line-height: 14px;
    display: none;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
    opacity: 1;
    width: 307px;
    max-height: 383px;
}

div.notif a.active ~ div{
    display: block;
}

.notif div.row{
    margin:.25rem;
}

.notif hr{
    background-color: var(--line-grey);
    margin-bottom: 0;
    margin-top: 0;
}

.notif img{
    width: 35px;
    height:35px;
    border-radius: 5px;
}

div.modal-body#createPost > div ,
div.modal-body#createTemplate > div {
    margin-bottom: 0;
}

div.modal-content > div.modal-header > a{
    width: fit-content;
    position: absolute;
    left: 1rem;
}

.modal-content.createPost #createPost,.modal-content.browseImg #browseImg, 
.modal-content.createTemplate #createTemplate{
    display: flex;
    height: 500px;
}

div.createTemplate h5.createTemplate,
div.modal-content:not(.createTemplate) h5.createPost{
    display: block;
}

.modal-content.browseImg #createPost, .modal-content.createPost #browseImg,
.modal-content.browseImg #createTemplate, .modal-content.createPost #createTemplate,
.modal-content.createTemplate #createPost, .modal-content.createTemplate #browseImg,
div.modal-content:not(.createTemplate) h5.createTemplate, div.createTemplate h5.createPost{
    display: none;
}

@media (min-width: 1300px){
    div.modal-dialog:has(> div.modal-content.createPost){
        max-width: 1140px;
    }
}

@media (min-height: 800px){
    div.modal-content.createPost{
        max-height: 650px;
    }
}

div.dropdown-custom{
    box-shadow: 0px 3px 7px 0px #0000001A;
    border-radius: 0px 0px 7px 7px;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
    background: #FFF;
}

div:has(>div.dropdown-custom){
    position: relative;
}

div#template > div{
    border-bottom:0.5px solid var(--line-grey);
    color: var(--text-grey);
}

div#createModal div:not(.browseImg) div.modal-header a{
    display: block;
}

div#createModal div.browseImg div.modal-header a{
    display:none;
}

div.modal-body#createPost > div > button, 
div.modal-body#createTemplate > div > button{
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

div.modal-body#createPost > div:last-child, 
div.modal-body#createTemplate > div:last-child{
    position: relative;
}

div#template > div.last-item{
    border: 0;
}

a[href="#template"]{
    width: 100%;
    display: block;
    color: var(--text-grey);
    border-bottom: 1px solid var(--line-grey);
}

div#createTemplate input[type="text"]{
    width: 100%;
    font-size: 14px;
    border: 0;
    border-bottom: 1px solid var(--line-grey);
}

label:has(+input[type="text"]){
    font-size: 12px;
}

div#createPost textarea, div#createTemplate textarea{
    width: 100%;
    height: 100%;
    font-size: 14px;
    border: 0;
    resize: none;
}

textarea::placeholder{
    color: #B3B3B3;
}

div#createPost div:has(>textarea){
    height:50%;
}

div#createTemplate div:has(>textarea){
    height:80%;
}

h5.content-header{
    color:var(--grey);
    font-size: 10px;
    font-weight: 700;
}

*:focus, *:focus-visible{
    outline: 0;
}

div#postModal > button.close,
div.postModal > button.close{
    top:20px;
    right:20px;
    background: var(--grey);
    border-radius: 50px;
    width: 30px;
    height: 30px;
}

div#postModal > button:first-child > span,
div.postModal > button:first-child > span{
    color: #FFF;
}

div#postModal > div.modal-dialog,
div.postModal > div.modal-dialog{
    background: #FFF;
    width: 1419px;
    max-width: 90%;
    height: 600px;
    max-height: 814px;
    box-shadow: 0px 3px 7px 2px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

div.modal-body div.carousel-inner{
    border-radius: 10px 0px 0px 10px;
    background: #F9F9F9;
}

div#postModal div.modal-body > div:last-child,
div.postModal div.modal-body > div:last-child{
    overflow: hidden;
    border-radius: 0px 0px 10px 10px;
}

div#section{
    overflow-y: scroll;
    background: #FFFFFF;
    display: flex;
    height: 100%;
    flex-direction: column;
}

div#section div a{
    font-size: 14px;
    margin-right: 5px;
    padding-bottom: 2px;
}

div#section div a.active{
    border-bottom: 3px solid var(--main-blue);
    color: var(--main-blue);
}

div#section div a.active > span{
    font-weight: 700;
}

#commentSection {
    overflow-y: unset;
    /* height: calc( 100% - 50px); */
}

div#section:has(a#comment.active) #commentSection,
div#section:has(a#like.active) #likesSection{
    display: block;
}

div#section:has(a#comment.active) #likesSection,
div#section:has(a#like.active) #commentSection{
    display: none;
}

div#commentSection > div:not(.reply):has(+div:not(.reply)) > div:last-child,
div#reply > div > div:last-child,
div.reply:has(+div:not(.reply)),
div.reply:has(+div.reply) > div:last-child
{
    border-bottom: 0.5px solid var(--line-grey);
}

div#reply > div.last > div:last-child,
div#commentSection > div.last > div:last-child{
    border: 0;
}

div#reply > div{
    margin-top: 0.5rem;
}

div#commentSection hr, div#reply hr{
    border: 1px solid;
    margin:3px 0px 3px 0px;
    width: 100%;
}

#section img.rounded-circle{
    margin-top: 4px;
}

div#commentSection div a{
    margin:3px;
    font-weight: 600;
    font-size: 12px;
}

div#postModal div.modal-body > div,
div.postModal div.modal-body > div{
    height: 100%;
    display: flex;
}

#postModal .carousel > *, .carousel {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}

div#postModal div.post-card-text {
    border-radius: 10px 0px 0px 10px;
}

#postModal .carousel-inner > *{
    display: none;
    justify-content: center;
    align-items: center;
}

#postModal .carousel-inner > .active{
    display: flex;
}

#postModal .carousel-inner img{
    max-width: 100%;
    max-height: 100%;
}

div#postModal div:has(>input),
div.postModal div:has(>input){
    /* position:absolute;
    bottom: 0;
    left: 0; */
    width: 100%;
    height:50px;
    background: #FFF;
    border-top: 0.5px solid var(--line-grey);
}

div#postModal div:has(>input) > *,
div.postModal div:has(>input) > *{
    margin: 3px;
}

div#postModal div:has(>input) > *:first-child,
div.postModal div:has(>input) > *:first-child{
    margin-left: 0;
}

div#postModal div:has(>input) > *:last-child,
div.postModal div:has(>input) > *:last-child{
    margin-right: 0;
}

input[type="text"]{
    border: 0;
    width: 100%;
}

div#followerModal div.modal-body, div#followingModal div.modal-body, div#blockedModal div.modal-body{
    max-height: 486px;
    overflow-y: scroll;
}

.arrow{
    margin-right:5px;
    margin-left: auto;
    display: none;
}

.side-menu.active .arrow{
    display: block;
}

/*message page styling*/

.box{
    width: 85vw;
    height: 80vh;
    margin-top: 70px;
    background: #FFFFFF;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

#side{
    overflow-y: scroll;
    max-height: 100%;
}

#side p.desc{
    font-size: 14px;
}

#side p.username{
    font-weight: 500;
}

#side .unread p.username{
    font-weight: 700;
}

#side .unread p.desc{
    font-weight: 600;
}

#side div.open{
    background-color: #EFF5FA;
}

#side div.row > *{
    width: fit-content;
    max-width: 90%;
    overflow: hidden;
    max-height: 50px;
}

.badge{
    background-color: var(--red);
    border-radius: 50%;
    color: white;
    font-size: 10px;
    font-weight: 600;
}

#side > div {
    position: relative;
    cursor: pointer;
}

#side .badge{
    position: absolute;
    bottom: 1rem;
    right:5px;
    display: none;
}

#side .unread .badge{
    display: block;
}

.message{
    margin-top: auto;
}

.message > div{
    margin-top: .5rem;
}

.box > div:last-child{
    display: flex;
    flex-direction: column;
}

.box > div:last-child > div.message{
    overflow-y: scroll;
}

.message > div.justify-content-start > div:last-child{
    background-color: #F1F1F1;
    color: var(--text-grey);
    max-width: 50%;
    padding: .5rem;
    border-radius: 15px;
}

.message > div.justify-content-start.right > div:last-child{
    background-color: var(--main-blue);
}

.message > div.justify-content-start.right > div:last-child p{
    color: #FFF;
}

.message > div.justify-content-start.right{
    flex-flow: row-reverse;
}

div.message ~ div > *{
    margin-left: .5rem;
}

div.tab > div{
    width: 150px;
    padding: 5px;
    color:var(--grey);
    cursor: pointer;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--line-grey);
}

div.tab > div.active{
    border-bottom: 2px solid var(--main-blue);
    color: var(--main-blue);
    font-weight: 700;
}

div.tab > div.active path{
    fill: var(--main-blue);
}

div.tab > div svg{
    margin-right: .5rem;
}

.box > div:first-child{
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right:1px solid var(--line-grey);
}

.form-check-input:checked{
    background-color: var(--main-blue);
    border-color: var(--main-blue);
}

.form-switch{
    padding: 0 1.5rem 0 0;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.form-switch .form-check-input {
    width: 45px;
    height: 25px;
}

.form-switch label{
    color:var(--text-grey);
    font-size: 14px;
    display: flex;
    align-items: center;
    width: 100%;
}

.box h5{
    color: var(--text-grey);
    font-weight: 700;
    font-size: 16px;
}

li.side-menu#community, li.side-menu:last-child{
    display: none;
}

a#open-create-modal, .guest-only.login, .navbar-collapse .guest-only.login{
    display: none;
}

.community {
    display: flex;
    flex-wrap: wrap;
}

a.fit-items{
    display: inline-flex;
    height: fit-content;
    width: fit-content;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

/*post card*/

.card{
    height: 350px;
}

.card-text{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-img-top{
    height: 70%;
    overflow: hidden;
}

.card-img-top > img{
    min-width: 100%;
}

.card-body{
    padding: .5rem .2rem;
}

.post-card-text {
    padding: 10px;
    background: radial-gradient(#e5ffff, var(--main-blue));
    width: 100%;
    display: flex;
    align-items: center;
}

.post-card-text p {
    display: -webkit-box;
    max-width: 100%;
    margin: 0 auto;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 35px;
    font-size: 20px;
    text-align: center;
}

/*icons - fa*/
.fa.fa-heart-o{
    font-size: 24px;
}

.fa.fa-star-o{
    font-size: 28px;
}

/*post comment section*/
.comment-sect{
    height: 200px;
    
}

/*responsive-tablet*/
@media only screen and (max-width: 991px) {
    .container-fluid{
        padding: 0 0.5rem;
    }

    .user-view div.translate {
        right: calc(.5rem + 40px);
    }

    .translate svg.translate{
        width: 17px;
        height: 17px;
    }

    .sign-up > .btn-primary, .btn-outline-primary{
        font-size: 14px;
        padding: 5px 5px 5px 5px;
    }

    input.searchbar{
        width: 180px;
    }

    .navbar-expand-lg .navbar-collapse{
        position: absolute;
        top:60px;
        left:0;
        background: #FFF;
        width: 100%;
        z-index: 1;
        padding: 1% 8%;
        box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse a > span{
        color:var(--grey);
        font-size: 16px;
        height: fit-content;
        display: inline-flex;
    }

    .navbar-collapse a > svg{
        padding: 5px;
        width: 30px;
        height: 30px;
    }

    .navbar-collapse a.dropdown-item > svg > path{
        stroke: var(--grey);
    }

    .navbar-collapse #profileDropdown img{
        width: 25px;
        height: 25px;
    }

    .navbar-collapse .dropdown{
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .navbar-collapse .dropdown li a{
        padding: 0;
    }

    .navbar-collapse .dropdown-menu{
        display: block;
        position:static;
        transform: none!important;
        padding: 0;
        border: 0;
        order: 1;
    }

    .navbar-collapse #profileDropdown{
        order: 2;
    }

    .dropdown-divider, a.dropdown-item[href="/profile"]{
        display: none;
    }

    div.notif a ~ div{
        left: 0!important;
        transform: unset!important;
        width: 100%!important;
    }

    #app > div.content, #react-app > div.content{
        padding-left: 70px;
        padding-right: 0.5rem;
    }

    /*side-menu*/

    .side-menu-bar{
        position: fixed;
        top: 59.5px;
        bottom:0;
        left:0;
        z-index: 3;
        background: #FFF;
        width: 50px;
    }

    .side-menu-bar:not(.menu-open){
        margin-left: 5px;
    }

    .side-menu-bar:not(.menu-open) li.side-menu{
        margin-bottom: 1.25rem;
    }

    .side-menu-bar:not(.menu-open) li.side-menu.active > a,
    .side-menu-bar:not(.menu-open) li.side-menu > a:hover{
        border-radius: 50%;
    }

    .side-menu-bar:not(.menu-open) li.side-menu#community, .side-menu-bar:not(.menu-open) li.side-menu:last-child{
        display: block;
    }

    .side-menu-bar:not(.menu-open) > div{
        padding: 0!important;
    }

    .side-menu-bar:not(.menu-open) hr,  .side-menu-bar:not(.menu-open) > div:last-child, 
    .side-menu-bar:not(.menu-open) > div:nth-last-child(3){
        display: none;
    }

    .side-menu-bar:not(.menu-open) svg{
        margin-right: 0;
    }

    .side-menu-bar:not(.menu-open) li span{
        display: none;
    }

    .side-menu-bar:not(.menu-open) li:hover a{
        position: relative;
    }

    .side-menu-bar:not(.menu-open) a:hover span:not(.arrow){
        display: block;
        position: absolute;
        left: 40px;
        height:fit-content;
        background: #FFF;
        border-radius: 5px;
        font-size: 14px;
        padding: 5px;
        z-index: 5;
        box-shadow: 0px 0px 5px rgba(106, 137, 170, 0.25);
    }

    .side-menu-bar.menu-open{
        width: 30vw;
        overflow-y: scroll;
    }

    .side-menu-bar:not(.menu-open) #community-open{
        position: absolute;
        display: none;
        width: 240px;
        height: 206px;
        left: 60px;
        top: 130px;
        background: #FFFFFF;
        box-shadow: 0px 0px 5px rgba(106, 137, 170, 0.25);
        border-radius: 10px;
        padding: 1rem !important;
    }

    .side-menu-bar:not(.menu-open) #community-open.active{
        display: block;
    }

    /* div.community{
        overflow-y: scroll;
        height: 92%;
    } */

    div:not(.menu-open) > #community-open > div.community {
        overflow-y: scroll;
        height: 92%;
    }

    .side-menu.active .arrow{
        display: none;
    }

    #trendings{
        height: calc(100vh - 110px);
        overflow-y: scroll;
    }

    .trending-menu{
        position: fixed;
        left: 30vw;
        top: 60px;
        display: flex;
        width: 100vw;
        background: #FFF;
    }

    .side-menu-bar:not(.menu-open) .trending-menu{
        left: calc(70px + 1rem);
        padding-left: 8px;
    }

    .trending-menu p{
        padding: .5rem;
        margin: .25rem 0;
    }

    .trending-menu p.active{
        background: #EFF5FA;
        border-radius: 10px;
    }

    div:has(>div.community-tag){
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    div:has(>div.community-tag)::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    /*modals*/
    div#postModal > div.modal-dialog,
    div.postModal > div.modal-dialog{
        background: #FFF;
        max-width: 70vw;
        max-height: 90vh;
    }

    div#postModal div.modal-body > div,
    div.postModal div.modal-body > div{
        height: 50%;
    }

    div.modal-body div.carousel-inner, div#postModal div.post-card-text {
        border-radius: 10px 10px 0px 0px;
    }

    div#section{
        overflow-y:unset;
    }

    /*message*/
    div.box {
        margin: 0;
        border: 0;
        width: 100vw;
        height: calc(100vh - 60px);
        box-shadow: none;
    }
}

@media only screen and (max-width: 575px) {
    button[data-bs-target="#createModal"], button.open-create-modal{
        display: none;
    }

    a#open-create-modal, .guest-view a.guest-only.login{
        display: block;
    }

    .container-fluid{
        padding-left: 2%;
        padding-right: 2%;
        flex-wrap: nowrap!important;
        justify-content: start;
    }

    .user-view div.translate, guest-view div.translate{
        right: 2%;
        position: static!important;
    }

    div:has(>.search-group), .search-group{
        width: 100%;
    }

    input.searchbar{
        width: 100%;
    }

    #nav2{
        background: #FFF;
        height: 60px;
        position: fixed;
        display: flex;
        bottom:0;
        top: auto;
        width: 100%;
        z-index: 1;
        padding: 1% 2%;
        box-shadow: unset;
        border-top: 1px solid var(--line-grey);
    }

    #nav2 span, #nav2 ul{
        display: none;
    }

    #nav2 .notif{
        margin-right: 0;
    }

    button.navbar-toggler{
        display: none;
    }

    .sign-up{
        display: none;
    }

    .guest-view #home.user-only{
        display: block!important;
    }

    body{
        overflow-y: hidden;
    }

    /*content*/
    #app > div.content, #react-app > div.content {
        padding-left: 0;
        padding-right: 0;
        overflow-y: scroll;
        overflow-x: hidden;
        height: calc(100vh - 120px);
        flex-direction: column;
    }

    div.post{
        border: 0;
    }

    .post .dropdown-menu{
        transform: unset;
        top: 0 !important;
        right: 0 !important;
    }

    .post-card-text{
        min-height: 200px;
    }

    /*side bar*/
    .side-menu-bar{
        top: 0;
        position: sticky;
        left:0;
        width: 100%;
        height: fit-content;
    }

    .side-menu-bar *{
        margin-bottom: 0!important;
    }

    .side-menu-bar:not(.menu-open),  .side-menu-bar.menu-open{
        margin:0;
    }

    .side-menu-bar ul {
        display: flex;
        padding-left: 0;
        width: 100%;
    }

    .side-menu-bar:not(.menu-open) li span,
    .side-menu-bar.menu-open li span{
        display: block;
        font-size: 14px;
    }

    .side-menu a span.arrow{
        display: none;
    }

    .side-menu-bar:not(.menu-open) li.side-menu > a:hover{
        border-radius: 10px;
    }

    .side-menu-bar:not(.menu-open) li.side-menu.active > a{
        border-bottom: 2px solid var(--main-blue);
        border-radius: 0;
        background: #FFF!important;
    }

    .side-menu-bar:not(.menu-open) li.side-menu{
        margin-bottom: 0;
    }

    ul > li.side-menu:last-child, ul > li.side-menu:nth-last-child(2){
        display: none!important;
    }

    .side-menu-bar:not(.menu-open) .trending-menu,
    .side-menu-bar.menu-open .trending-menu{
        top: 95.5px;
        left: 0;
        width: 100vw;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .side-menu-bar:not(.menu-open) #community-open,
    .side-menu-bar.menu-open #community-open{
        position: static;
        display: none;
        height: fit-content;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 0.5rem!important;
        padding-top: 0.5rem!important;
        box-shadow: unset;
        border: 0;
    }

    .side-menu-bar:not(.menu-open) #community-open.expand,
    .side-menu-bar.menu-open #community-open.expand{
        display: flex;
    }

    .side-menu-bar:not(.menu-open) #community-open.expand.open,
    .side-menu-bar.menu-open #community-open.expand.open{
        height: 100px;
    }

    .side-menu-bar:not(.menu-open) li:hover span:not(.arrow){
        position: static;
        background: transparent;
        color:var(--icon-bg-blue);
        box-shadow: unset;
        padding: 0;
    }

    #community-open h5{
        display: none;
    }

    div.community {
        flex-wrap: nowrap;
        overflow: hidden;
        height: 100%;
    }

    .open div.community {
        flex-wrap: wrap;
        overflow: scroll;
    }

    a.community{
        height: fit-content;
        width: auto;
        white-space:nowrap;
    }

    a.arrow{
        position: absolute;
        display: flex;
        top: 55px;
        right: 0px;
        width: fit-content;
        align-items: center;
        margin-left: 1rem;
        transform: rotate(180deg);
    }

    .open a.arrow{
        transform: unset;
    }

    button.get-app {
        bottom: 80px;
        right: 20px;
    }

    a.back{
        display: none;
    }

    div.box{
        margin-top: 60px;
        height: calc(100vh - 60px);
    }

    div#browse-selected *{
        display: none;
    }

    #following-selected > div{
        display: flex;
        flex-direction: row;
    }

    #following-selected > div > div:last-child{
        overflow-x: scroll;
        overflow-y: hidden;
        display: flex;
        flex-direction: row;
        margin-left: 5px;
    }

    #following-selected > div > div:last-child > *{
        flex-direction: column;
    }

    #following-selected > div > div:last-child > * img{
        width: 25px;
        height: 25px;
    }

    div:has(>button.community){
        overflow-x: scroll;
        display: -webkit-inline-box;
    }

    div::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    #posts{
        order: 2;
        background-color: #F5F5F5;
    }

    div.post{
        background-color: white;
        border-radius: 0%;
    }

    a.fit-items{
        flex-direction: row;
        height: 28px;
    }

    .post-reply{
        width: 100%;
        border-top: 1px solid var(--line-grey);
        background: white;
        height: fit-content;
        position: fixed;
        bottom: 0;
    }

    .post-selected{
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        background: #F5F5F5;
        overflow-y: scroll;
        margin-bottom: calc(35px + 1rem);
    }
}

.reply {
    margin: .5rem .5rem .5rem calc(.5rem + 35px);
    padding-left: .25rem;
}