/* صفحه وسط صفحه */
@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 06 Bold.woff2') format('woff2');
  font-weight: Bold;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Regular.woff2') format('woff2');
  font-weight: Regular;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Fat.woff2') format('woff2');
  font-weight: Fat;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Bold.woff') format('woff');
  font-weight: Bold;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Regular.woff') format('woff');
  font-weight: Regular;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Fat.woff') format('woff');
  font-weight: Fat;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Bold.ttf') format('ttf');
  font-weight: Bold;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Regular.ttf') format('ttf');
  font-weight: Regular;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Fat.ttf') format('ttf');
  font-weight: Fat;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Regular.eot') format('eot');
  font-weight: Bold;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Regular.eot') format('eot');
  font-weight: Regular;
  font-style: normal;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('fonts/Yekan Bakh FaNum 04 Fat.eot') format('eot');
  font-weight: Fat;
  font-style: normal;
}


html, body {
  height: 90%;
  margin: 0;
  padding: 0;
  font-family: Yekan Bakh, sans-serif;
  background: #f7f7f8;
  direction:rtl;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 95vh;
  text-decoration: none;
}

a{
    text-decoration: none;
}
.search-wrapper {
  flex: 1; /* برای پر کردن فضای باقی‌مانده */
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box {
  padding: 30px;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.search-box h1{
    font-size:50px;
    font-weight:900;
    margin-bottom: -10px;
}

textarea {
  width: 90%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  resize: none;
  margin-top: 10px;
}

button {
  margin: 10px 5px 0 5px;
  padding: 8px 30px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
  font-family: Yekan Bakh, sans-serif;
  font-size:15px;
  font-weight:bold;
}

button:hover {
  background: #ddd;
}

/* باکس های فونت */
.fonts {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,2fr));
  gap: 15px;
  max-width: 600px;
  margin: 30px auto;
  padding-bottom: 50px;
}



.font-item {
  padding: 12px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
      overflow: auto;
}

.font-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.font-item p {
  margin: 10px 0;
}

.font-item a{
    background-color:#1976f0;
    color:#fff;
    font-size:13px;
    padding:3px 10px;
    border-radius:5px;
}

.font-item a:hover{
    background-color:#000;
}


/* فوتر پایین صفحه */
.footer-style {

  padding: 60px 0;
  text-align: center;
  color: #555;
  font-size: 14px;
}


.footer-style a{margin:0 10px;color:#555;text-decoration:none;}


/*----------------------Phone------------------------*/

@media screen and (max-width: 550px){
.fonts {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
  gap: 10px;
  max-width: 350px;
  margin: 30px auto;
  padding-bottom: 50px;
}}
