@font-face {
    font-family: "Vazir";
    src: url("./fonts/Vazir-Regular.woff2") format("woff2");
    font-weight: normal;
}

@font-face {
    font-family: "Vazir";
    src: url("./fonts/Vazir-Bold.woff2") format("woff2");
    font-weight: bold;
}

body {
    margin: 0;
    font-family: "Vazir", sans-serif;
    background: #f4f6f8;
    direction: rtl;
}

label {
    font-family: inherit;
    /* تا فونت از body به ارث ببرد */
}

.container {
    display: flex;
    height: 100vh;
}

/* RIGHT */
.display-panel {
    flex: 2;
    overflow-y: auto;
    padding: 20px;
    direction: ltr;
    text-align: center;
}

.display-panel #title {
    text-align: center;
}

/* LEFT */
.control-panel {
    /* flex: 1; */
    padding: 20px;
    background: #fff;
    border-left: 1px solid #ddd;
    position: relative;
}

.card {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #ddd;
}

textarea {
    width: 100%;
    height: 80px;
}

.hidden {
    display: none;
}

/* Steps */
.step {
    margin-bottom: 15px;
}

/* Info text */
.info {
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

/* FLEX ARRAY */
.array {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* container هر آیتم */
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* باکس عدد */
.box {
    width: 45px;
    height: 45px;
    background: #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* index زیر باکس */
.index {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}

/* states */
.active {
    background: #4da6ff;
    color: white;
}

.disabled {
    background: #bbb;
    opacity: 0.4;
}

.current {
    background: orange;
}

.found {
    background: green;
    color: white;
}

.target {
    border: 2px solid purple;
}


.value {
    font-weight: bold;
}




/* Explanation */
#explanation {
    font-size: 14px;
}

/* Controls */
.controls {
    /* position: absolute; */
    bottom: 20px;
    right: 20px;
    text-align: center;
}

.controls button {
    margin: 3px;
}

#speed {
    vertical-align: middle;
}