/* Add your CSS styles here */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

header {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

#defaultCanvas0 {
    max-width: 100%; /* Set the canvas width to be responsive */
    height: auto; /* Allow the canvas to scale proportionally */
    display: block; /* Ensure the canvas behaves as expected */
}
h1{
    text-align: center;
}

nav {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

nav a {
    text-decoration: none;
    color: #fff;
    margin: 0 20px;
}

/* Language selector */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.lang-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: #e0e0e0;
}

.lang-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.pageLayout {
    display: flex;
    height: 100%;
}

.canvas{
    z-index: -1;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

#canvasHolder{
    height: 200px;
}

.left {
    flex: 1;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    padding: 20px;
}

.image-box {
    flex: 1;
    background-color: #ff9900;
    /* You can set different background colors for your images */
}


/* Code for styling the alphabet grid */
.alphabet-container {
    display: grid;
    grid-template-columns: repeat(5, 100px); /* Adjust the number and width of columns as needed */
    gap: 10px; /* Adjust the gap between grid items */
    justify-content: center; /* Center the grid horizontally */
}

/* RTL support for Arabic */
.alphabet-container.rtl {
    direction: rtl;
}

.alphabet-container.rtl .alphabet-item {
    font-family: 'Arial', 'Noto Sans Arabic', sans-serif;
}

/* Style for each grid item (letter element) */
.alphabet-item {
    width: 80px; /* Adjust the width of each grid item */
    height: 80px; /* Adjust the height of each grid item */
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    font-size: 24px;
    border-radius: 5px;
}
/* Style for the progress bar container */
.progress-bar-container {
    margin: 10px;
    width: 100%;
    height: 10px; /* Adjust the height of the progress bar */
    background-color: #f0f0f0; /* Background color for the progress bar container */
    position: relative;
    border-radius: 5px;
}

/* Style for the progress bar itself */
.progress-bar {
    height: 100%;
    width: 0; /* Initial width of the progress bar (0%) */
    background-color: #007bff; /* Color of the filled progress bar */
    border-radius: 5px;
}


/* for upload buttons and submit */
.inputButton{
    background-color: #007bff; /* Set your desired button background color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.inputButton:hover {
    background-color: #036dde; /* Change color on hover */
}


.buttonHolder{
    padding-top: 10px;
    display: flex;
    gap: 7px;
    flex-direction: row;
    justify-content: start;
}

/* for instructions */
.basic {
    text-align: center;
    margin: 5%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333; /* Text color */
    background-color: #f9f9f9; /* Background color */
    padding: 10px; /* Padding around the instructions */
    border: 1px solid #ddd; /* Border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Box shadow for a subtle elevation effect */
}

/* attemt at responsiveness */
@media (max-width: 1300px) {
    /* Style changes for screens less than 1200 pixels wide */
    .pageLayout {
        display: flex;
        flex-direction: column; /* Change to a one-column layout */
        align-items: center; /* Center the content vertically */
        padding: 20px;
    }

    .left {
        width: 100%; /* Full width for the left column */
    }

    .right {
        width: 100%; /* Full width for the right column */
    }
}
