@font-face {
  font-family: "vazir";
  src: url("fonts/vazir-font-v16.1.0/Vazir-Medium.woff") format("truetype");
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Vazir";
  line-height: 1.6rem;

}

:root {
  --main-bg-color: #B9D7EA;
  --main-body-color: #D6E6F2;
  --body-items-color: #769FCD;
  --a-color: #03045e;
  --text-color-w: #fff;
  --form-color: #84bcd266;

}
html{
  background: #F7FBFC;
}
/* heder  */

.container {
  width: 1080px;
  padding: 0 10px;
  margin: 0 auto;
}
#container{
  display: flex;
  justify-content: center;
  align-items: flex-start;  

}
.navbar {
  height: 100px;
  background: var(--main-bg-color);
  border-radius: 15px;
  position: fixed;
  top: 0;
  z-index: 99;
  overflow: hidden;
}

.flex-center {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}

.d-flex {
  display: flex;

}

.menu {}

.header {}

.logo-image {
  width: 200px;
  overflow: hidden;

}

a {
  text-decoration: none;
  color: #000;
  text-wrap: nowrap;
}


a:hover{
  color: 0077b6;
}

li {
  padding: 0 13px;
  list-style: none;
}

.menu-li_link {
  display: inline-block;
  height: 40px;
  line-height: 40px;
}



/* body */
.d-inline-block {
  display: inline-block;
}

.text-ac {
  text-align: center;
}

.border-r10 {
  border-radius: 10px;
}

.main {
  margin: 25px 0;
  margin-top: 120px;
}
.color-shadow{
  color: #3f3f3f;
}
/* aside */
.aside {
  width: 25%;
  padding-left: 5%;
  margin-left: calc(40px - 15px);
  /* height: 100%; */
  background-color: var(--main-body-color);
  text-align: start;
  padding: 10px;


}

.svg-top{
  width: 27px;
  height: 27px;
  margin-right: 10px;
  padding: 3px;
transition: 0.25s;
}
.svg-top:hover{
  border: var(--body-items-color) 1px solid;
  border-radius: 50%;
}
.sign-link {
  color: var(--a-color);

}
.navbarRight{
margin-top: 25px;

}
.menu-li_right{
display: none;
}
/* article */

.article {
  width: 70%;
  background-color: var(--main-body-color);
  padding: 15px;
  text-align: right;
}
.article-title{
line-height: 2.5rem;
margin: 15px 0;
}
.article-text{

}
.category-item_llink{
  text-wrap: wrap;
  font-size: 0.9rem;
color: var(--a-color);
}


/* footer */
footer {
  display:grid;
  /* grid-template-rows: 1fr 10rem auto; */
  grid-template-areas:"main" "." "footer";
  overflow-x:hidden;
  background: #F7FBFC;
  /* min-height:; */
  max-width: inherit;
  font-family: 'Open Sans', sans-serif;
  .footer {
    margin-top: 100px;
      z-index: 1;
      --footer-background:var(--body-items-color);
      display:grid;
      position: relative;
      grid-area: footer;
      min-height:12rem;
      .bubbles {
          position: absolute;
          top:0;
          left:0;
          right:0;
          height:1rem;
          background:var(--footer-background);
          filter:url("#blob");
          .bubble {
              position: absolute;
              left:var(--position, 50%);
              background:var(--footer-background);
              border-radius:100%;
              animation:bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
                  bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
              transform:translate(-50%, 100%);
          }
      }
      .footer-content {
        text-align: center;
          z-index: 2;
          padding:2rem;
          background:var(--footer-background);
          a, p {
              color:var(--text-color-w);
              text-decoration:none;
          }
          b {
              color:white;
          }
          p {
              margin:0;
              font-size:1rem;
          }
          >div {
              display:flex;
              flex-direction:column;
              justify-content: center;
              >div {
                  margin:0.25rem 0;
                  >* {
                      margin-right:.5rem;
                  }
              }
              .image {
                  align-self: center;
                  width:4rem;
                  height:4rem;
                  margin:0.25rem 0;
                  background-size: cover;
                  background-position: center;
              }
          }
      }
  }
}

@keyframes bubble-size {
  0%, 75% {
      width:var(--size, 4rem);
      height:var(--size, 4rem);
  }
  100% {
      width:0rem;
      height:0rem;
  }
}
@keyframes bubble-move {
  0% {
      bottom:-4rem;
  }
  100% {
      bottom:var(--distance, 10rem);
  }
}

.top-container{
  height: 50px;
  width: 50px;
  margin: 0 auto;

}

.d-none{
  display: none;
}

/* gallery */


.gallery {
	font-family: Lato, sans-serif;
	margin: 0;
	padding: 1rem;
	min-height: 900px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--main-body-color);
	width: 70%;

}

.img-gallery {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 1000ms;
}

.img-container {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	max-width: 100%;
	width: 100%;
}

figure {
	margin: 0;
	position: relative;
	overflow: hidden;
}

figure::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 200%;
	background: rgba(0, 0, 0, 0.5);
	transform-origin: center;
	opacity: 0;
	transform: scale(2);
	transition: opacity 300ms;
}

figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	place-items: center;
	text-align: center;
	padding: 1rem;
	color: white;
	z-index: 1;
	opacity: 0;
	transition: opacity 600ms, transform 600ms;
  text-wrap: wrap;

}

.img-link:is(:hover, :focus) figure::after {
	opacity: 1;
}

.img-link:is(:hover, :focus) figcaption {
	opacity: 1;
	transition: opacity 600ms;
}

@media (prefers-reduced-motion: no-preference) {
	figcaption {
		transform: translate3d(0, 2rem, 0);
	}
	
	figure::after {
		border-radius: 50%;
		opacity: 1;
		transform: scale(0);
		transition: transform 900ms;
	}
	
	.img-link:is(:hover, :focus) figure::after {
		transform: scale(2.5);
	}

	.img-link:is(:hover, :focus) figcaption {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		transition: opacity 600ms 400ms, transform 600ms 400ms;
	}

	.img-link:is(:hover, :focus) img {
		transform: scale(1.2);
	}
}

/* next , prevent page */



.btn-nav_container {
  margin: 15px auto;
  width: 200px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--main-body-color);
  text-align: center;
}

h2 {
  margin-bottom: 20px;
}

.button-container {
  display: flex;
  justify-content: space-between;
}

.nav-button {
  text-decoration: none;
  background-color: var(--body-items-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: var(--text-color-w);
  color: var(--body-items-color);
}



@media only screen and (max-width: 1080px) {
  .container{
    max-width: 768px;
  }
  .navbar .menu{
    display: none;
  }
  .navbar{
    width: 748px;
  }

  .menu-li_right {
    display: block;


  }
  .menu-li_link {
    width: 100%;
    padding: 5px 10px;
    line-height: 40px;
    border: 1px solid var(--body-items-color);
    border-radius: 11px;
    margin: 5px 2px;
    color: var(--text-color-w);
    background: var(--main-bg-color);
  }
  .aside{
    width: 35%;
    top: -1452px;
  }
  .article {
    width: 60%;
  }
}

@media only screen and (max-width: 788px) {
  .container{
    max-width: 567px;
  }
  .navbar .menu{
    display: none;
  }
  .navbar{
    width: 520px;
  }
#container{
  flex-direction: column;
}
.gallery{
  width: 95%;
}
  .menu-li_right {
    display: block;

  }
  .aside{
    display: block;
    width: 95%;
    position: static;
    margin-bottom: 35px;

  }
  .article {
    display: block;
    width: 95%;
  }
  .menu-li_link {
width: max-content;
  }
  .menu-li_right{
    display: inline-block;
    margin: 0;
    padding: 0;
  }
    
}
@media only screen and (max-width: 607px) {
  .container{
    max-width: 480px;
  }
  .navbar{
    width: 460px;
  }
  .aside {
    width: 100%;
  }
  .gallery {
    width: 100%;
}
}
@media only screen and (max-width: 520px) {
  .container{
    max-width: 95vw;
    /* padding: 11px; */
  }
  .navbar{
    width: auto;
    top: 0;
    left: 0;
    right: 0;
  }
}

@media only screen and (max-width: 430px) {
  .container{
    max-width: 95vw;
    padding: 10px;
  }


}
