

@font-face{
    font-family:'IRANYekan';
    src:url('../fonts/IRANYekanX-Regular.woff2') format('woff2');
    font-weight:400;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:'IRANYekan';
    src:url('../fonts/IRANYekanX-Bold.woff2') format('woff2');
    font-weight:700;
    font-style:normal;
    font-display:swap;
}





body{
    margin:0;
    font-family: 'IRANYekan', sans-serif;
    background:#0f172a;
    color:#e5e7eb;
    direction:rtl;
}

body,input,select,textarea,button{
    font-family:'IRANYekan', sans-serif;
}


.container{
    width:90%;
    max-width:1100px;
    margin:30px auto;
}
.narrow{
    max-width:700px;
}
.header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:30px;
}
.logo{
    max-height:50px;
}
.hero,.card,.result-box,form{
    background:#111827;
    border:1px solid #1f2937;
    border-radius:16px;
    padding:20px;
    margin-bottom:20px;
}
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
}
.card{
    display:block;
    text-decoration:none;
    color:#fff;
}
.btn{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:12px 18px;
    cursor:pointer;
    text-decoration:none;
}
input,select,textarea{
    width:100%;
    margin-bottom:12px;
    padding:12px;
    border-radius:10px;
    border:1px solid #374151;
    background:#0b1220;
    color:#fff;
    box-sizing:border-box;
}
pre{
    white-space:pre-wrap;
    word-break:break-word;
}

.border-right-primary {
    border-right: 5px solid #007bff !important;
}

.border-right-success {
    border-right: 4px solid #28a745 !important;
}

.direction-ltr {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Courier New', Courier, monospace;
}

.challenge-card {
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.result-box pre {
    font-size: 0.85rem;
    overflow-x: auto;
}


.result-box-container {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #313131;
}

.result-box-container h3 {
    color: #00bcd4; 
    margin-bottom: 10px;
    font-size: 1.1rem;
}


.result-box {
    background-color: #2c2c2c;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    padding: 20px;
    color: #e0e0e0; 
    font-size: 1rem;
    line-height: 1.8;
    text-align: right;
    white-space: pre-wrap; 
}


.result-box strong, .result-box b {
    color: #4CAF50; 
}

.result-box code {
    background-color: #1e1e1e;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #ffeb3b; /* زرد برای کد */
}


.btn-secondary {
    background-color: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.mt-4 {
    margin-top: 1.5rem;
}


