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

html {
    direction: rtl;
}

body {
    background-color: #eee;
    font-family: "Zain", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #333;
}

#headerDiv {
    background-color: #333;
    color: white;
    height: 13vh;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

#headerDiv img {
    height: 50px;
    margin-left: 15px;
}


#headerDiv .infoDiv {
    margin-right: auto;
    font-size: 16px;
    background-color: red;
    padding: 5px 10px;
    border-radius: 8px;
    animation: blinking 2s infinite;
}

@keyframes blinking {

    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


#mainDiv {
    min-height: 74vh;
    padding: 20px;
}

#footerDiv {
    background-color: #333;
    color: white;
    height: 13vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#splashScreen img {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

#splashScreen h3 {
    font-size: 24px;
    color: purple;
}

#splashScreen p {
    font-size: 17px;
    color: #666;
    text-align: center;
}

.show-splash {
    animation: showSplashAnimation 1s forwards;
}

.hide-splash {
    animation: hideSplashAnimation 1s forwards;
}


@keyframes showSplashAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes hideSplashAnimation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  min-height: 100px;
  height: auto;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  font-size: 18px;
}

.card p {
  font-size: 15px;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* عدد السطور */
  -webkit-box-orient: vertical;
}

.card h3:empty,
.card p:empty {
  display: none !important;
}

.card.file-card h3 {
  font-size: 15px !important;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.loading-indicator .spinner {
    border: 3px solid purple;
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.loading-indicator p {
    margin-top: 10px;
    font-size: 17px;
    color: #555;
}

.home-link {
    font-size: 20px;
    color: purple;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.home-content .home-link svg {
    fill: purple;
}

.home-content .page-title {
    margin-top: 10px;
    font-size: 24px;
    text-align: center;
}