@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
	font-family: Vazirmatn !important;
	font-weight: normal;
	direction: rtl !important;
}
h1, h2, h3, h4, h5, h6, input, textarea, p, div {
	font-family:  Vazirmatn !important;
	direction: rtl !important;
	text-align: justify !important;
}
h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
}



.tab-10 {
	margin-right: 10px;
}

.tab-20 {
	margin-right: 20px;
}

.tab-50 {
	margin-right: 50px;
}

.tab-100 {
	margin-right: 100px;
}

table tr:nth-child(even) { background-color: #f2f2f2; }
table tr:nth-child(odd)  { background-color: #ffffff; }

.wrapper {
	max-width: 900px;
	margin: 0 auto;
}
.ltr {
	direction: ltr;
}
.rtl {
	direction: rtl;
}
.text-right {
	text-align: right;
}
.text-center {
	text-align: center;
}
.text-left {
	text-align: left;
}
.text-small {
	font-size: 0.8em;
}
.text-xsmall {
	font-size: 0.6em;
}
.text-large {
	font-size: 1.2em;
}
.text-xlarge {
	font-size: 1.4em;
}
.text-underline {
	text-decoration: underline;
}
.text-ultralight {
	font-weight: 200;
}
.text-light {
	font-weight: 300;
}
.text-regular {
	font-weight: normal;
}
.text-medium {
	font-weight: 500;
}
.text-bold {
	font-weight: bold;
}
.text-black {
	font-weight: 900;
}
blockquote {
	font-weight: 500;
	padding: 10px;
	border: 1px dashed #666666;
}

.mainbox {
	width: 100%;
	background-color: #EFEFEF;
	display: table;
	margin-bottom: 30px;
	border-right: 8px solid #FFFF33;
}

.mainboxnegativ {
	width: 100%;
	background-color: #000000;
	display: table;
	margin-bottom: 30px;
	border-right: 8px solid #FFFF33;
	color: #F9F9F9;
}

.mainbox2 {
	font-size: 1em;
	width: 90%;
	padding-right: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.mainbox3 {
	width: 100%;
	background-color: #b8b8b8;
	display: table;
	margin-bottom: 30px;
	border-right: 8px solid #bd70ff;
}

.mainbox2negativ {
	font-size: 1em;
	color: #F9F9F9;
	background-color: #000000;
	padding-right: 20px;
}

.farsiparagraph {
	font-size: 1em;
	width: 47%;
	float:right;
	padding-right: 20px;
	padding-top: 10px;
	padding-bottom: 10px;

}
.englishparagraph {
	font-size: 1em;
	width: 47%;
	float: left;
	direction:ltr;
	padding-left: 20px;
	padding-top: 10px;
	padding-bottom: 10px;


}
.rightbox {
	width: 60%;
	padding-right: 20px;
	padding-left: 5px;
	float: right;
	margin-left: 10px;
	margin-bottom: 0px;
	min-width: 0px;
	background-color: #F7F7F7;

}

.titlebox {
	width: 60%;
	padding-right: 25px;
	padding-left: 0px;
	float: right;
	margin-left: 10px;
	margin-bottom: 0px;
	min-width: 0px;
	background-color: #F2F2F2;
	color: #4B4B4B;
}


.leftbox {
	padding-right: 20px;
	padding-left: 4px;
	float: right;
	margin-bottom: 10px;
	min-width: 0px;
}

.alphabet {
	width: 35%;
	float: left;
	font-size: 21em;
	text-align: center;
	font-weight: 500;
	color: #999999;
}

.alphabet2 {
	width: 35%;
	float: left;
	direction: ltr;
	font-size: 1.6em;
	text-align: left;
	font-weight: 500;
	color: #333333;
	margin-top: 100px;
}

.footer {
	font-weight: 300;
	font-size: 0.7em;
	text-align: center;
	direction: rtl;
	margin-bottom: 0px;
	padding-bottom: 0px;
}


caption, p.caption, .table-caption, .figure-caption {
    text-align: justify;
}

/* header -------------------------------------------------------*/
.pull-left {
    float: right !important;
}

.pull-right {
    float: left !important;
}

.pull-right>.dropdown-menu {
    right: auto;
    left: 0;
}

.dropdown-menu.dropdown-left .dropdown-caret {
    right: auto;
    left: 14px;
}

.dropdown-menu {
    right: 0;
    left: auto;
    float: right;
    text-align: right;
}

.dropdown-menu .dropdown-caret {
    right: 14px;
    left: auto;
    float: right;
}

/* footer --------------------------------------------------------*/
.nav-footer-left {
    flex: 1 1 0px;
    text-align: left;
}

.nav-footer-right {
    flex: 1 1 0px;
    text-align: right;
}
/* .book summary ------------------------------------------------*/
.lightable-classic caption {
    font-family: Vazirmatn !important;
    
}

/* footnote ------------------------------------------------------*/

.book .book-body .page-wrapper .page-inner section.normal ol,.page-wrapper .page-inner section.normal ul {
    padding: 0 2em 0 0;
    margin: 0 0 .85em;
}

/* crossreference ---------------------------------- */
.panel-caption, .figure-caption, figcaption {
    color: #373a3c;
}

/* pre, code ----------------------------------------------------*/

pre, code {
    text-align: left !important;
    direction: ltr !important;
}

/* Popup --------------------------------------------------------*/
/* Popup container - can be anything you want */
.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* The actual popup */
.popup .popuptext {
    visibility: hidden;
    min-width: 50px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px  5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 10px;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* csl ---------------------------------------- */
div.csl-left-margin {
	min-width: 2em;
    float: right;
}

div.csl-right-inline {
    margin-right: 2em;
    padding-right: 1em;
    margin-left: 0;
    padding-left: 0;
}

/* Katex -------------------------------------------- */

.katex {
    direction: ltr;
}

math {
	font-family: Vazirmatn;
	font-size: medium;
}

/* Mermaid -----------------------------------------  */

.pieTitleText, .slice, .legend, .nodeLabel, .edgeLabel, .sectionTitle, text {
    font-family: Vazirmatn !important;
}

.sectionTitle {
	text-anchor: end !important;
}

.navbar #quarto-search {
    margin-right: auto;
    margin-left: 0;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-figure {
  flex: 1 1 350px;
  max-width: 350px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-figure:hover {
  transform: translateY(-5px);
}

.gallery-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* styles.css */
/* Responsive card button styles */
.card-button-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  margin: 0.5rem 0;
}

/* Button sizes */
.card-button-link.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.card-button-link.medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.card-button-link.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button colors */
.card-button-link.primary {
  background-color: #007bff;
  color: white;
}

.card-button-link.secondary {
  background-color: #6c757d;
  color: white;
}

.card-button-link.success {
  background-color: #28a745;
  color: white;
}

.card-button-link.danger {
  background-color: #dc3545;
  color: white;
}

.card-button-link.warning {
  background-color: #ffc107;
  color: #212529;
}

.card-button-link.info {
  background-color: #17a2b8;
  color: white;
}

.card-button-link.light {
  background-color: #f8f9fa;
  color: #212529;
}

.card-button-link.dark {
  background-color: #343a40;
  color: white;
}

/* Hover effects */
.card-button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
}

.card-button-link:active {
  transform: translateY(0);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .card-button-link {
    width: 100%;
    margin: 0.25rem 0;
    padding: 0.75rem 1rem;
  }
  
  .card-button-link.small {
    padding: 0.5rem 1rem;
  }
  
  .card-button-link.medium {
    padding: 0.75rem 1rem;
  }
  
  .card-button-link.large {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .card-button-link {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
}

/* Icon styling */
.card-button-link i {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.card-button-link i:first-child {
  margin-left: 0;
}

.card-button-link i:last-child {
  margin-right: 0;
}

/* Responsive grid layout for multiple buttons */
.card-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card-button-grid .card-button-link {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 250px;
}

/* Alignment options */
.card-button-center {
  text-align: center;
}

.card-button-right {
  text-align: right;
}

.card-button-left {
  text-align: left;
}

/* Button with full width */
.card-button-full {
  display: block;
  width: 100%;
}

/* footer.css */
.quarto-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-inner {
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-inner h5 {
  color: #343a40;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-inner .list-unstyled {
  padding-right: 0;
  list-style: none;
}

.footer-inner .list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer-inner .list-unstyled li a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-inner .list-unstyled li a:hover {
  color: #007bff;
}

.social-links a {
  display: inline-block;
  margin-left: 1rem;
  color: #6c757d;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  color: #007bff;
}

.footer-inner hr {
  margin: 1.5rem 0;
  border-top: 1px solid #dee2e6;
}

.footer-inner .text-center {
  color: #6c757d;
}

/* Responsive footer */
@media (max-width: 768px) {
  .quarto-footer {
    padding: 1.5rem 0;
  }
  
  .footer-inner .col-md-4 {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .social-links {
    text-align: center;
  }
}
