@import url('https://fonts.googleapis.com/css2?family=Lateef:wght@200;300;400;500;600;700;800&display=swap');

*,
html {
    box-sizing: border-box;
    margin: 0px;
    user-select: none;
    font-family: "Lateef", serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#farazContainer {
    text-align: center;
    line-height: 1.7;
    padding: 2em;
    direction: rtl;
    font-size: clamp(
        6.5vh, 
        calc(6.5vh + ((100vw - 100vh) * 0.014)),
        10vh
    );
}

/* New navigation container */
.nav-container {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 20;
}

/* Allow children of the container to be clickable */
.nav-container .nav-overlay,
.nav-container .nav-controls {
    pointer-events: auto;
}

/* New overlay area styles */
.nav-overlay {
    position: fixed;
    top: 0;
    height: 100vh;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

.nav-overlay.left {
    left: 0;
    width: 45%;
}

.nav-overlay.right {
    right: 0;
    width: 45%;
}

/* Adjusted navigation control styles */
.nav-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 30;
}

.nav-controls button,
.nav-controls input {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-size: 1em;
    outline: none;
    transition: background 0.3s;
}

.nav-controls button:hover {
    background: #ddd;
}

.nav-controls input {
    width: 15vh;
    font-size: 4vh;
    text-align: center;
    user-select: all;
    border-radius: 10vh;
    /* animation: pulseBackground 10s infinite ease-in-out; */
    background-color: black;
    color: white;
    border-color: white;
    border-style: solid;
    border-top: black;
    border-bottom: black;
}

/* Remove spin buttons from number input for Chrome, Safari, Edge, Opera */
.nav-controls input[type=number]::-webkit-outer-spin-button,
.nav-controls input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spin buttons for Firefox */
.nav-controls input[type=number] {
    -moz-appearance: textfield;
}

.fullscreen-button {
    pointer-events: all;
    position: fixed;
    top: 10px;
    left: 10px;
    background: transparent; /* changed from solid white */
    color: #fff;             /* white icon color */
    padding: 0.25em 0.5em;    /* reduced padding */
    font-size: 4.5vh;         /* increased size for icon look */
    cursor: pointer;
    z-index: 40;
    font-family: monospace, Courier;
}