@font-face {
  font-family: 'IRANYekan';
  src: url('fonts/IRANYekanXVF.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

/* استایل‌های کلی ماشین حساب */
.calculator-container {
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: #333;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'IRANYekan', sans-serif; /* استفاده از فونت برای کل ماشین حساب */
}

/* استایل‌های هدر ماشین حساب */
.calculator-container .calculator-header {
    color: #fff;
    background: #444;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    border: 2px solid #666;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* استایل‌های نمایشگر ماشین حساب */
.calculator-container .display {
    background: #222;
    color: #0f0;
    padding: 20px;
    font-size: 28px;
    text-align: right;
    border-radius: 10px;
    margin-bottom: 10px;
    height: 100px;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* استایل‌های دکمه‌های ماشین حساب */
.calculator-container .buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calculator-container .btn {
    background: #53526D;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-align: center;
    height: 50px;
}

.calculator-container .btn.clear {
    grid-column: span 2;
    background: #e74c3c;
}

.calculator-container .btn.operator {
    background: #f39c12;
}

.calculator-container .btn.equal {
    background: #27ae60;
    grid-column: span 2;
}

.calculator-container .btn.function {
    background: #53526D;
}

.calculator-container .btn.number {
    background: #2ecc71;
}

/* اضافه کردن فونت به دکمه‌ها */
.calculator-container .btn {
    font-family: 'IRANYekan', sans-serif; /* استفاده از فونت در دکمه‌ها */
}

/* ریسپانسیو برای موبایل و تبلت */
@media (max-width: 768px) {
    .calculator-container {
        max-width: 100%;
        padding: 5px;
    }
    .calculator-container .buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .calculator-container .display {
        font-size: 24px;
        height: 80px;
    }
    .calculator-container .btn {
        padding: 8px;
        font-size: 14px;
        height: 40px;
    }
}
