/* 
Theme Name: Gahomar Child
Theme URI: https://gahshomar.com/
Author: Hamy Vosugh
Author URI: https://hamyvosugh.com/
Template: hello-elementor
Description: Gahshomar Theme for Persian calendar website as child theme for Hello Elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
GitHub Plugin URI: https://github.com/Hamyvosugh/gahshomar
*/


/* Font Face for Regular */
@font-face {
    font-family: 'Digi Hamishe';
    src: url('https://gahshomar.com/wp-content/uploads/2024/08/Digi-Hamishe-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Font Face for Bold */
@font-face {
    font-family: 'Digi Hamishe';
    src: url('https://gahshomar.com/wp-content/uploads/2024/08/Digi-Hamishe-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, p {
    direction: rtl !important;
}

html {
    overflow-x: hidden; /* Prevents horizontal scroll */
    scroll-behavior: smooth; /* Keeps smooth scrolling */
}

body {
    position: relative;
    max-width: 100vw; /* Ensures body doesn't overflow */
    overflow-x: hidden; /* Extra protection */
}



/* Hide titles for pages, posts, and saved templates */
.page .entry-title,
.post .entry-title,
.elementor-template .entry-title {
    display: none;
}

/* Prevent scrolling on landing page */
body.landing-page-fixed {
    overflow: hidden;
}

/* Basic body styling */
body {
    background-color: #232647; /* Set to dark mode body color */
    color: #74a1ef; /* Set to dark mode text color */
}

 
/* Reset default margin and padding */
body, header {
    margin: 0;
    padding: 0;
}

/* Adjusting the margin and padding between the header and body */
body {
    padding-top: 0; /* Adjust this value as needed */
}

/* Mode toggle button styling */
#mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px; /* Diameter of the circle */
    height: 60px; /* Diameter of the circle */
    border-radius: 50%; /* Makes the button a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333863; /* Set to dark mode button color */
    background-image: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

#mode-toggle.rotating {
    animation: rotate-background 2s linear infinite; /* Apply rotation animation when .rotating class is added */
}

#mode-icon {
    width: 30px; /* Icon width */
    height: 30px; /* Icon height */
    scale: 200%;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

@keyframes rotate-background {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Custom CSS for the main content section */
#main-content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}



/* Hide scrollbar for all browsers */
.content {
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}


/* No header template */
.gahshomar-full-page {
    background-color: #333863; /* Example background color */
}

.gahshomar-content {
    background-color: #333863; /* Example background color */
    padding: 20px; /* Example padding */
}

.gahshomar-main {
    background-color: #333863; /* Example background color */
    border-radius: 8px; /* Example border radius */
    padding: 15px; /* Example padding */
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); /* Example box shadow */
}



/* mobile footer */
@media only screen and (max-width: 1024px) {
    .mobile-menu-container {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #4c5494;
        z-index: 999;
    }
    
    .mobile-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
    }
    
    .menu-item {
        color: white;
        text-decoration: none;
        font-family: "digi hamishe", sans-serif;
        font-size: 17px;
        text-align: center;
    }
        .menu-item.hamburger {
        color: orange;
        Scale: 1.8;
     
    }
    .menu-item.active {
        color: #FF8200;
    }
    
    .secondary-menu {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 100%;
        background-color: #333863;
        padding: 10px 15px;
    }
    
    .secondary-menu.show {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media only screen and (min-width: 1025px) {
    .mobile-menu-container {
        display: none;
    }
}


html {
    scroll-behavior: auto !important; /* Prevents conflict with our custom scroll */
}

.menu-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.menu-item:hover {
    transform: scale(1.05);
}





/* dashboard */
/* Login Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    direction: rtl;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.login-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

#loginForm input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#loginForm button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* font avesta */
@font-face {
    font-family: 'Avestan';
    src: url('/assets/font/avestan_1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'AvestanTrans';
    src: url('/assets/font/avestan_trans_1_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  .avesta {
    font-family: 'Avestan', sans-serif;
  }
  
  .avesta-trans {
    font-family: 'AvestanTrans', sans-serif;
  }

