@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('../../assets/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body,
html {
    overflow: hidden;
    /* Disable scrolling */
    height: 100%;
    /* Ensure body and html take full height */
    margin: 0;
    /* Remove default margin */
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'YekanBakhFaNum', sans-serif;
    /* width: 80%; */
    height: 100vh;
    direction: rtl;
    font-size: 12pt;
    /* padding: 20px; */
    overflow: hidden;
    display: flex;
    -webkit-tap-highlight-color: transparent;
}

/* 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 */
  }

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding-left: 20px;
    padding-right: 20px;
    /* Gap between the buttons */
}

.input-container {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Close Button */
.close {
    top: 0px;
    /* Adjust as needed for spacing */
    left: 15px;
    /* Adjust as needed for spacing */
    position: absolute;
    /* Use fixed to ensure proper layering and behavior */
    font-size: 28px;
    color: white;
    font-weight: bold;
    z-index: 1010;
    cursor: pointer;
}

.input-container button {
    font-family: 'YekanBakhFaNum', sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: 12pt;
    width: 100%;
    height: 50px;
    background-color: #d2d2d2;
    border-radius: 50px;
    overflow: hidden;
    height: 45px;
    padding: 5px;
    border: none;
    box-sizing: border-box;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Modal styling */
.modal {
    display: none;
    /* Hide modals by default */
    position: fixed;
    /* Use fixed to cover the entire viewport */
    z-index: 1011;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    backdrop-filter: blur(10px); /* Applies the blur effect */
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with iOS Safari */
    background-color: rgba(0, 0, 0, 0.5); /* Fallback for older browsers */
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.elementsWrapper {
    background-color: transparent;
    width: 100%;
    display: flex;
    height: auto;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Modal Content */
.modal-content {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    background-color: rgb(211, 211, 211);
    border-radius: 36px;
    width: 90%;
    padding: 0px;
    border: none;
    /* max-height: 100vh; */
    overflow: auto;
    position: relative;
}

.remote {
    height: 480px;
}

.manager {
    height: 290px;
}

.zone {
    height: 360px;
    height: 360px;
}

.instant {
    height: 240px;
}

.wind {
    height: 240px;
}

/* Additional CSS for fading and moving the close button */
.close-original {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.close-fading {
    opacity: 0;
}

.close-off-screen {
    opacity: 0;
    transform: translateX(100vw);
}

.remoteImage,
.managerImage,
.zoneImage,
.instantImage,
.windImage {
    width: 50px;
    height: 50px;
    display: none;
    z-index: 1012;
    position: absolute;
    top: -5px;
    right: 5px;
    cursor: pointer;
}

/* Landscape mode styles */
@media (orientation: landscape) {
    .elementsWrapper {
        height: 86%;
    }
    .remote {
        height: 100%;
    }

    .main-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        overflow: auto;
        padding-left: 20px;
        padding-right: 20px;
        /* padding-top: 20px; */
        /* padding-bottom: 0px; */
    }
    
    .main-container .input-container:first-child {
        margin-top: 210px;
    }
    
    .main-container .input-container:last-child {
        margin-bottom: 30px;
    }
}