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

/* Body */
body {
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a, #1a1a1a);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    font-family: 'Bnazanin', sans-serif;
    direction: rtl;
    text-align: right;
    color: #e0e0e0;
    line-height: 1.6;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fonts */
/* @font-face {
    font-family: 'IranNastaliq';
    src: url('fonts/IranNastaliq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
} */

@font-face {
    font-family: 'Bnazanin';
    src: url('fonts/B-NAZANIN.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Header */
header {
    background-color: #121212;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    border-bottom: 2px solid #333;
    height: 120px;
    position: fixed; /* هدر ثابت می‌شود */
    top: 0; /* هدر در بالای صفحه قرار می‌گیرد */
    left: 0; /* هدر از سمت چپ شروع می‌شود */
    width: 100%; /* هدر عرض کامل صفحه را می‌پوشاند */
    z-index: 1000;
    margin: 0%;
}

header h1 {
    margin: 5px;
    font-size: 1.5rem;
    text-align: center;
    padding: 5px 0;
}

header p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 5px;
    text-align: center;
    padding: 5px 0;
}

/* Main Content */
main {
    padding-top: 120px;
}

/* Person List */
.person-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Person Card */
.person-card {
    background-color: #707070;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.person-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #404040;
}

.person-card h2 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: #ffffff;
}

.person-card h5 {
    background-color: lightgray;
    font-size: 1.5rem;
    margin: 15px 0;
    color: #ffffff;
}

.person-card p {
    padding: 0 15px;
    font-size: 1rem;
    color: #b0b0b0;
}

.person-card a {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Bnazanin', sans-serif;
    font-size: 1.1rem;
}

/* Person Details */
.person-details {
    font-family: Bnazanin;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.person-details img {
    width: 100%;
    max-height: 800px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #404040;
}

.person-details video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #404040;
}

.p0 {
    font-family: Bnazanin;
    text-align: justify;
    background-color: #000000;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 10px;
}
.p1 {
    font-family: Bnazanin;
    text-align: right;
    background-color: #b46161;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 10px;
}
.p2 {
    font-family: Bnazanin;
    text-align: right;
    background-color: #8e64ba;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 10px;
}
.p3 {
    text-align:center;
    background-color: #000000;
    line-height: 1.8;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 10px;
}


.person-details table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.person-details th {
    background-color: #04AA6D;
}

.person-details tr:nth-child(even) {
    background-color: #f2f2f2;
    color: #000000;
}

/* .person-details tr:hover {
    background-color: #2F4F4F;
    color: #000000;
} */

.person-details hr {
    border: 0;
    height: 2px;
    background-color: #000000;
    margin: 20px 0;
}

.person-details span {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 5px;
}

/* Footer */
footer {
    background-color: #606060;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 2px solid #404040;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.2rem;
    }

    header p {
        font-size: 0.8rem;
    }

    .person-details img, .person-details video {
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1rem;
    }

    header p {
        font-size: 0.7rem;
    }

    .person-details img, .person-details video {
        max-height: 300px;
    }
    .p3 {
        font-size: 1rem;
    }
}
