@font-face {
  font-family: 'Yekan';
  src: url('Yekan.woff2') format('woff2'),
       url('Yekan.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Yekan', sans-serif;
  direction: rtl;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 20px auto;
  border: 2px solid #a40b0b;
  padding: 20px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #a40b0b;
  margin-bottom: 20px;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 8px;
  font-family: 'Yekan';
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #a40b0b;
  color: white;
  border: none;
  padding: 10px;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #870909;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}

th, td {
  border: 1px solid #a40b0b;
  padding: 8px;
  text-align: center;
}

th {
  background-color: #a40b0b;
  color: white;
}

.highlight {
  background-color: #ffe5e5 !important;
  font-weight: bold;
  border: 2px solid #a40b0b !important;
}

.final-box {
  margin-top: 20px;
  padding: 10px;
  border: 2px dashed #a40b0b;
  background-color: #fff3f3;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  color: #a40b0b;
}

/* ===== سبک کلیدهای شکیل (لینک‌ها) ===== */
.link-buttons {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: center;
}

/* هر کلید */
.link-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #a40b0b;
  background: linear-gradient(180deg, rgba(164,11,11,0.95), #a40b0b);
  color: #fff;
  box-shadow: 0 6px 14px rgba(164,11,11,0.15);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

/* آیکون فرضی با pseudo (در صورت نیاز می‌توان آیکون اضافه کرد) */
.link-btn::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
}

/* هاور */
.link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* حالت موبایل: یک ستون */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 15px;
  }

  .form-group select,
  .form-group input {
    font-size: 18px;
  }

  h1 {
    font-size: 22px;
  }

  .link-buttons {
    grid-template-columns: 1fr;
  }
}
