﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #201371, #75777c, #a8a5a5) no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

header {
    width: 100vw;
    background: linear-gradient(to bottom, #5d49e1, #201371);
    height: 100px;
    display: flex;
    justify-content: flex-start;
    gap: 400px;
    align-items: center;
    padding: 0 200px;
}

#Zarebin_Icon, #Home_Icon {
    font-size: 40px;
    color: #d8d8d8;
}

header input {
    border-radius: 20px;
    width: 400px;
    height: 40px;
    text-align: center;
    background-color: #d8d8d8;
}

#Header_Down img {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: -10px;
    z-index: 1;
}

#Leftside {
    display: flex;
    width: 200px;
    height: 100vh;
    margin-left: 10px;
    margin-top: -60px;
    align-self: stretch;
    background: linear-gradient(to bottom, #201371, #9b91d7, #bfb6faff);
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 0;
    /*overflow-y: auto;*/
}

#Container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #5d49e1,#5d49e1,#bababa,#ebe7e7);
    margin-left: 210px;
    margin-top: -770px;
    z-index: 0;
    overflow-y: auto;
}


h1 {
    font-size: 20px;
    text-align: left;
    margin-top: 20px;
    margin-left: -15px;
}

#Signup_Icon a, #Product_Icon a, #AboutUs_Icon a {
    color: #d8d8d8;
    font-size: 40px;
}

.content {
    display: flex;
    flex-direction: column;
    width: 600px;
    height: 470px;
    margin: 80px 400px;
    background-color: #e6e6e6;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
#aboutus {
    text-align: center;
    font-size: 26px;
}

#explain{
    text-align:center;
    margin-top:30px;
    font-weight:bold;
    font-size:26px;
}
#builder {
    text-align: center;
    font-weight: bold;
    margin-top: 220px;
    font-size: 26px;
}
#footer {
    display: flex;
    width: 100vw;
    height: 110px;
    background: linear-gradient(to bottom, #5d49e1, #201371);
}

#layer_image {
    width: 200px;
    height: 100px;
    margin-left: 10px;
}

img {
    border-radius: 20px;
    margin-top: 5px;
}

#footerexp {
    /*display: inline-block;*/
    text-align: center;
    margin: 40px auto;
    color: white;
}

@media (max-width: 1290px) {

    /* سایدبار رو کلاً مخفی کن */
    #Header_Down {
        display:none;
    }
    #footer{
        display:none;
    }
    #Leftside {
        display: none !important;
    }

    /* 🆕 Container رو ریست کن (این مهم‌ترین بخشه) */
    #Container {
        margin-left: 0 !important; /* فاصله از چپ رو صفر کن */
        margin-top: 0 !important; /* کشیدگی بالا رو صفر کن */
        width: 100%; /* تمام عرض */
        min-height: auto; /* ارتفاع خودکار */
        padding: 15px; /* فاصله داخلی */
    }

    .content {
        width: 100%; /* کارت‌ها تمام عرض */
        margin: 10px 10px; /* فاصله بالا و پایین */
    }

    .content {
        width: 90%;
        max-width: 350px;
        height: auto; /* ← ارتفاع خودکار (نه 470px) */
        margin: 15px auto;
        padding: 10px; /* ← فاصله داخلی */
    }
    header {
        position: relative; /* برای اینکه بتونیم input رو دقیق وسط بذاریم */
        justify-content: space-between; /* آیکون‌ها چپ و راست */
        padding: 10px 15px;
    }

        /* 🆕 نوار جستجو دقیقاً وسط */
        header input {
            position: absolute; /* از جریان خارج میشه تا دقیق وسط بشینه */
            left: 50%;
            transform: translateX(-50%); /* دقیقاً وسط */
            width: 45%; /* عرض مناسب برای موبایل */
            max-width: 200px;
            height: 35px;
            font-size: 14px;
        }

    /* آیکون‌ها یکم کوچیک‌تر بشن تا جا باز بشه */
    #Home_Icon, #Zarebin_Icon {
        font-size: 28px;
        z-index: 10; /* بالاتر از input باشن که کلیک‌پذیر باشن */
    }
}