

@font-face {
  font-family: 'Roboto-Medium';
  src: url('../fonts/Roboto-Medium.woff2') format('woff2'),
       url('../fonts/Roboto-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Iranian-sans';
  src: url('../fonts/AIranianSans.woff2') format('woff2'),
       url('../fonts/AIranianSans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto-Bold';
  src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
       url('../fonts/AIranianSans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto-Light';
  src: url('../fonts/Roboto-Light.woff2') format('woff2'),
       url('../fonts/Roboto-Light.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.body-home {
  height: 100vh;
  background-image: url('../Tiam-logo/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
}


.Tiam-logo {
  width: 100%;       
  display: flex;        
  justify-content: center;
  align-items: flex-start;
}

.Tiam-logo img {
  width: 50vw;    
  max-width: 300px;       
  min-width: 80px;     
  margin-top: 20px;  
}


.box-home {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 1vw;
}

.button-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  background-color: aliceblue;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  width: 30vw;
  height: 70vh;
  margin-top: 10vh;
}

.button-link:active {
  background-color: #4C8BF5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.img-Rack {
  max-height: 30vh;
  max-width: 90%;
}

.text-size-rack {
  font-family: 'Roboto-Medium', sans-serif;
  font-size: 1.5rem;
  color: black;
  margin-top: 4vh;
}

.text-size-rack1 {
  font-family: 'Roboto-Bold', sans-serif;
  font-size: 2rem;
  color: black;
  margin-bottom: 4vh;
}

.back {
  position: fixed;
  margin-top: 0vh;
  margin-left: 0vw;
  display: block;
}

.flipBook_Back {
  position: fixed;
  top: -1vh;
  left: -1vw;
  width: 200px;
  height: 200px;
  z-index: 4;
}


.back img {
  height: 20vh; /* اندازه بزرگتر */
}

  .link-Dcim {
    display: flex;
    justify-content: center; /* افقی وسط */
    align-items: center;     /* عمودی وسط */
    text-decoration: none;
    color: white;
    font-size: 3rem;
    font-family: 'Iranian-sans' , 'sans-serif';
    margin-top: 25vh;
}


@media (max-width: 768px) {
  .box-home {
    flex-direction: column;
    align-items: center;
  }

  .button-link {
    text-align: center;
    width:59vw;
    height: 70vh;
    margin-top: 5vh;
  }
  .img-Rack {
    max-width: 90%;
    max-height: 30vh;
    height: auto;
    object-fit: contain;
  }

  .back {
    top: 10px;   /* کمی فاصله از بالا */
    left: 10px;  /* کمی فاصله از چپ */
  }

  .back img {
    height: 12vh; /* کوچکتر در موبایل */
  }
}