@font-face {
  font-family: 'Yekan';
  src: url('/font/Yekan.woff2') format('woff2'),
       url('/font/Yekan.woff') format('woff'),
       url('/font/Yekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: absolute;
  margin: 0;
  font-family: 'Yekan';
  background-color: #f2f4f8;
  min-height: 100vh;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  body {
   position: relative;
  }
}

.container {
  font-family: 'Yekan';
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 18px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header h1, h2, h3, h4 {
  margin: 0;
  color: #5a5cce;
  font-weight: bold;
}

main {
  flex: 1;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
}

main h2 {
  margin-bottom: 20px;
  color: #555;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.card {
  font-weight: bold;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  font-size: 14px;
}

.card:hover {
  transform: scale(1.05);
}

.card.active {
  background-color: #5a5cce;
  color: #ffffff;
}

.card .icon {
  font-size: 24px;
  margin-bottom: 7px;
}

navv {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

navv a {
  text-decoration: none;
  font-size: 24px;
  color: #999;
}

navv a.active {
  color: #5a5cce;
}

.splash {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #f2f4f8;
  color: #5a5cce;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 24px;
  font-weight: bold;
  transition: opacity 1s ease-out;
  transform: translateY(-60px);
  z-index: 9999;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

div.scrollmenu {
  background-color: #f2f4f8;
  overflow: auto;
  white-space: nowrap;
  border-radius: 10px;
}

div.scrollmenu a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 20px;
  text-decoration: none;
}

div.scrollmenu a:hover {
  background-color: #777;
}

.button-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.1px;
}

.button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  background-color: white;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .button {
    width: 100%;
    padding: 20px;
    font-size: 18px;
  }
  
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  main {
    padding: 20px;
  }
  
  .card {
    padding: 20px;
    font-size: 16px;
  }
  
  .footer {
    height: 70px;
  }
}

.btn-appointment {
  font-family: 'Yekan';
  background: white;
}

.btn-appointment:hover {
  background: white;
  border-radius: 10px;
}

.btn-online {
  font-family: 'Yekan';
  background: white;
}

.btn-online:hover {
  background: white;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #e2e2e2;
  color: #5a5cce;
  text-align: center;
  z-index: 2000;
  height: 60px;
  line-height: 50px;
  border-radius: 20px 20px 0 0;
}

.footer-icons {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-icons a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.footer-icons a:hover {
  color: #ffcc00;
}

.icon-item {
  text-align: center;
}

.icon-item p {
  margin-top: -30px;
  font-size: 12px;
  color: #5a5cce;
}

.small-space1 {
  display: block;
  height: 6px;
}

.small-space2 {
  display: block;
  height: 4px;
}

.item-menu {
  color: red;
}

.button-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}
   .footer-icons {
    display: flex; /* فعال کردن Flexbox */
    flex-direction: row-reverse; /* تغییر جهت به راست به چپ */
    justify-content: space-between; 
    max-width: 100%; /* عرض کل صفحه */
    margin: 0 auto; /* مرکز کردن کانتینر */
    padding: 0 20px; /* فاصله از دو طرف صفحه */
}