* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Roboto, Vazirmatn;
}
body {
    direction: rtl;
}
.main {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #d0d1d5;
}
.intro {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}
.tip {
    text-align: center;
}
.title {
    text-align: center;
    font-size: 20px;
}
.green {
    color: #16a085;
}
.red {
    color: #c0392b;
}
#loader {
    text-align: center;
    display: none;
}
.spin {
    width: 50px;
    height: 50px;
    background: transparent;
    border: solid 8px #2a487b;
    border-right-color: transparent;
    border-radius: 50%;
    margin: 10px auto;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#step2,
#step3,
#step4,
#step5 {
    display: none;
}
p {
}
#step2 input {
    display: block;
    max-width: 300px;
    width: 100%;
    height: 50px;
    padding: 10px;
    margin: 5px auto;
    outline: none;
    border: 2px solid #cecece;
    font-size: 14px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
button {
    display: block;
    min-width: 100px;
    height: 50px;
    color: #fff;
    border: none;
    outline: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    padding: 0 10px;
    margin: 10px auto;
    background: #2a487b;
}
.bar {
    direction: ltr;
    display: flex;
    margin: 10px auto;
    background: #efefef;
    border: solid 2px #2a487b;
}
.outside {
    width: 100%;
    height: 25px;
    padding: 2px;
}
.inside {
    width: 0%;
    height: 100%;
    background: #16a085;
}
.per {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 80px;
    background: #2a487b;
    color: #fff;
    font-size: 14px;
}
.loader {
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.inst {
    background: #f0f2f5;
    border: solid 1px #e1e2e3;
    border-radius: 5px;
    margin: 20px 0;
    padding: 10px;
}
#overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}
#modal {
    display: none;
    position: fixed;
    top: 50%;
    right: 50%;
    max-width: 400px;
    width: 90%;
    transform: translate(50%, -50%);
    background-color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}
#modal img,
#step5 img {
    display: block;
    width: 60px;
    margin: 0 auto;
}
#modal .error {
    font-size: 20px;
    font-weight: bold;
}
.comments {
    direction: ltr;
    font-size: 13px;
    margin-top: 20px;
}
.interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #616770;
}
.reactions {
    display: flex;
    align-items: center;
}
.reactions img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.reactions img:nth-child(1) {
    z-index: 2;
}
.reactions img:nth-child(2) {
    position: relative;
    z-index: 1;
}
.reactions img:nth-child(2),
.reactions img:nth-child(3) {
    margin-left: -5px;
}
#total1 {
    margin-left: 3px;
}
.icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-size: 13px;
    border-top: 1px solid #e1e2e3;
    border-bottom: 1px solid #e1e2e3;
    margin: 10px 0;
}
.react {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: calc(100% / 3);
    color: #616770;
}
.icon {
    background-image: url("../images/icons/icons.svg");
    background-size: 19px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    display: inline-block;
}
.icon1 {
    background-position: 0px 0px;
}
.icon2 {
    background-position: 0px -40px;
}
.icon3 {
    background-position: 0px -60px;
}
.comment {
    display: flex;
    gap: 8px;
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.reply {
    margin-left: 40px;
}
.reply img {
    width: 24px;
    height: 24px;
}
.comment-content {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 15px;
}
.username {
    font-weight: bold;
    font-size: 14px;
}
.comment-content p {
    direction: rtl;
    margin: 0;
}
.actions {
    display: flex;
    gap: 12px;
    padding: 5px 10px;
    color: #616770;
}
.action {
    text-transform: capitalize;
    font-weight: bold;
}
.action:hover {
    text-decoration: underline;
}
.write-comment {
    margin-top: 10px;
}
.write-comment input {
    width: 100%;
    background: #f1f2f6;
    padding: 10px;
    border-radius: 15px;
    border: 0;
    outline: none;
}