@font-face {
    font-family: vaz;
    src: url(/frontend/assets/fonts/BYekanBold.ttf);
}

@font-face {
    font-family: rub;
    src: url(/frontend/assets/fonts/BYekan.ttf);
}



html {
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    height: auto;
    overflow-x: hidden;
    overflow-y: scroll;
}

@media screen and (min-width:900px) {
    html {
        overflow: hidden;
    }
}

[scroll] {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
}

.c-scrollbar {
    display: none !important;
}


body {
    min-width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    overflow: hidden;
    scroll-behavior: smooth;
}

main {
    direction: ltr;
    width: 100%;
    z-index: 0;
    animation: fadeIn 500ms ease;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 300ms ease;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch !important; 
    background: var(--bg);
    will-change: transform;
}

main::-webkit-scrollbar {
    width: 13px !important;
}

main::-webkit-scrollbar-track {
    background: var(--p) !important;
}

main::-webkit-scrollbar-thumb {
    background: var(--item-2) !important;
    border: 3px solid var(--bg) !important;
    border-radius: 150px !important;
}

.id {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 300px;
    z-index: 1;
    strong:nth-of-type(1) {
        position: absolute;
        text-align: center;
        font-family: vaz;
        font-size: 3em;
        color: var(--p-s);
        z-index: 1;
        
    }
    strong:nth-of-type(2) {
        position: absolute;
        text-align: center;
        font-family: rub;
        font-size: 2.5em;
        opacity: 0.1;
        z-index: 0;
        color: var(--text-1);
        text-transform: uppercase;
        transform: rotateY(180deg);
    }
    hr {
        background: var(--item-2);
        border:none;
        width: 200px;
        height: 2px;
        border-radius: 150px;
        bottom: -40px;
        position: relative;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}
:root {
    --bg: #ffffff;
    --bg-a:#dbd8d8cb;

    --p-color: #d2b48c;
    --s-color: #f5deb3;
    --p-s: #d2b48c;
    --s-p: #f5deb3;

    --header: #000000;
    --text-1:#252525;
    --text-2:white;
    --text-1-s:#252525;
    --text-2-s:white;

    --item-1:rgb(255, 255, 255);
    --item-1-a:rgba(255, 255, 255,0.9);
    --item-1-s:rgb(255, 255, 255);
    --item-1-a-s:rgba(255, 255, 255,0.9);
    --item-2:rgb(55, 55, 55);
    --item-2-a:rgba(45, 45, 45,0.9);
    --item-2-s:rgb(45, 45, 45);
    --item-2-a-s:rgba(45, 45, 45,0.9);

    --img:linear-gradient(to right,#ffffff,#c4c4c4);

    --btn-1:rgb(31, 31, 31);
    --btn-1-a:rgba(31, 31, 31, 0.9);
    --btn-1-s:rgb(31, 31, 31);
    --btn-1-a-s:rgba(31, 31, 31, 0.9);
    --btn-2:rgb(255, 255, 255);
    --btn-2-a:rgba(255, 255, 255,0.9);
    --btn-2-s:rgb(255, 255, 255);
    --btn-2-a-s:rgba(255, 255, 255,0.9);

    --succ: #28A745;
    --err: #DC3545;
    --warn: #FFC107;
    --info: #f3f3f3;
    
    --black-static:black;
    --white-static:white;

    --mirror:rgba(189, 188, 188, 0.75);
}

[data-theme="dark"] {

        --bg: #242424;
        --bg-a:#424242a8;
    
        --p-color: #f5deb3;
        --s-color: #d2b48c;
        --p-s: #d2b48c;
        --s-p: #f5deb3;

        --header: #ffffff;
        --text-1:#d4d4d4;
        --text-2:#000000;
        --text-1-s:#000000;
        --text-2-s:white;
    
        --item-1:rgb(19, 19, 19);
        --item-1-a:rgba(19, 19, 19, 0.9);
        --item-1-s:rgb(255, 255, 255);
        --item-1-a-s:rgba(255, 255, 255,0.9);
        --item-2:rgb(255, 255, 255);
        --item-2-a:rgba(255, 255, 255,0.9);
        --item-2-s:rgb(19, 19, 19);
        --item-2-a-s:rgba(19, 19, 19,0.9);
    
        --img:linear-gradient(to right,#ffffff,#7c7c7c);
    
        --btn-1:rgb(255, 255, 255);
        --btn-1-a:rgba(255, 255, 255, 0.9);
        --btn-2:rgb(0, 0, 0);
        --btn-2-a:rgba(0, 0, 0, 0.9);
        --btn-1-s:rgb(0, 0, 0);
        --btn-1-a-s:rgba(0, 0, 0, 0.9);
        --btn-2-s:rgb(255, 255, 255);
        --btn-2-a-s:rgba(255, 255, 255,0.9);

        --succ: #4CAF50;
        --err: #F44336;
        --warn: #FFEB3B;
        --info: #f8f8ff;


        --black-static:black;
        --white-static:white;

        --mirror:#ffffffa2;
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-drag: none;
}


*::selection {
    color:var(--text-2);
    background:var(--item-2-a);
}



* {
    user-select: none;
    outline: none;
}

ul {
    padding: 0;
}

#img-box {
    background: linear-gradient(to right,#ffffff,#c4c4c4,#ffffff);
    background-size: 400% 100%;
    animation:img 3s ease infinite;
}

.grecaptcha-badge { 
    display: none !important;
}

#back {
    position: absolute;
    cursor: pointer;
     top:30px;
     left:30px;
     color:var(--item-2);
     font-size: 2em;
     z-index:1000;
}


.blogs {
    display: flex;
    align-items: center;
    justify-content:center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 0;
}
.blogs aside {
    display: flex;
    max-width:1200px;
    flex-direction: row;
    align-items: center;
    justify-content:center;
    flex-wrap: wrap;
}
.blogs li {
    position: relative;
    width: 220px;
    height: 330px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: left;
    font-size: 10px;
    margin:70px;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.4);
    transition: box-shadow 300ms ease;
}

@media screen and (max-width:900px) {
    .blogs li strong {
        transform: translate(0,0) !important;
        font-size: 1em;
    }
    
    .blogs li:hover strong {
        transform: unset !important;
    }

    .blogs li p {
        transform: translate(0,20%) !important;
    }

    .blogs li:hover p {
        transform:unset !important;
    }
}

.blogs li:hover {
    box-shadow: none;
}

.blogs li:hover strong {
    transform: translateX(0);
}

.blogs li:hover p {
    transform: translate(0,23%);
}


.blogs li strong {
    transition: transform 300ms ease;
    position: absolute;
    top: 5px;
    font-size: 3em;
    white-space: nowrap;
    font-family: vaz;
    color:var(--text-1);
    padding-bottom: 5px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}
.blogs li p {
    transition: transform 300ms ease;
    font-size: 1.5em;
    font-family: rub;
    margin:0;
    width:70%;
    height: 250px;
    position: absolute;
    transform: translate(50%,50%);
    overflow-y: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    color:var(--text-1);

}

.blogs div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top:0;
    left:0;
    overflow: hidden;
    z-index: 0;
}

.blogs div img {
    height: 120%;
    object-fit: contain;
}


.blogs li section {
    width: 100%;
    height: 100%;
    background:rgba(255, 255, 255, 0.3);
    position: absolute;
    top:0;
    right:0;
    margin:0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] {
    .blogs li section {
        background:rgba(0, 0, 0, 0.3);
    }
}

.blogs li a {
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.blog {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    box-sizing: border-box;
    ul {
        width: 1500px;
        display: flex;
        align-items: flex-start;
        justify-content: space-around;
        flex-direction: row;
        flex-wrap: wrap;
        list-style:none;
        gap: 50px;
        -webkit-gap:50px;
        @media screen and (max-width:1500px) {
            width: 90%;
        }
        li {
            width: 420px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            flex-direction: column;
            position: relative;
            a {
                width: 100%;
                aspect-ratio: 16 / 9;
                border-radius: 20px;
                overflow: hidden;
                padding: 0;
                margin: 0 0 20px 0 !important;
                box-shadow: 0 30px 150px rgba(0,0,0,.3);
                div {
                    width: 100%;
                    height: 100%;
                    border-radius: 20px;
                    overflow: hidden;
                    background: var(--bg-a);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    cursor: pointer;
                    img {
                        width: 120%;
                        transition: transform 500ms ease;
                    }
                    span {
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        right: 0;
                        opacity: 0;
                        background: rgba(0, 0, 0, 0.4);
                        transition: opacity 300ms ease;
                        display: grid;
                        place-items: center;
                        i {
                            font-size: 2em;
                            color: var(--p-s);
                            width: 60px;
                            height: 60px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 150px;
                            background: var(--item-1);
                        }
                    }
                }
                div:hover span {
                    opacity: 1;
                }
                div:hover img {
                    transform: scale(1.2);
                }
            }
            h2 {
                color: var(--p-s);
                font-family: rub;
                font-size: 1em;
                margin: 5px 15px;
                padding: 0;
            }
            h1 {
                color: var(--header);
                font-family: vaz;
                font-size: 1.5em;
                margin: 2px 15px;
                padding: 0;
            }
            p {
                width: 90%;
                font-family: rub;
                color: var(--text-1);
                margin:15px;
            }
            a:has(button) {
                width: unset;
                aspect-ratio: unset;
                text-decoration: none;
                margin: 0 15px !important;
                cursor: pointer;
                button {
                    background: none;
                    font-size: 1em;
                    text-align: right;
                    font-family: vaz;
                    border: none;
                    position: relative;
                    color: var(--s-p);
                    padding: 0;
                    cursor: pointer;
                    transition: color 300ms ease;
                }
                button::after {
                    content: '';
                    position: absolute;
                    bottom: -5px;
                    right: 0;
                    width: 100%;
                    height: 1px;
                    border-radius: 150px;
                    background: var(--item-2);
                }
                button:hover {
                    color: var(--p-s);
                }
            }
        }
    }
}

@keyframes img {
    50% {
        background-position: 100% ;
    }

    0%,100% {
        background-position:200%;
    }
}
