/*
Theme Name: YS JadvalSaz
Theme URI: https://yoonesd.ir/
Author: Younes
Author URI: https://www.linkedin.com/in/younes-darabi-0951b3200
Version: 1.0
*/
:root {
    --primary-color: #8869c7;
    --secondery-color: #000000;
    --text-color: #000000;
    --message-color: #b81621;
    --shadow-first: 0 4px 16px rgba(0, 0, 0, 0.16);
    --shadow-second: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@font-face {
    font-family: 'irs';
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url('fonts/IRANSansWeb.eot');
    src: url('fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
        url('fonts/IRANSansWeb.woff') format('woff'),
        url('fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: 'irs';
    font-style: normal;
    font-weight: 700;
    font-display: auto;
    src: url('fonts/IRANSansWeb_Bold.eot');
    src: url('fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/IRANSansWeb_Bold.woff') format('woff'),
        url('fonts/IRANSansWeb_Bold.ttf') format('truetype');
}


*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    list-style-type: none;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #eee;
    font-family: irs;
    color: var(--text-color);
    width: 100%;
    margin: 0 auto;
    position: relative;
}

html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

a,
button {
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: none;
    box-shadow: none;
}

a:hover {
    color: var(--secondery-color);
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a,
li {
    transition: all 0.2s ease-out 0.15s;
    -webkit-transition: all 0.2s ease-out 0.15s;
    -moz-transition: all 0.2s ease-out 0.15s;
    color: var(--primary-color);
}

table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    background-color: #fff;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 15px;
}

tr:hover>td {
    background: #e7e7e7;
}

.hidden {
    display: none;
}

.hide-desktop {
    display: none;
}

.hide-scroll {
    overflow: hidden;
}

.hidescrollbar::-webkit-scrollbar {
    display: none;
}

.hidescrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* .center {
    text-align: center;
} */

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex.center {
    justify-content: center;
}

.flex.space-between {
    justify-content: space-between;
}

.flex.nowrap {
    flex-wrap: nowrap;
}

.flex.align-center {
    align-items: center;
}

.flex.align-end {
    align-items: end;
}

.flex.end {
    justify-content: end;
}

.flex.column {
    flex-direction: column;
}

.row {
    position: relative;
}

.col {
    position: relative;
}

.col-10 {
    width: 10%;
}

.col-15 {
    width: 15%;
}

.col-18 {
    width: 18%;
}

.col-20 {
    width: 20%;
}

.col-25 {
    width: 25%;
}

.col-30 {
    width: 30%;
}

.col-33 {
    width: 33.33333%;
}

.col-40 {
    width: 40%;
}

.col-45 {
    width: 45%;
}

.col-50 {
    width: 50%;
}

.col-55 {
    width: 55%;
}

.col-60 {
    width: 60%;
}

.col-70 {
    width: 70%;
}

.col-75 {
    width: 75%;
}

.col-80 {
    width: 80%;
}

.col-90 {
    width: 90%;
}

.col-100 {
    width: 100%;
}

.padding-4 {
    padding: 4px;
}

.padding-7 {
    padding: 7px;
}

.padding-14 {
    padding: 14px;
}

.padding-21 {
    padding: 21px;
}


.gap-7 {
    gap: 7px;
}

.gap-14 {
    gap: 14px;
}

.gap-21 {
    gap: 21px;
}

.gap-35 {
    gap: 35px;
}


.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    margin: 10px auto;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    --c: no-repeat radial-gradient(farthest-side, #25b09b 92%, #0000);
    background:
        var(--c) 50% 0,
        var(--c) 50% 100%,
        var(--c) 100% 50%,
        var(--c) 0 50%;
    background-size: 12px 12px;
    animation: l12 1s infinite;
}

.loader::before {
    margin: 4px;
    filter: hue-rotate(45deg);
    background-size: 8px 8px;
    animation-timing-function: linear
}

@keyframes l12 {
    100% {
        transform: rotate(.5turn)
    }
}


.container {
    width: 100%;
    position: relative;
    max-width: 1260px;
    margin: 0 auto;
}

.btn {
    padding: 6px 15px;
    background-color: var(--primary-color);
    font-weight: 700;
    color: #fff;
    border-radius: 7px;
    box-shadow: var(--shadow-first);
}

.btn:hover {
    background-color: var(--secondery-color);
    color: #fff;
}

.btn.dark {
    background-color: var(--secondery-color);
}

.btn.dark:hover {
    background-color: var(--primary-color);
}

.btn.small {
    font-size: 12px;
    box-shadow: none;
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9;
    display: none;
}

.overlay.light {
    background: rgba(0, 0, 0, 0.2);
}

.message {
    text-align: center;
    margin: 15px 0 0;
    color: var(--message-color);
    font-weight: 700;
    font-size: 15px;
}

.ys-popup {
    max-width: 500px;
    width: 90%;
    background: #fff;
    position: fixed;
    top: 200px;
    left: 0;
    right: 0;
    margin: auto;
    max-height: 500px;
    overflow-x: hidden;
    padding: 20px;
    border-radius: 7px;
    box-shadow: var(--shadow-second);
    z-index: 10;
    display: none;
}

.ys-popup .close-box-btn,
.cart-box .close-box-btn,
.mobile-nav .close-box-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.ys-popup .close-box-btn img {
    width: 19px;
}

.ys-popup .logo {
    margin: 0 auto;
}

.ys-popup p label {
    font-weight: 700;
    font-size: 15px;
}

.ys-popup .title h1 {
    text-align: center;
    font-size: 21px;
    margin: 30px 0;
}

.ys-popup p {
    margin: 10px 0;
}

.login-box p.message {
    text-align: center;
    font-size: 14px;
    color: var(--message-color);
}

input,
select,
textarea {
    background: #fff;
    border: 0 none;
    border-radius: 12px;
    box-shadow: var(--shadow-first);
    padding: 10px 15px;
    font-family: irs;
    font-size: 15px;
    width: 100%;
    outline: 0;
}

input[type="checkbox"] {
    width: auto;
}

input[type="number"] {
    -moz-appearance: textfield;
    text-align: center;
    direction: ltr;
    border: 2px solid #313131;
}

input[type="email"] {
    direction: ltr;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.ys-popup p a {
    display: block;
    width: auto;
    margin: 0 auto;
    text-align: center;
}

.white-box {
    background: #fff;
    box-shadow: var(--shadow-first);
    border-radius: 14px;
}

.margin-right-auto {
    margin-right: auto;
}

.dashboard-menu h1 {
    font-size: 17px;
    text-align: center;
    border: 1px solid #B1B1B1;
    border-radius: 7px;
    padding: 7px;
}

.dashboard-menu ul li a {
    display: block;
    background: var(--secondery-color);
    color: #fff;
    padding: 7px;
    font-size: 14px;
    border-radius: 7px;
}

.dashboard-menu ul li a:hover {
    background-color: var(--primary-color);
}

h2.page-title {
    font-size: 18px;
}

.newjadval-form>.row {
    border: 1px solid #313131;
    padding: 14px;
    border-radius: 14px;
    background: #f7f7f7;
}

.newjadval-form>.row label {
    font-weight: 700;
    font-size: 15px;
}

.newjadval-form .category-type span,
.newjadval-form .level span {
    background: var(--secondery-color);
    color: #fff;
    padding: 7px;
    border-radius: 7px;
    cursor: pointer;
}

.newjadval-form .category-type span.active,
.newjadval-form .level span.active {
    background: var(--primary-color);
}

.newjadval-form .category-type li {
    background: #fff;
    border: 1px solid #ccc;
    padding: 7px;
    border-radius: 7px;
    color: #000;
    font-size: 15px;
    cursor: pointer;
}

.newjadval-form .category-type li.active {
    background: var(--primary-color);
    color: #fff;
}

.newjadval-form .words-count-input {
    width: 80px;
}

.newjadval-form .words-count a {
    width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 34px;
    border-radius: 4px;
    font-size: 30px;
    cursor: pointer;
}

.newjadval-form .special-words span.remove-row img {
    width: 20px;
    cursor: pointer;
}

.newjadval-form .special-words .add-word-row {
    width: 140px;
    text-align: center;
    font-size: 14px;
    margin: 0 auto;
}

.newjadval-form a.preview-btn {
    text-align: center;
}

.newjadval-form .category-type label i {
    font-style: normal;
    font-weight: 400;
    color: var(--message-color);
    font-size: 14px;
}

.newjadval-form .publish-date-time li {
    border: 1px solid #000;
    color: #000;
    font-size: 15px;
    padding: 4px 14px;
    border-radius: 7px;
    cursor: pointer;
}

img.arrow {
    width: 18px;
}

img.arrow.bottom {
    transform: rotate(-90deg);
}

.jadval-preview-box {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.jadval-preview-box .jadval,
.single-jadval-box .jadval {
    justify-content: center;
    border: 1px solid #313131;
}

.jadval-preview-box .jadval>ul,
.single-jadval-box .jadval>ul {
    border-bottom: 1px solid #313131;
    display: flex;
}

.jadval-preview-box .jadval>ul>li,
.single-jadval-box .jadval>ul>li {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #313131;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.jadval-preview-box .jadval>ul>li.empty,
.single-jadval-box .jadval>ul>li.empty {
    background: #000;
    border-color: #fff;
    color: transparent;
}

.jadval-preview-box .jadval>ul>li span.question-number,
.single-jadval-box .jadval>ul>li span.question-number {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    color: #000;
}

.jadval-questions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.jadval-questions .question {
    width: 50%;
    padding: 7px;
    font-size: 14px;
}

.jadval-questions .question a {
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    padding: 2px;
    border-radius: 4px;
}

.jadval-questions .question a.correct-answer {
    background: #0eab48;
}

.jadval-preview-box .jadval>ul>li input.jadval-input,
.single-jadval-box .jadval>ul>li input.jadval-input {
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: center;
    color: var(--primary-color);
}

.publish-date-time select {
    width: auto;
}

.auth-landing {
    height: 100%;
}

.auth-landing .col.banner {
    background-image: url(images/jadvalsaz-banner-1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.auth-landing h4 {
    font-size: 24px;
}

.auth-landing .content-box {
    width: 50%;
}

.back-home-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
}

.arrow {
    background: #fff;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.arrow.bottom-arrow {
    transform: rotate(-90deg);
}

.arrow.right-arrow {
    transform: rotate(180deg);
}

.auth-landing .content {
    box-shadow: var(--shadow-first);
    z-index: 2;
}

.content-section {
    padding: 40px 0;
}

.code-frame {
    background: #3f3f3f;
    padding: 14px;
    max-width: 500px;
    font-size: 14px;
    direction: ltr;
    color: #fff;
    border-radius: 4px;
}

.all-words-box .row {
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 4px;
    font-size: 14px;
}

.single-jadval-box h1 {
    text-align: center;
    font-size: 20px;
}

.single-jadval-box .questions .question {
    padding: 7px 0;
    font-size: 14px;
}

.single-jadval-box .questions .question .check-answer,
.single-jadval-box .questions .question a.correct-answer {
    background: var(--primary-color);
    color: #fff;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 4px;
}

.single-jadval-box .questions .question a.correct-answer {
    background: #0eab48;
}

.single-jadval-box .send-answers {
    display: block;
    width: 100%;
    text-align: center;
}
