/* اعمال فونت Vazir به تمام صفحه */
body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

header.gallery-header {
    text-align: center;
    background-color: #2a5298;
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* طراحی گالری */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    width: 280px;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    padding-bottom: 20px; /* فاصله پایین برای متن */
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background-color: #f8f8f8; /* تغییر رنگ پس‌زمینه هنگام هاور */
}

/* اضافه کردن افکت به تصاویر */
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* بزرگ شدن تصویر هنگام هاور */
}

/* متن توضیحات */
.gallery-item p {
    padding: 10px;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

.gallery-item:hover p {
    color: #2575fc; /* تغییر رنگ متن در هاور */
}

.gallery-item1 {
    width: 280px;
    text-align: center;
    background-color: yellow;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    padding-bottom: 20px; /* فاصله پایین برای متن */
    cursor: pointer;
}

.gallery-item1:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background-color: #f8f8f8; /* تغییر رنگ پس‌زمینه هنگام هاور */
}

/* اضافه کردن افکت به تصاویر */
.gallery-item1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item1:hover img {
    transform: scale(1.1); /* بزرگ شدن تصویر هنگام هاور */
}

/* متن توضیحات */
.gallery-item1 p {
    padding: 10px;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

.gallery-item1:hover p {
    color: #2575fc; /* تغییر رنگ متن در هاور */
}


/* طراحی دکمه با جلوه‌های ویژه */
.play-video {
    background-color: #ffc107;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    font-size: 1rem;
}

.play-video:hover {
    background-color: #ff69b4;
    transform: translateY(-5px); /* افکت برجسته شدن */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-video:active {
    transform: translateY(2px); /* افکت فشار دادن دکمه */
}

.play-video1 {
    background-color: #ff00b4;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    font-size: 1rem;
}

.play-video1:hover {
    background-color: #ff0007;
    transform: translateY(-5px); /* افکت برجسته شدن */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-video1:active {
    transform: translateY(2px); /* افکت فشار دادن دکمه */
}


/* استایل مدال (پاپ‌آپ) */
.modal {
    display: none; /* به‌طور پیش‌فرض پنهان است */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.video-container {
    position: relative;
    padding-bottom: 57.25%; /* نسبت ابعاد ویدیو 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* طراحی ریسپانسیو برای موبایل و تبلت */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        width: 90%;
    }
}
.header {
  background-image: url('header.png'); /* جایگزین کنید با آدرس تصویر خود */
  background-size: cover; /* تصویر را به اندازه ظرف خود می‌کشد */
  background-position: center; /* تصویر را در مرکز قرار می‌دهد */
  height: 500px; /* ارتفاع هدر را به دلخواه تنظیم کنید */
}
header img {
  width: 100%; /* تصویر به اندازه عرض هدر کشیده می‌شود */
  height: auto; /* ارتفاع به صورت خودکار تنظیم می‌شود تا نسبت تصویر حفظ شود */
}

.animated-text {
  font-size: 50px;
  animation: mymove 5s infinite;
}

@keyframes mymove {
  from {font-size: 50px;}
  to {font-size: 80px;}
}