/*=============== FONTS ===============*/
@font-face {
  font-family: "vazir";
  src: url(../font/Vazir.woff2) format(woff2);
}
/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Red): hsl(358, 80%, 49%)
         Purple: hsl(265, 80%, 49%) - Blue: hsl(220, 80%, 49%)
         Pink: hsl(330, 80%, 49%) - Green: hsl(162, 70%, 40%)
         Orange: hsl(14, 80%, 49%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 251;
  --first-color: hsl(var(--hue), 100%, 69%);
  --first-color-alt: hsl(29, 100%, 50%);
  --white-color: rgb(250, 250, 250);
  --black-color: hsl(0, 0%, 1%);
  --text-color: hsl(var(--hue), 2%, 66%);
  --body-color: #f3f2fd;
  /* hsl(var(--hue), 100%, 1%); */
  --container-color: hsl(0, 0%, 100%);
  --conic-gradient: conic-gradient(
  from 150deg at 50% 45%,
  hsl(253, 70%, 68%) 0deg,  /* معادل #715cee */
  hsl(253, 70%, 80%) 140deg, /* روشن‌تر */
  hsl(253, 70%, 68%) 360deg  /* بازگشت به رنگ اصلی */
);
  --text-color2: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "vazir";
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}


/*========== Responsive typography ==========*/
@media screen and (min-width: 1168px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

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

input,
button,
textarea {
  border: none;
  outline: none;
  /* add */
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

h1, h2,h4 {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1168px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 2rem 3rem;
}

.section_title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2rem;
  justify-self: center;
  color: var(--text-color2);
}

.main {
  overflow: hidden;
}

/*=============== NAV ===============*/
.nav {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background-color: hsla(251, 100%, 69%, 0.259);
  width: 88%;
  margin-inline: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2rem;
  border-radius: 4rem;
  z-index: var(--z-fixed);
}

.nav_list{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_link{
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .6s;
}

/* ضرب */
.ri-close-fill{
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
/* جمع */
.ri-add-line{
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  

}
/* تفریق */
.ri-subtract-line{
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;

}
/* تقسیم */
.ri-divide-line{
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  

}
.ri-send-plane-line{
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--first-color);
  
}

/* Active link */
.active-link{
  background-color: var(--first-color);
}

h1 {
    justify-self: center;
    padding: 2rem;
    color: black;
    font-size: 2.25rem;
}

.zcard{
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.zcard h2 {
  font-size: 1.5rem;
  color: black;
}

.zcard p {
    color: black;
}

.zcard span {
    display: flex;
    justify-content: left;
    white-space: normal;

}
p {
  text-align: justify;
}






@media screen and (min-width: 320px) {
  .container{
    margin: 1rem;
  }
  .nav{
    padding: 1rem;
  }
  .z5 h1 {
    font-size: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .nav {
    width: max-contents;
  }
    .container{
    margin: 2rem;
  }
  .nav_list{
    column-gap: 1.25rem;
  }}

  @media screen and (min-width: 1200px) {
  .container{
    margin-inline: auto;
  }

}
@media screen and (min-width:1500px) {
  .nav{
    width: max-content;
    height: max-content;
    padding: 2rem 1rem;
    left: initial;
    right: 3rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
  }
  .nav_list{
    flex-direction: column ;
    row-gap: 1.25rem;
  }

}