@font-face {
  font-family: "YekanBakh VF";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/YekanBakh-VF.ttf") format("truetype");
}

:root {
  --main-serif: "YekanBakh VF", "Vazirmatn", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --bg-color: #ffffff;
  --text-color: #1e1e1e;
  --radius: 25px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--main-serif);
  font-weight: 100;
  direction: rtl;
  background: var(--bg-color);
  color: var(--text-color);
}

.main {
  background-image: url(bgfinal.svg);
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text {
  background-color: #ffffffcc;
  font-size: clamp(18px, 4vw, 48px);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius);
  height: auto;
  min-height: 25svh;
  margin: clamp(8px, 2vw, 2%) clamp(10px, 5vw, 15%);
  padding: clamp(10px, 5vw, 10%) 2%;
  color: var(--text-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#logo {
  width: 100%;
  display: block;
  overflow: hidden;
  text-align: center;
  height: 60svh;
  object-fit: contain;
  transition: max-height 0.3s ease;
}

@media (max-width: 400px) {
  .text {
    font-size: clamp(14px, 5vw, 22px);
    margin: 4% 4%;
    padding: 6% 3%;
  }
  #logo {
    max-height: 50svh;
  }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .text {
    font-size: clamp(22px, 3vw, 36px);
    margin: 3% 10%;
    padding: 6% 4%;
  }
  #logo {
    max-height: 58svh;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .text {
    font-size: clamp(28px, 2.5vw, 42px);
    margin: 2% 12%;
  }
  #logo {
    max-height: 60svh;
  }
}

@media (min-width: 1441px) {
  .text {
    font-size: clamp(32px, 2vw, 54px);
    margin: 2% 18%;
  }
  #logo {
    max-height: 65svh;
  }
}
