* {
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  background-color: #1e1e1e;
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  src: url("fonts/iransans/eot/IRANSansWeb(FaNum)_Medium.eot");
  src: url("fonts/iransans/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix") format("embedded-opentype"),
    url("fonts/iransans/woff2/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"),
    url("fonts/iransans/woff/IRANSansWeb(FaNum)_Medium.woff") format("woff"),
    url("fonts/iransans/ttf/IRANSansWeb(FaNum)_Medium.ttf") format("truetype");
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 400;
  src: url("fonts/iransans/eot/IRANSansWeb(FaNum).eot");
  src: url("fonts/iransans/eot/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"),
    url("fonts/iransans/woff2/IRANSansWeb(FaNum).woff2") format("woff2"),
    url("fonts/iransans/woff/IRANSansWeb(FaNum).woff") format("woff"),
    url("fonts/iransans/ttf/IRANSansWeb(FaNum).ttf") format("truetype");
}

body,
textarea,
input,
button,
select {
  font-family: IRANSans, Tahoma, "Times New Roman";
}

a {
  color: #5baee6;
  text-decoration: none;
}

a.show_output {
  font-family: IRANSans;
  position: absolute;
  bottom: 0;
  right: 0;
}

.rtl {
  direction: rtl;
}



button,
a.btn {
  border: 1px solid #797f7f;
  background: white;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  margin-top: 1rem;
  cursor: pointer;
  font-family: IRANSans, Tahoma, "Times New Roman";
}

.main_menu button {
  padding: 0.15rem 0.55rem;
  margin-top: 0;
  font-size: 0.8rem;
}

a.btn {
  color: black;
}

button:not(.btn):hover {
  background-color: #dddddd42;
}

select, input[type=number] {
  font-family: IRANSans, Tahoma, "Times New Roman";
  border: 1px solid #797f7f;
  background: #333333;
  padding: 0.1rem 0.3rem;
  border-radius: 6px;
  margin-top: 1rem;
  color: #ffffffbd;
}

.text-center {
  text-align: center;
}

.editor_title {
  height: 32px;
  width: 100%;
  background-color: #323030;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor_title h1 {
  font-size: 15px;
  text-align: center;
  color: white;
  font-weight: 500;
  direction: rtl;
}


.main_menu {
  background-color: #fafafa;
  height: 32px;
  width: 100%;
  align-items: center;
  justify-content: right;
  direction: rtl;
}

@media screen and (max-width: 540px) {
  .main_menu {
    height: 40px;
  }

  .editor_title h1 {
    font-size: 0.7rem;
    margin-bottom: 0;
  }
  .mobile_info_menu {
    height: 32px;
    width: 100%;
    align-items: center;
    justify-content: end;
    direction: rtl;
  }
  .mobile_info_menu ul {
    list-style-type: none;
    display: flex;
    padding-inline-start: 5px;
    margin-bottom: 0;
    justify-content: end;
  }
  .mobile_info_menu ul li .iconify{
    width: 23px;
    height: 23px;
    margin-left: 10px;
    color: #ffffffbd;
    stroke-width: 20px;
    stroke: #ffffff61;
  }
}

.main_menu nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.main_menu ul.main_list {
  list-style-type: none;
  display: flex;
  padding-inline-start: 5px;
  margin-bottom: 0;
}

.main_menu ul.main_list li {
  margin: 0 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.main_menu ul.main_list li .iconify{
  width: 23px;
  height: 23px;
}
.main_menu ul.main_list li img {
  width: 20px;
  vertical-align: middle;
}

.main_menu ul.main_list li.has_sub_menu ul {
  display: none;
  position: absolute;
  z-index: 8888;
  background: white;
  width: 250px;
  list-style-type: none;
  border-radius: 1px;
  border: 1px solid #afbaba;
}

.main_menu ul.main_list li.has_sub_menu ul li {
  margin: 0;
  padding: 0.2rem 1rem;
}

.main_menu ul.main_list li.has_sub_menu ul li:hover {
  background-color: #e6e8e8;
}

.main_wrapper {
  width: 100%;
  position: relative;
  display: flex;
  height: calc(100% - 92px);
  overflow: hidden;
}

@media screen and (max-width: 540px) {
  .main_wrapper {
    height: calc(100% - 74px);
  }
}

.vertical_menu {
  background-color: #333333;
  width: 50px;
  flex-direction: column;
  height: 100%;
}

.vertical_menu li {
  color: #797f7f;
  text-align: center;
  padding: 10px;
  padding-bottom: 2px;
}

.vertical_menu li .iconify {
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.vertical_menu li .iconify.iconify_pro {
  width: 15px;
  height: 15px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.vertical_menu li img {
  width: 90%;
  cursor: pointer;
}

.vertical_menu li.active {
  color: white;
  border-left: 1px solid white;
}

@media screen and (max-width: 768px) {
  .vertical_menu {
    padding-top: 0.5rem;
    width: 60px;
  }

  .vertical_menu li {
    padding: 6px;
  }
}

.left_side_bar {
  flex: 0 0 auto;
  background-color: #252526;
  flex-direction: column;
  color: #ffffffd7;
  display: block;
  overflow-y: auto;
  transition: width .35s ease;
  max-width: 300px;

}

.explorer_column {
  width: 100%;
}
.ad_container a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad_container img {
  width: 90%;
}

.explorer_column>p {
  padding-left: 22px;
}

.explorer_column a,
.explorer_column a:hover {
  color: inherit;
  text-decoration: none;
}

.explorer_column li {
  padding-left: 14px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 4px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.explorer_column li .iconify {
  width: 11px !important;
  height: 11px !important;
  vertical-align: middle;
}

.explorer_column li .number {
  font-family: monospace;
}

.explorer_column li:hover {
  background-color: #2a2d2e;
  white-space: normal;
}

.explorer_column li.active {
  background-color: #37373d;
  white-space: normal;
}

.explorer_file .trash {
  display: none;
  margin-left: 15px;
  margin-top: 3px;
  position: sticky;
  right: 6px;
  left: 90%;
}

.explorer_file:hover .trash,
.explorer_file.active .trash {
  display: inline;
}


#editor {
  position: relative;
  width: 100%;
  height: 100%;
}

.terminal_main {
  position: relative;
  flex: 1 1 auto;
  border-top: none;
  width: 100%;
  /* height: 300px; */
  border-top: 1px solid #606062;
  background-color: #1e1e1e;
}

.terminal_main .chatgpt_method_suggestions {
    position: absolute;
    width: 100%;
    top: -45px;
    height: 40px;
    overflow: hidden;
    background-color: #1c1c1c;
    display: none;
  }
  
.terminal_main .chatgpt_method_suggestions .questions{
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  transition: top 0.8s, align-items 5s;
  -moz-transition:top 0.8s, align-items 5s; /* Firefox 4 */
  -webkit-transition:top 0.8s, align-items 5s; /* Safari and Chrome */
  -o-transition:top 0.8s, align-items 5s;
  padding: 0 1rem;
  opacity: 0.8;
}
.terminal_main .chatgpt_method_suggestions p {
  margin: 0;
  line-height: 40px;
  text-align: right;
  direction: rtl;
  cursor: pointer;
  font-size: smaller;
  overflow-x: auto;
}

.terminal_main .chatgpt_method_suggestions p::-webkit-scrollbar {
  display: none;
}



.terminal_menus ul {
  padding: 0.7rem 0;
  list-style-type: none;
  display: flex;
  color: #c1dfdf;
}

.terminal_menus ul li {
  margin-left: 1rem;
  font-size: 13px;
  padding-bottom: 0.5rem;
  cursor: pointer;
}

.terminal_menus ul li.active {
  color: white;
  border-bottom: 1px solid white;
}

@media screen and (max-width: 540px) {
  .terminal_menus ul {
    padding: 0.4rem 0 0 0;
  }

  .terminal_menus ul li {
    font-size: 9px;
  }
}

.terminal_container {
  padding: 0;
  color: #b0b9b9;
  height: calc(100% - 4rem);
}

.main_dividers {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  background-color: #1e1e1e;
}

.tab_content {
  display: flex;
  flex-direction: row;
  position: relative;
  background-color: #1e1e1e;
}

.right_sidebar {
  background-color: #1e1e1e;
  padding-right: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  z-index: 9;
}

.xterm .xterm-screen {
  position: relative;
  overflow-x: auto;
  width: 100% !important;
}

.right_sidebar #rightbarAccordion img {
  max-width: 95%;
  margin: 0.4rem auto;
}

.right_sidebar #rightbarAccordion :not(pre) br {
  display: block;
  content: "";
}
.right_sidebar .accordion-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

.compiler_splitter,
.explorer_divider {
  flex: 0 0 auto;
  width: 4px;
  background: #323030;
  min-height: 200px;
  cursor: ew-resize;
  z-index: 999;
}

.modal-open .explorer_divider, .modal-open .compiler_splitter {
  z-index: 0;
}

.accordion-collapse pre {
  white-space: pre-line !important;
}

#editor0 {
  /* resize: horizontal; */
  overflow: hidden;
}

#output {
  /* height: 300px; */
  padding: 0 0.8rem;
}

#input {
  height: 120px;
}

#input textarea {
  width: 100%;
  background: inherit;
  border: none;
  height: 100%;
  color: white;
  padding: 1rem;
}

#input textarea:focus {
  outline: none;
}

.main_content {
  flex: auto;
  background-color: #1e1e1e;
  flex-direction: column;
  /* height: calc(100% - 60px); */
  position: relative;
  color: white;
  /* padding: 25px 0; */
}

.compiler {
  flex: 0 0 auto;
  white-space: nowrap;
  background-color: #1e1e1e;
  flex-direction: column;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main_dividers {
  width: 100%;
}

.main_content .locked_practice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  direction: rtl;
}

.code_area {
  flex: 0 0 auto;
  min-height: 200px;
  max-height: 600px;
  overflow-y: hidden;
  width: 100%;
  position: relative;
}

.editors {
  height: 100%;
}

.tabs {
  display: -webkit-box;
  height: 35px;
  background-color: #252526;
  overflow-x: auto;
  padding-right: 300px;
  overflow-y: hidden;
  /* scrollbar-width: thin; */
}

.tabs::-webkit-scrollbar {
  display: none;
  height: 6px;
}

.tabs:hover::-webkit-scrollbar {
  display: block;
}

/* Track */
.tabs::-webkit-scrollbar-track {
  background: #2D2D2D;
}

/* Handle */
.tabs::-webkit-scrollbar-thumb {
  background: #525252;
}

/* Handle on hover */
.tabs::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

.tabs::-webkit-scrollbar-track-piece {
  background: transparent;
}

.tabs .tab {
  display: flex;
  font-size: 13px;
  align-items: center;
  padding-right: 5px;
  padding-left: 10px;
  opacity: 0.9;
  background-color: #2D2D2D;
  cursor: pointer;
  justify-content: space-between;
  min-width: 100px;
  color: white;
  border-right: 1px solid #1e1e1e;
}

.tabs:hover .tab {
  margin-bottom: -6px;
}

.tab.new_tab {
  min-width: 30px;
  width: 30px;
}

.tab.active {
  background-color: #1E1E1E;
}

.tabs .tab i {
  margin-left: 7px;
}

#new_tab_content {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #1e1e1e;
  padding: 2rem;
}

.code_area_divider {
  flex: 0 0 auto;
  height: 4px;
  background: #323030;
  cursor: ns-resize;
}

.compiler_splitter:hover,
.code_area_divider:hover {
  background-color: #5b5b6c;
  border-radius: 5px;
}


.align-left {
  text-align: left;
}

.ltr {
  direction: ltr;
}

.xterm {
  height: 100%;
}

.functions {
  background-color: #4343ff;
}

#compiler_guide {
  text-align: justify;
  flex-basis: min-content;
  max-width: calc(100% - 122px);
}

.content_wrapper {
  overflow-y: auto;
  height: 95%;
}

.content_wrapper h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0.6rem;
  direction: rtl;
}

.content_wrapper p {
  margin-bottom: 1.3rem;
  direction: rtl;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.content_wrapper::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.content_wrapper {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.mobile-show {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .main_content {
    padding: 1rem;
  }

  #compiler_guide {
    max-width: calc(100% - 62px);
  }

  .content_wrapper h2 {
    font-weight: 500;
    font-size: 17px;
    margin-bottom: 0.5rem;
  }

  .content_wrapper p {
    font-size: 14px;
    margin-bottom: 0.8rem;
    line-height: 22px;
  }

  .terminal {
    height: 0;
  }

  .mobile-full-height {
    height: 100%;
    top: 64px;
    position: fixed;
  }

  .mobile-show {
    display: block !important;
  }

  .mobile-hide {
    display: none !important;
  }
}



.bottom_bar {
  height: 28px;
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: #007acc;
}

.bottom_bar_menus {
  color: #fff;
  height: 100%;
  align-items: center;
  direction: rtl;
  padding: 0 0.5rem;
}

.bottom_bar_menus nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.bottom_bar_menus ul {
  list-style-type: none;
  display: flex;
  color: white;
  cursor: pointer;
}

.bottom_bar_menus ul li {
  padding: 0 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: white;
}

.bottom_bar_menus ul li:hover {
  background-color: #ffffff22;
}

.hide_in_right {
  position: absolute !important;
  right: -200rem;
}

.text-white {
  color: white;
}

.popover {
  display: none;
  position: absolute;
  z-index: 999999;
  left: 0px;
  background: white;
  padding: 1rem;
  border: 1px solid #afbaba;
  border-radius: 2px;
  color: black;
}

.bottom_bar_menus .popover {
  bottom: 28px;
}

.backdrop {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.5;
  z-index: 9999;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
}


.modal-header {
  background: #252526;
  padding: 1rem;
  margin-bottom: 1rem;
  color: white;
  border-top-right-radius: 0.2rem;
  border-top-left-radius: 0.2rem;
}

.modal-body {
  padding: 1rem;
  text-align: right;
  direction: rtl;
  margin: 0 2rem;
}

@media (max-width: 576px) {
  .modal{
    margin-top: 2rem;
  }
  .modal-body {
    margin: 0;
  }
}

/* bootstrap */

.d-none {
  display: none !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-block {
  display: block !important;
}

.d-table {
  display: table !important;
}

.d-table-row {
  display: table-row !important;
}

.d-table-cell {
  display: table-cell !important;
}

.d-flex {
  display: -ms-flexbox !important;
  display: flex !important;
}

.d-inline-flex {
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
}

@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-inline {
    display: inline !important;
  }

  .d-sm-inline-block {
    display: inline-block !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-table {
    display: table !important;
  }

  .d-sm-table-row {
    display: table-row !important;
  }

  .d-sm-table-cell {
    display: table-cell !important;
  }

  .d-sm-flex {
    display: -ms-flexbox !important;
    display: flex !important;
  }

  .d-sm-inline-flex {
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-inline-block {
    display: inline-block !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-table {
    display: table !important;
  }

  .d-md-table-row {
    display: table-row !important;
  }

  .d-md-table-cell {
    display: table-cell !important;
  }

  .d-md-flex {
    display: -ms-flexbox !important;
    display: flex !important;
  }

  .d-md-inline-flex {
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-inline-block {
    display: inline-block !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-table {
    display: table !important;
  }

  .d-lg-table-row {
    display: table-row !important;
  }

  .d-lg-table-cell {
    display: table-cell !important;
  }

  .d-lg-flex {
    display: -ms-flexbox !important;
    display: flex !important;
  }

  .d-lg-inline-flex {
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-inline {
    display: inline !important;
  }

  .d-xl-inline-block {
    display: inline-block !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-table {
    display: table !important;
  }

  .d-xl-table-row {
    display: table-row !important;
  }

  .d-xl-table-cell {
    display: table-cell !important;
  }

  .d-xl-flex {
    display: -ms-flexbox !important;
    display: flex !important;
  }

  .d-xl-inline-flex {
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}

@media print {
  .d-print-none {
    display: none !important;
  }

  .d-print-inline {
    display: inline !important;
  }

  .d-print-inline-block {
    display: inline-block !important;
  }

  .d-print-block {
    display: block !important;
  }

  .d-print-table {
    display: table !important;
  }

  .d-print-table-row {
    display: table-row !important;
  }

  .d-print-table-cell {
    display: table-cell !important;
  }

  .d-print-flex {
    display: -ms-flexbox !important;
    display: flex !important;
  }

  .d-print-inline-flex {
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}

button.accordion-button {
  width: 100%;
  border: none;
  border-radius: 0;
  color: #ffffffbd;
  direction: rtl;
  background: #333333;
  margin: 0;
  font-size: initial;
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffffbd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1rem;
  transition: transform .2s ease-in-out;
  display: inline-block;
  float: left;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffffbd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

.fade {
  transition: none
}

.fade:not(.show) {
  opacity: 0
}

.collapse:not(.show) {
  display: none
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height .35s ease
}

.accordion-collapse {
  direction: rtl;
  text-align: right;
  color: #ffffffbd;
  padding: 1rem;
}

.accordion-body {
  overflow-y: auto;
  /* scrollbar-width: thin; */
}

/* width */
.accordion-body::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.accordion-body::-webkit-scrollbar-track {
  background: #1e1e1e;
}

/* Handle */
.accordion-body::-webkit-scrollbar-thumb {
  background: #333333;
}

/* Handle on hover */
.accordion-body::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* width */
* {
  /* scrollbar-width: thin; */
}
*::-webkit-scrollbar {
  width: 6px;
  height: 10px;
}

/* Track */
*::-webkit-scrollbar-track {
  background: #1e1e1e;
}

/* Handle */
*::-webkit-scrollbar-thumb {
  background: #333333;
  border: 1px solid #282828;
}

/* Handle on hover */
*::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

pre {
  background: #2d2d2d;
  color: #ccc !important;
  margin: 0.6rem;
  direction: ltr;
  text-align: left;
  padding: 1rem;
  line-height: 1.5rem;
  font-size: 15px;
  position: relative;
}

.bottom_bar_menus ul {
  margin-bottom: 0;
}

.editor_title p {
  margin-bottom: 0;
}


.overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease-out;
}


.side-cat-menu {
  position: fixed;
  height: 100%;
  right: -100%;
  bottom: 0;
  top: 0;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  background-color: #fff;
  z-index: 999;
  transition: all 200ms ease-out;
}

.side-cat-menu .list-inline .menu-item {
  display: block;
  margin-right: 0;
}

.side-cat-menu .list-inline .menu-item .nav-link {
  padding: 0.35rem 0.75rem;
}

.side-cat-menu .list-inline .menu-item .cat-icon {
  color: #979898;
  font-size: 18px;
  width: 26px;
  display: inline-block;
  position: relative;
  top: 2px;
}

.side-cat-menu .list-inline .menu-item .sub-menu {
  display: none;
  padding-right: 24px;
}

.side-cat-menu .list-inline .menu-item-has-children>.nav-link {
  position: relative;
}

.side-cat-menu .list-inline .menu-item-has-children>.nav-link .mdi-plus {
  position: absolute;
  left: 5px;
  top: 12px;
  width: 25px;
  height: 25px;
  font-size: 24px;
  z-index: 2;
  color: #979898;
}

.side-cat-menu .list-inline .menu-item-has-children.open>a>.mdi-plus:before {
  content: '\f374';
}

.side-cat-menu .list-inline .menu-item-has-children.open>.sub-menu {
  display: block;
}

@media (max-width: 992px) {
  .side-cat-menu .list-inline .menu-item-search-form {
    display: none !important;
  }

  .side-cat-menu .list-inline .menu-item-logo {
    display: none !important;
  }
}

.side-cat-menu .list-inline>.menu-item-has-children>.sub-menu {
  background-color: #f8f9fa;
  box-shadow: inset 0 5px 4px -4px rgba(0, 0, 0, 0.06), inset 0 -5px 4px -4px rgba(0, 0, 0, 0.06);
}

body.show-side-cat-menu .overlay {
  opacity: 1;
  visibility: visible;
}

body.show-side-cat-menu .side-cat-menu {
  right: 0;
}


.side-cat-menu #menu-cat-menu .menu-item a {
  color: #494a4a;
}

.side-cat-menu .list-inline .menu-item .cat-icon {
  color: #494a4a;
}

.side-cat-menu .list-inline .menu-item-has-children>.nav-link .mdi-plus {
  color: #494a4a;
}

.side-cat-menu .search-form .form-control {
  color: #494a4a;
}

.side-cat-menu {
  background-color: #ffffff;
}

.side-cat-menu .search-form .form-control {
  background-color: #ffffff;
}

.side-cat-menu .list-inline>.menu-item-has-children>.sub-menu {
  background-color: #ebebeb;
}


.clickable-row {
  cursor: pointer;
}

.user_avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  margin-left: 8px;
  object-fit: cover;
}


/* .right_sidebar .tab-content .tab-pane {
  height: 100%;
} */

.help_with_code,
.chatgpt_box {
  color: white;
  direction: rtl;
  text-align: center;
  height: 100%;
  position: relative
}

.help_with_code .send_msg {
  position: relative;
  bottom: 1rem;
  width: 100%;
}

.help_with_code input[name=msg] {
  background: #333333;
  color: white;
  border-radius: 0;
  font-size: 14px;
}

.help_with_code input[name=msg]:disabled {
  background-color: #333;
  cursor: not-allowed;
}

.help_with_code input[name=msg]:focus {
  background: #333333;
  color: white;
  outline: 0;
  box-shadow: none;
  border-color: #f5f5f5;
}

.help_with_code span.help_msg,
.chatgpt_box span.help_msg {
  border-radius: 0;
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
  cursor: pointer;
}

.help_with_code .msgs,
.chatgpt_box .msgs {
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 410px;
  padding-bottom: 1rem;
  /* white-space: pre-line !important; */
}
/* .chatgpt_box .msgs {
  height: calc(100% - 135px);
} */

.chatgpt_box .msgs ol {
  margin-right: 20px;
}

.chatgpt_box .msgs pre {
  white-space: pre-line !important;
  padding-top: 1.8em;
}


.chatgpt_box .msgs div.code-toolbar>.toolbar {
  left: .7em;
  right: auto;
  opacity: 1;
}

.chatgpt_box .msgs div.code-toolbar>.toolbar>.toolbar-item>button {
  font-size: 1em;
}

.chatgpt_box .gpt_ready_msgs {
  height: 30px;
  display: flex;
  flex-direction: row-reverse;
  margin: 5px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.chatgpt_box .gpt_ready_msgs>div {
  display: flex;
  flex-direction: row-reverse;
}

.chatgpt_box .gpt_ready_msgs button {
  background: none;
  border: none;
  color: white;
  padding: 0 7px;
  margin-top: 0;
}

.chatgpt_box .gpt_ready_msgs button .iconify {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  opacity: 0.5;
}
@media screen and (max-width: 1370px) {
  .chatgpt_box .gpt_ready_msgs button .iconify {
    width: 22px;
    height: 22px;
  }
}
.chatgpt_box .gpt_ready_msgs button.include_code .iconify {
  width: 20px;
  height: 20px;
}

.chatgpt_box .gpt_ready_msgs button:hover, .chatgpt_box .gpt_ready_msgs button.include_code.active {
  background-color: #dddddd42;
}
.chatgpt_box .gpt_ready_msgs button.include_code:focus {
  background: none;
}
.chatgpt_box .gpt_ready_msgs button.include_code.active:focus {
  background-color: #dddddd42;
}

.help_with_code .msg_box,
.chatgpt_box .msg_box {
  border: 1px solid #333333;
  background-color: #333333;
  text-align: right;
  direction: rtl;
  max-width: 90%;
  min-width: 30%;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.5rem;
  font-size: 13px;
  border-radius: 4px;
}

.help_with_code .msg_box  ol,
.chatgpt_box .msg_box ol, 
.help_with_code .msg_box ul,
.chatgpt_box .msg_box ul {
  padding-right: 1rem;
}

.msg_box h1, .msg_box h2 {
  font-size: 1rem;
}
.msg_box h3, .msg_box h4 {
  font-size: 0.8rem;
}
.msg_box strong {
  font-weight: 500;
}
.msg_box code {
  color: #ccc;
  background: #515151;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 1em;
  line-height: 2;
  hyphens: none;
  padding: 0.2em;
}
@media screen and (max-width: 1500px) {
  .help_with_code .msg_box,
  .chatgpt_box .msg_box {
    max-width: 90%;
  }
}

.help_with_code .msg_box.me,
.chatgpt_box .msg_box.me {
  margin-left: auto;
  background-color: #dcdcdc;
  color: #1e1e1e;
}

.help_with_code .msg_box i,
.chatgpt_box .msg_box i {
  position: sticky;
  left: 5px;
  bottom: 5px;
  opacity: 0.8;
  color: #333333;
  float: left;
}

.help_with_code .msg_box.you,
.chatgpt_box .msg_box.you {
  margin-right: auto;
}

.chatgpt_custom_msg textarea{
  border: none;
    height: 53px;
    border-radius: 0;
    font-size: 13px;
    background: #393939;
    color: #fafafa;
}
@media screen and (max-width: 600px) {
  .chatgpt_custom_msg textarea{
      height: 41px;
  }
}
.chatgpt_custom_msg textarea:focus{
    background: #393939;
    color: #fafafa;
}
.send_chatgpt_custom_msg {
  cursor: pointer;
  background: #1e1e1e;
    color: #dbdbdb;
    border: 1px solid #333333;
}

.sample_question_boxes {
  display: flex;
  gap: 3px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sample_question_boxes p {
  cursor: pointer;
  border-radius: 14px;
  background: #393939;
  padding: 7px;
  font-size: 14px;
  width: 90%;
}

@media screen and (max-width: 1500px) and (min-width: 1200px) {
  body {
    font-size: smaller;
  }
  .sample_question_boxes {
    gap: 0px;
  }
  .sample_question_boxes p {
    font-size: 12px;
  }
}


.help_with_code .ready_msgs {
  display: flex;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  
  /* scrollbar-width: thin; */
}

.help_with_code .ready_msgs::-webkit-scrollbar {
  width: 5px;
}

.help_with_code .ready_msg,
.chatgpt_box .ready_msg {
  padding: 0.3rem 0.5rem;
  background-color: #f5f5f5;
  border-radius: 5px;
  margin-left: 0.2rem;
  cursor: pointer;
  font-size: 12px;
  color: #333;
}

.help_with_code .help_nav {
  display: flex;
  justify-content: flex-end;
  padding: 5px;
  border-bottom: 1px solid #333;
}

.chatgpt_box .chatgpt_box_nav {
    display: flex;
    justify-content: start;
    align-items: baseline;
    padding: 7px;
    border-bottom: 1px solid #333;
    direction: ltr;
    text-align: left;
    flex-flow: wrap;
    font-size: smaller;
    height: 50px;
}
.chatgpt_box .gpt_ready_msgs_box {
  height: 95px;
}

.chatgpt_box .chatgpt_box_nav span {
  margin-right: 0.5rem;
}

@media screen and (max-width: 560px) {
  .chatgpt_box .chatgpt_box_nav span {
    font-size: 12px;
  }
  .msgs .help_intro_msg {
    font-size: 14px;
  }
  .help_with_code .msgs {
    height: 90%;
  }
}

.help_with_code .help_nav span,
.chatgpt_box .chatgpt_box_nav span {
  height: 20px;
}

#help-tab .badge.badge-danger {
  position: absolute;
  top: 0
}

.help_with_code .not_vip_alert,
.chatgpt_box .not_vip_alert, .chatgpt_box .please_wait {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  background: #3333337d;
  z-index: 9;
}

.right_sidebar_chatgpt {
  height: 100%;
}

.gpt_ready_msgs_box .select2-container {
  width: 95% !important;

}

.select2-results__option {
  font-size: 12px;
}
.select2-results__option[aria-selected] {
  direction: rtl;
  text-align: right;
}


.gpt_ready_msgs_box .select2-selection.select2-selection--single {
  height: 35px;
}

.gpt_ready_msgs_box .select2-selection--single .select2-selection__arrow {
  display: none;
}

.chatgpt_suggestion {
  position: absolute;
  bottom: 15px;
  right: 22px;
  padding: 0.2rem 1rem;
  background: #2d2d2d;
  color: #ffffffbd;
  cursor: pointer;
  z-index: 9;
}

.video_detail_modal .modal-content {
  background-color: #333333;
}

.cursor-pointer {
  cursor: pointer;
}


.right_sidebar_video .video_sidebar {
  text-align: right;
  direction: rtl;
  padding: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: smaller !important;
  position: relative;
}

.right_sidebar_video .accordion-collapse {
  padding: 0;
}

@media screen and (max-width: 560px) {
  .right_sidebar_video .accordion-collapse {
    padding: 0.2rem;
  }
}
.right_sidebar_video .accordion-body .form-control {
  background-color: #1e1e1e;
  color: #ffffffdd;
}

.right_sidebar_video .accordion-body {
  max-height: none;
  overflow-y: visible;

}

.right_sidebar_video button.audio_track_btn:not(.btn):hover {
  background-color: #ddd;
}

.right_sidebar_video .video_bottom_fields {
  width: 100%;
  position: sticky;
  bottom: 0;
}

.right_sidebar_video .request_video_btn {
  width: 100%;
}

.right_sidebar_video .more_settings {
  text-align: center;
  margin-top: 10px;
  color: #6eb4ff;
  cursor: pointer;
}

.notification_slide_up {
  position: absolute;
  bottom: 10px;
  right: 120px;
  border: 1px solid #b2b2b2;
  border-radius: 5px;
  padding: 1rem;
  width: 280px;
  background: white;
  direction: rtl;
  text-align: right;
  z-index: 99;
  font-size: 15px;
  padding-top: 35px;
}

@media screen and (max-width: 680px) {
  .notification_slide_up {
    width: 90%;
    right: 5%;
    left: 5%;
  }
}

.notification_slide_up .close {
  content: 'X';
  position: absolute;
  top: 10px;
  cursor: pointer;
  font-weight: 400;
  font-size: 20px;
}


.membership_features .card {
  text-align: center;
  padding: 1rem;
  margin: 0.7%;
  width: 48%;
  font-size: 14px;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.membership_features svg.iconify {
  width: 45px;
  height: 45px;
  color: #6c757d;
}

#videoForm label {
  font-size: smaller;
}

.video_card {
  padding: 0.5rem;
  width: 85%;
  text-align: center;
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  direction: ltr;
  line-height: 30px;
}

@media screen and (max-width: 564px) {
  .video_card {
      width: 100%;
      padding: 0;
  }

  .video_card>div:first-of-type {
      margin-top: -1rem;
  }
}

.video_card.selected {
  background-color: #f0f0f0;
  color: #333333;
}

.video_radio {
  visibility: hidden;
}

.dropdown_audio_track {
  position: relative;
}

.audio_track_dropdown_menu {
  position: relative;
  direction: ltr;
  text-align: left;
  background-color: white;
  color: #333;
  padding: 20px;
  display: none;
  border-radius: 10px;
  border: 1px solid #cacaca;
}

.audio_track_dropdown_menu>div {
  margin-bottom: 1rem;
}

.audio_track_dropdown_menu audio {
  width: 100%;
}

.popover {
  font-family: IRANSans, Tahoma, "Times New Roman";
  text-align: center;
  font-size: smaller;
  direction: rtl;
}
.popover.show {
  display: block;
}
div.code-toolbar>.toolbar {
  left: .2em;
  right: auto;
}
.copy-to-clipboard-button {
  margin-top: 0;
}

.welcome {
  padding: 2rem;
  direction: rtl;
  color: white;
}
.welcome h2, .welcome h3 {
  font-weight: 200;
  margin-bottom: 2rem;
}

.welcome select {
  border: 1px solid #797f7f;
  background: #333333;
  color: white;
  padding: 0.5rem 1rem;
  width: 200px;
}
.welcome button {
  background: #333333;
  color: white;
}
.welcome {
  display: flex;
  justify-content: space-around;
}

.welcome .features ul {
  list-style-type: none;
}
.welcome .features li {
  padding: 0.5rem 1.5rem;
  background: #252526;
  border-radius: 10px;
  margin-bottom: 7px;
}

.pulsate {
  -webkit-animation: pulsate 0.2s ease-out;
  animation: pulsate 0.2s ease-out;
  opacity: 1.0;
  transform: scale(1);
  display: inline-block;
}

@-webkit-keyframes pulsate {
  0% {
      opacity: 1.0;
      -webkit-transform: scale(1.0);
      transform: scale(1.0);
  }

  100% {
      opacity: 1.0;
      -webkit-transform: scale(1.3);
      transform: scale(1.3);
  }
}

.nav-tabs {
  border-bottom: none;
}

button.nav-link {
  margin: 0 !important;
  background: inherit;
  font-size: 13px;
  color: #fff;
  border: none !important;
  background-color: #333 !important;
  border-radius: 0;
}

.nav-tabs .nav-link:hover {
  text-decoration: underline;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  border: none !important;
  outline: none;
  border-radius: 0;

}

button.nav-link.active {
  background-color: #1e1e1e !important;
  color: white !important;
  /* border: none !important; */
  border-radius: 0;
}

.save_result .test_result {
  margin-bottom: -1rem;
}

.wrong_test_help {
  background-color: #333;
}