html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensure the html and body take up the full height of the viewport */
}

:root {
    --primary-color: #424279;
    --accent-color: #424279;
    --text-color: #333;
    --bg-color: #fff;
    --shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
    --transition: all 0.3s ease;
    --secondary-color: #8a8a8e;
    --background-color:  #f5f5f7;
    --card-color: #ffffff;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: "Vazirmatn", "Tahoma", sans-serif;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Ensure the body takes up at least the full height of the viewport */
}

.flex-container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow the container to grow and take up remaining space */
}

.main-container {
    flex: 1; /* Allow the main content to grow and push the footer down */
    max-width: 1400px; /* Limits width on large screens */
    width: 90%; /* Ensures it scales down on smaller screens */
    margin: 0 auto; /* Centers the container */
    padding: 20px; /* Adds space inside the container */
}

/* Adjust padding for smaller screens */
@media (max-width: 1024px) {
    .main-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 10px;
        width: 95%; /* Make it take more space on small screens */
    }
}