@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('../../../assets/YekanBakhFaNum-Regular.woff2') format('woff2');
}

body {
    font-family: 'YekanBakhFaNum', sans-serif;
    direction: rtl;
    font-size: 12pt;
    margin: 0;
    height: 100vh; /* Full height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow */
}

/* Hide scrollbars for all elements */
* {
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

/* Hide scrollbars for WebKit browsers (Chrome, Safari) */
*::-webkit-scrollbar {
    display: none;
}

button {
    -webkit-appearance: none; /* Remove default iOS styles */
    appearance: none; /* For cross-browser support */
    color: inherit; /* Use the inherited text color */
    background-color: inherit; /* Ensure background color doesn't change */
    border: none; /* Remove any default borders */
  }

p {
    font-family: 'YekanBakhFaNum', sans-serif;
    font-size: 12pt;
    font-weight: bold;
    direction: rtl;
}

/* Center the relay-section */
.relay-section {
	width: 100vw;
	max-width: 100vw;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	scroll-behavior: smooth;
	justify-content: center;
	overflow-y: scroll;
	height: 100%;
}

/* Relay item styles */
.relay-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 5px;
	width: 96%;
}

button {
    font-family: 'YekanBakhFaNum', sans-serif;
    font-weight: bold;
    text-align: center;
    width: 80%;
    margin-top: 15px;
    height: 50px;
    color: whitesmoke;
    background-color: #999999;
    border-radius: 50px;
    overflow: hidden;
    height: 45px;
    border: aliceblue;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Label styles with equal width */
.relay-label {
    flex: 1;
    color: black;
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
    font-family: 'YekanBakhFaNum', sans-serif;
    font-weight: bold;
}

/* Time label and checkbox label styles */
.time-label,
.checkbox-label {
    flex: 1;
    color: #9c9c9c;
    white-space: nowrap;
    text-align: right;
    font-family: 'YekanBakhFaNum', sans-serif;
    font-weight: bold;
}

/* Number input styles with equal width */
.number-input {
    border: none;
    border-radius: 36px;
    padding: 5px 20px;
    font-size: 12pt;
    flex: 2;
    max-width: 40%;
    background-color: #747474;
    color: #dcdcdc;
    text-align: center;
    font-family: 'YekanBakhFaNum', sans-serif;
    font-weight: bold;
    outline: none; /* Remove default focus outline */
    transition: box-shadow 0.3s ease; /* Smooth transition for glow effect */
}

/* Add white glow effect on focus */
.number-input:focus {
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8); /* White glow */
}

/* Checkbox styles */
.custom-checkbox {
    margin: 0 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #9c9c9c;
    cursor: pointer;
    appearance: none;
}

.custom-checkbox:checked {
    background-image: url('../../../assets/checked.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Disable zooming */
html, body {
    touch-action: manipulation;
    user-select: none;
    -webkit-touch-callout: none;
    text-size-adjust: 100%;
}
