// Reset css
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
	text-decoration: none;
}

.clear{
	clear: both;
}

// Fonts
@font-face {
    font-family: roboto-medium;
    font-display: swap;
    src: url(../fonts/roboto/Roboto-Medium.ttf);
}

@font-face {
    font-family: roboto-regular;
    font-display: swap;
    src: url(../fonts/roboto/Roboto-Regular.ttf);
}

// General variables
:root{
    --shadow-1: rgba(0, 0, 0, 0.2);
    --shadow-2: 0 1px 2px var(--shadow-1);
    --shadow-3: rgba(0, 0, 0, 0.6);
    --shadow-4: 0 3px 6px var(--shadow-3);
    --text-color: #60627B;
    --hover-bg: #E4E6EB;
}

.suggest {
    top: 7px;
    z-index: 30;
    text-align: left;
}
.suggest ul{
    width: 220px;
    display:none;
}
.dropdown {
    position: relative;
}
.suggest>.dropdown-menu {
    margin-top: 20px !important;
    position: absolute;
    padding: 0;
}
.hidden {
    display: none!important;
    visibility: hidden!important;
}
.open>.dropdown-menu {
    display: block;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 200px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.dropdown-menu>.active>a, .dropdown-menu>.active>a:hover, .dropdown-menu>.active>a:focus {
    color: #fff;
    text-decoration: none;
    background-color: #E24045 ;
    outline: 0;

}

.dropdown-menu>li>a {
    display: block;
    padding: 5px 10px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    transition:0.2s;
    font-family: 'Poppins',sans-serif;
}
.dropdown-menu>li>a:hover{
    background-color: #f7f7f7;
    transition:0.2s;
}
.suggest .dropdown-menu li{
    border:none !important;
}

.center{
    display: flex;
    justify-content: center;
}

.wsf-space{
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border-radius: 3px;
    background: #f5f5f5;
    font-family: roboto-regular;
    .wsf-sender{
        .wsf-cancel-reply{
            display: none
        }
    }
    .wsf-post-send,.wsf-comment-send{
        display: inline-block;
        margin-bottom: 20px;
        width: 100%;
        .wsf-sending{
            height: 35px;
            line-height: 35px;
            padding: 0 10px;
            float: right;
        }
        .wsf-send-content{
            font-family: roboto-regular;
            font-size: 16px;
            line-height: 18px;
            display: block;
            margin-bottom: 15px;
            width: 100%;
            min-width: 100%;
            max-width: 100%;
            min-height: 100px;
            padding: 10px;
            outline: none;
            border: none;
            border-radius: 4px;
            box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
        }
    }
    .wsf-comment-send{
        margin-top: 15px;
        margin-bottom: 0px;
    }
    .wsf-background{
        box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
        border-radius: 3px; 
        background: #fff;
        box-sizing: border-box;
    }
    .wsf-posts-list{
        list-style: none;
        margin: 0;
        padding: 0;
        .wsf-post-class,.wsf-comment-class{
            position: relative;
            margin-bottom: 20px;
            &:last-child{
                margin-bottom: 0;
            }
            .wsf-avatar,.wsf-user-name{
                float: left;
            }
            .wsf-avatar{
                img{
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
                }
            }
            .wsf-user-name{
                display: inline-block;
                position: absolute;
                left: 75px;
                top: 0;
                height: 20px;
                line-height: 20px;
                font-family: roboto-medium;
                color: rgb(51, 51, 51);
                font-size: 16px;
                a{
                    text-decoration: none;
                    color: rgb(51, 51, 51);
                    span{
                        font-size: 14px;
                    }
                }
            }
            .wsf-post-content-space,.wsf-comment-content-space{
                float: right;
                width: calc( 100% - 75px );
                margin-top: 25px;
                position: relative;
                &::before{
                    content: '';
                    background: #fff;
                    display: block;
                    width: 15px;
                    height: 15px;
                    border-radius: 3px;
                    position: absolute;
                    left: -7px;
                    top: 3px;
                    transform: rotate(45deg);
                    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
                    z-index: 1;
                }
                .wsf-post-content,.wsf-comment-content{
                    padding: 10px 15px;
                    padding-bottom: 10px;
                    margin-bottom: 35px;
                    line-height: 21px;
                    font-weight: 400;
                    position: relative;
                    background: #fff;
                    border-radius: 4px;
                    z-index: 2;
                }
                .wsf-comment-reply{
                    height: 22.5px;
                    line-height: 22.5px;
                    font-size: 14px;
                    padding: 0 10px;
                    position: absolute;
                    right: 10px;
                    bottom: 10px
                }
                .wsf-date{
                    position: absolute;
                    right: 5px;
                    top: -20px;
                    font-size: 12px;
                    color: #525252;
                }
                .wsf-show-comments{
                    font-family: roboto-medium;
                    position: absolute;
                    left: 10px;
                    bottom: 0px;
                    font-size: 14px;
                    font-weight: 500;
                    cursor: pointer;
                    color:#444;
                }
            }
            .wsf-comments-list{
                list-style: none;
                margin: 0;
                padding-left: 75px;
                display: none;
                .wsf-mobile-close-comments{
                    display: none;
                }
                > li{
                    &:nth-child(2){
                        margin-top: 20px;
                    }
                }
            }
            .wsf-comment-reply-space{
                padding-left: 75px;
            }
        }
    }
    .wsf-load-more-post{
        height: 35px;
        line-height: 35px;
        padding: 0 10px;
        margin-top: 20px;
    }
}

@media screen and (max-width: 550px){
    .wsf-space{
        border-radius: 0px;
        .wsf-posts-list{
            .wsf-post-class,.wsf-comment-class{
                .wsf-avatar{
                    width: 40px;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    margin-bottom: 10px;
                    img{
                        width: 40px;
                        height: 40px;
                    }
                }
                .wsf-user-name{
                    height: 40px;
                    line-height: 40px;
                    left: 50px;
                    font-size: 14px;
                    a{
                        span{
                            font-size: 12px;
                        }
                    }
                }
                .wsf-post-content-space,.wsf-comment-content-space{
                    width: 100%;
                    margin-top: 0px;
                    &::before{
                        display: none;
                    }
                    .wsf-post-content,.wsf-comment-content{
                        font-size: 15px;
                        margin-bottom: 25px
                    }
                    .wsf-comment-reply{
                        font-size: 12px;
                        bottom: 5px;
                        right: 5px;
                        height: 20px;
                        line-height: 20px;
                    }
                    .wsf-show-comments{
                        left: 5px;
                        font-size: 12px;
                    }
                }
                .wsf-comments-list{
                    padding: 15px;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    overflow-y: auto;
                    background: #f5f5f5;
                    z-index: 100000;
                    .wsf-mobile-close-comments{
                        display: block;
                    }
                }
            }
        }
    }
}

.wsf-btn{
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
    border: none;
    color: #fff;
    cursor: pointer;
    &:hover{
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }
}

.wsf-btn-red{
    background: #e24040!important;
}

.wsf-btn-disabled{
    position: relative;
    display: inline-block;
    cursor: normal!important;
    border-radius: 4px;
    &:after{
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: transparent; 
        z-index: 10;
    }
    input,button{
        color: rgba($color: #fff, $alpha: .7)!important;
        background: rgba($color: #E24045, $alpha: .7)!important;
    }
}

.float-right{
    float: right;
}
