﻿/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; /* رنگ پس‌زمینه */
    color: rgb(0, 0, 0); /* رنگ متن */
    background-image: url('book.jpg'); /* آدرس تصویر پس‌زمینه */
    background-size: cover; /* پوشش تمام صفحه */
    background-position: center; /* مرکز تصویر */
    background-repeat: no-repeat; /* جلوگیری از تکرار تصویر */
}

header {
    background: rgba(0, 0, 0, 0.7); /* رنگ پس‌زمینه هدر با شفافیت */
    color: #fff; /* رنگ متن هدر */
    padding: 20px 0; /* فاصله داخلی */
    text-align: center; /* مرکز متن */
}

nav {
    background: rgba(68, 68, 68, 0.8); /* رنگ پس‌زمینه ناوبری با شفافیت */
    padding: 15px; /* فاصله داخلی */
}

nav a {
    color: #fff; /* رنگ متن لینک‌ها */
    text-decoration: none; /* حذف خط زیر لینک */
    margin: 0 15px; /* فاصله بین لینک‌ها */
    transition: color 0.3s; /* افکت تغییر رنگ */
}

nav a:hover {
    color: #ffcc00; /* رنگ لینک‌ها در حالت هاور */
}

section {
    padding: 20px; /* فاصله داخلی */
    margin: 10px; /* فاصله خارجی */
    background: rgba(253, 253, 252, 0.466); /* رنگ پس‌زمینه بخش‌ها با شفافیت */
    border-radius: 8px; /* گوشه‌های گرد */
    box-shadow: 0 2px 10px rgba(7, 4, 4, 0.836); /* سایه */
}

.gallery-container {
    width: 50;
    margin: 0 auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow:  0px 4px 10px;
    display: flex; /* نمایش به صورت افقی */
    flex-wrap: wrap; /* ادامه در خط بعدی */
    justify-content: space-between; /* فاصله بین تصاویر */
}

.gallery-item {
    margin: 5px; /* فاصله بین تصاویر */
    position: relative; /* برای قرار دادن ستاره‌ها */
}

.gallery-item img {
    max-width: 370px; /* حداکثر عرض تصاویر */
    height: auto;
    display: block;
    border-radius: px; /* گوشه‌های گرد */
}


.star {
        /* استایل‌های ستاره‌ها */
    }
    
    /* استایل‌های شبکه‌های اجتماعی */
    .social-media {
        text-align: center; /* مرکز کردن محتویات */
        margin-top: 10px; /* فاصله بالا */
    }
    
    .social-media img {
        width: 50px; /* عرض آیکون */
        height: 50px; /* ارتفاع آیکون */
        margin: 0 10px; /* فاصله بین آیکون‌ها */
        transition: transform 0.3s; /* افکت تغییر سایز */
    }
    
    .social-media img:hover {
        transform: scale(2.2); /* بزرگ شدن آیکون در حالت هاور */
    }
    
    footer {
    text-align: center; /* مرکز کردن متن و محتویات فوتر */
    padding: 10px 0; /* فاصله داخلی */
    background: rgba(0, 0, 0, 0); /* رنگ پس‌زمینه فوتر با شفافیت */
    color: rgb(7, 7, 7); /* رنگ متن فوتر */
}

.social-media {
    margin-top: 10px; /* فاصله بین متن و آیکون‌ها */




}
header {
    position: relative; /* موقعیت نسبی برای تراز کردن عناصر داخلی */
    text-align:center; /* تنظیم تراز عنوان و متن به سمت چپ */
    background-color: rgba(255, 251, 251, 0);
    padding: 20px;
    color: rgb(10, 9, 9);
}

h1 {
    font-size: 30px;
    margin: 0;
}

p {
    font-size: 17px;
    margin: 0;
}



.logo {  

    height: auto;
    width: 60px; /* عرض لوگو */
    height: auto; /* ارتفاع به نسبت عرض تنظیم می‌شود */
    display: block; /* نمایش به صورت بلوکی */
    margin: 0 auto; /* مرکز کردن لوگو */

        position:absolute; /* لوگو ثابت می‌ماند */
        top: 5px;       /* فاصله از بالا */
        left: 5px;      /* فاصله از چپ */
        z-index: 100;   /* همیشه بالای سایر محتوا باشد */
    }
    
  


/* برای صفحه‌های بزرگتر مثل دسکتاپ */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
    nav a {
        margin: 0 20px;
    }
}

/* برای تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 16px;
    }
    .gallery-container {
        flex-direction: row;
    }
    .gallery-item img {
        max-width: 100%;
    }
}

/* برای موبایل */
@media (max-width: 767px) {
    body {
        font-size: 12px;
    }
    header h1 {
        font-size: 15px;
    }
    nav a {
        display: block;
        margin: auto px 0;
        text-align: center;
    }
    .gallery-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    .gallery-item img {
        width: 100%;
    }
    .social-media img {
        width: 30px;
        height: 30px;
    }
}
.star-rating .star {
    font-size: 20px;
    cursor: pointer;
    color: gold;
}




* {
    font-family: sans-serif;
}

body {
text-:center;
}

.btn {
    padding: 5px 18px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0px 25px;
    color: rgb(7, 5, 5);
    background-color: rgb(255, 255, 255);
}

legend {
    font-weight: bold;
    color: rgb(17, 16, 16);
}

input[type="text"], input[type="email"]{
    width: 80%;
    height: 30px;
    border-radius: 5px;
}

textarea{
    width: 80%;
    height: 80px;
}

label {
    float: left;
    position: relative;
    left: 9.5%;
}

fieldset {
    background-image: linear-gradient(to bottom left, rgb(13, 13, 14), rgb(14, 139, 223), rgb(238, 238, 15));
}





body {
    margin: 0;
    font-family: Arial, sans-serif;
}



.content {
    margin: 100px; /* برای جلوگیری از همپوشانی با لوگو */
}










/* استایل کلی */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: rgb(0, 0, 0);
    line-height: 1.6;
}

/* ناوبری */
nav {
    background: rgb(20, 12, 12);
    color: rgb(255, 255, 255);
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s;
}

nav a:hover {
    color: #fc9801;
}

/* عناوین بخش‌ها */
h2 {
    font-size: 1.8em;
    color: rgb(255, 169, 8);
    margin: 20px 0;
    text-align: center;
    border-bottom-style: 5px solid rgb(0, 0, 0);
    padding-bottom: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* گالری تصاویر */
#image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

#image-gallery .gallery-item {
    max-width: 100px;
    width: 100%;
    height: auto;
    border-radius: 1px;
    box-shadow: 0px 4px  rgba(216, 40, 40, 0.1);
    margin: 100px;
}

#image-gallery .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#image-gallery img {
    width: 50%;
    height: auto;
    border-radius: 10px;
}

.gallery-item .star-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #ffd700;
}

/* گالری ویدیوها */
#video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 500;
    max-width: 1200px;
}

#video-gallery .video-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

#video-gallery .video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 px 4px rgba(0, 0, 0, 0.2);
}

#video-gallery video {
    width: 100%;
    height: auto;
    border-radius: 500px;
}

/* تنظیمات بخش‌ها */
section {
    padding: 20px 300;
    border-bottom: 15px solid rgb(255, 166, 0);
    background-color: rgba(255, 255, 255, 0.986);
    margin-bottom: 20px;
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    h2 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 1em;
        margin: 0 10px;
    }

    #image-gallery,
    #video-gallery {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 0.9em;
        margin: 0 5px;
    }

    h2 {
        font-size: 1.3em;
    }
}



/* Video container styling */
.video-container {
    display: table-row-group;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
    padding: 10px;

    text-align: center;
}

/* Styling for each video */
video {
    max-width: auto;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px;
}

/* Styling for the section title */
h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 100px;
}
