 @font-face {
  font-family: 'DroidKufi2';
  src: url('../cdn/fonts/alfont_com_SomarGX.ttf');
  }
  * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #f0f0f0;
  font-family: 'DroidKufi2',Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.content {
  text-align: center;
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}
.logo {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}
.subtitle {
  font-size: 24px;
  margin-bottom: 20px;
  color: #555;
}
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: nowrap;
  direction: rtl;
}
a.button-link {
  flex: 1;
  text-decoration: none;
}
button {
  width: 100%;
  padding: 12px 0;
  font-size: 20px;
  font-family: 'DroidKufi2';
  cursor: pointer;
  background-color: #772953;
  color: white;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}
button:hover {
  background-color: #511c39;
}
div#result {
    margin-top: 15px;
}
.data-card {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: left;
    font-size: 16px;
    color: #333;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; /* No gaps, to look like table */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Smooth edges */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    direction: rtl;
}
.grid-header, .grid-item {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    text-align: center;
}
.grid-header {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}
.grid-item {
    background-color: #ffffff;
    color: #555;
}
/* Optional: alternate row color effect */
.grid-container:nth-child(even) .grid-item {
    background-color: #f9f9f9;
}
.button-loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
} 
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.logo_container {
    display: flex; /* Flex to put side by side */
    align-items: center; /* Vertically align */
    gap: 20px; /* Space between logo and text */
    max-width: 600px;
    margin: auto;
    direction: rtl;
}
.logo_content {
    flex: 1; /* Take remaining space */
}
.logo_content h1 {
    font-size: 20px;
    margin-bottom: 5px;
    text-align: right;
}
.logo_content p {
    margin: 0;
    color: #772953;
    text-align: right;
    font-size: 20px;
    font-weight: bold;
}
.separator {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 10px 0 20px 0;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .content {
        margin-top: 60px;
        align-self: center;
    }
    .logo {
        margin-bottom: 0;
    }
    /* .grid-container {
        grid-template-columns: repeat(2, 1fr);
    } */
}
@media (max-width: 480px) {
    /* .grid-container {
        grid-template-columns: 1fr 1fr;
    }
    .grid-header {
        text-align: right;
        justify-content: flex-end;
        background-color: transparent;
        font-weight: bold;
        color: #555;
    }
    .grid-item {
        text-align: left;
        justify-content: flex-start;
    } */
    /* .logo_container {
        flex-direction: column;
        text-align: center;
    } */
}