#navbar {
    width: 100%;
    background-color: #333;
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
}

#navbar h1 {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 0px 14px 0px 14px;
    text-decoration: none;
    font-size: 17px;
    font-family: "Noto Sans Hebrew", sans-serif;
    font-weight: bold;
}

#navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

#navbar a:hover {
    background-color: #ddd;
    color: black;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

#title {
    text-align: right;
    font-size: 24px;
    color: #666;
    direction: rtl;
}

h2 {
    text-align: right;
    font-size: 18px;
    color: #000000;
    direction: rtl;
    font-weight: normal;
}

#upload-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
}

#upload-button {
    background-color: #adadad;
    color: #000;
    padding: 20px 20px;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

#upload-button:hover {
    background-color: #747474;
}

.upload-icon {
    width: 24px;
    height: 24px;
}

.button-text {
    display: none;
}

#upload-button:hover .button-text {
    display: inline;
}

#drop-area {
    text-align: center;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

#drop-area:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#drop-area p {
    margin: 0;
    font-size: 18px;
    color: #666;
}

#drop-area.dragover {
    border: 2px dashed #6200ea;
    color: #6200ea;
}

#file-input {
    display: none;
}

#error-message {
    color: red;
    display: none;
}

.lds-grid,
.lds-grid div {
    box-sizing: border-box;
}

.lds-grid {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
}

.lds-grid.show {
    display: flex;
}

.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    animation: lds-grid 1.2s linear infinite;
}

.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}

.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}

@keyframes lds-grid {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#upload-button:disabled {
    background-color: #d0d0d0;
    cursor: not-allowed;
}

.chart-container {
    width: 100%;
    height: calc(100vh - 200px);
}

canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

ol {
    direction: rtl;
    /* Right-to-left direction */
    text-align: right;
    /* Align text to the right */
    padding-right: 20px;
    /* Adjust padding if necessary */
}

ol li {
    text-align: right;
    /* Align list items to the right */
}

table {
    width: auto;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    padding: 4px 0;
}

.footer-comment {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #d3d3d3;
    width: 40%;
    height: 20%;
    text-align: right;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

@media (max-width: 768px) {
    .popup-content {
        width: 80%;
        height: auto;
        margin: 20% auto;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 90%;
        height: auto;
        margin: 30% auto;
        padding: 10px;
    }
}

.popup-content li {
    padding: 10px 0;
}

.close-btn {
    color: #000000;
    font-size: 28px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.clickable {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 768px) {
    #chartContainer {
        width: 100%;
        height: 300px;
    }
}