:root {
    --green: #28a558;
    --gray300: #e0e0e0;
    --gray600: #757575;
    --gray900: #212121;
    --purple: #5828a5;
    --white: #ffffff;
    --red: #f44336;
    --yellow: #ffeb3b;
    --ultralightgray: #f5f5f5;
    --lightgray: #b9b9b9;
    --shadowgray: #7F7F7F;
    --gray: #707070;
}

* {
    margin: 0;
    padding: 0;
    direction: rtl;
    color: var(--gray900);
    font-size: 16px;
    line-height: 1.5em;
    box-sizing: border-box;
    font-family: IRANSans;
}

html, body {
    height: 100%;
    background-color: var(--gray300);
}

body{
    padding: 10px;
}

button, .button {
    padding: 10px 15px;
    text-align: center;
    border-radius: .25em;
    cursor: pointer;
    color: var(--white);
    border: none;
    font-size: 16px;
    background-color: var(--green);
    font-family: Iransans400;
    outline: none;
}

input {
    text-align: center
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

textarea, input, select {
    border: 1px solid var(--gray600);
    outline: 0;
    color: var(--gray900);
    padding: 8px 5px;
    border-radius: 3px;
    outline: none;
    -moz-appearance: textfield;
    display: block;
}

textarea {
    width: 100%
}

select {
    background-color: var(--white);
}

label {
    color: var(--gray);
    font-size: 15px;

}

input:focus, textarea:focus, select:focus {
    border: 1px solid #808080
}

textarea {
    resize: vertical;
}

::placeholder {
    color: #a2a2a2;
}

textarea:focus, input:focus {
    border: 1px solid #808080
}

option {
    text-align: center;
}

.dialogtext, .dialogmessage, .dialogtitle {

    font-size: 15px;
    text-align: center;
}

.dialogtitle {
    font-family: Iransans400;
    font-size: 20px;
}

.dialogtext {
    text-align: justify;
    text-justify: inter-word;
}

.nodata {
    text-align: center;
    margin: 20px 5px
}

.post {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    background-color: #ddd;
    border-radius: 10px;
}

.postimage {
    flex: .3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post img {
    max-width: 100%;
}

.post a {
    text-align: center;
    display: block;
    font-family: Iransans400;
    font-size: 20px;
}

.postcontent {
    flex: .7;
}

.centeritem {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rowbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    gap: 10px;
    border-radius: 3px;
}

.rowbox label {
    font-size: 16px;

}

.rowbox span {
    border-top: 1px dashed var(--gray);
    margin: 0 5px;
    flex: 1;
}

.tags-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.tags-title p {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid var(--gray600);
}

.tags-title p span {
    color: var(--orange);
    margin-left: 2px;
    font-family: Iransans400;
    cursor: pointer;
}

#resid {
    display: none;
}

.comment {
    padding: 10px;
    background-color: #ddd;
    border-radius: 10px;
}

.comment p:nth-child(1), .comment a {
    font-size: 12px;
    margin-bottom: 10px;
}

.commentreply {
    color: coral;
    margin-top: 10px;
}

.box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--white);
    border-radius: .5rem;
    padding: 5px;
}

#loadmore {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    right: 0;
    bottom: 15px;
    width: 100%;
    position: absolute;
    padding: 5px;
}

#loadmore img {
    width: 2.2rem;
    background-color: var(--purple);
    border-radius: .5rem;
    padding: 5px;
}

@font-face {
    font-family: Iransansbold;
    font-style: normal;
    font-weight: bold;
    src: url('font/iransans-bold.eot');
    src: url('font/iransans-bold.eot?#iefix') format('embedded-opentype'),
    url('font/iransans-bold.woff2') format('woff2'),
    url('font/iransans-bold.woff') format('woff'),
    url('font/iransans-bold.ttf') format('truetype');
}

@font-face {
    font-family: Iransans400;
    font-style: normal;
    font-weight: 400;
    src: url('font/iransans-medium.eot');
    src: url('font/iransans-medium.eot?#iefix') format('embedded-opentype'),
    url('font/iransans-medium.woff2') format('woff2'),
    url('font/iransans-medium.woff') format('woff'),
    url('font/iransans-medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Iransans';
    font-style: normal;
    font-weight: normal;
    src: url('font/iransans.eot');
    src: url('font/iransans.eot?#iefix') format('embedded-opentype'),
    url('font/iransans.woff2') format('woff2'),
    url('font/iransans.woff') format('woff'),
    url('font/iransans.ttf') format('truetype');
}