@font-face {
    src: url('../fonts/iransansdn.ttf'),
    url('../fonts/iransansdnbold.ttf');
    font-family: iransans;
}

* {
    box-sizing: border-box;
}

:root {
    --dark : rgb(33, 43, 59);
    --gray1 : rgba(128, 128, 128, 0.077);
}

@keyframes userImage {
    0%{
        scale: 0;
    }
    100% {
        scale: .99;
    }
}


@keyframes loading {
    0% {
        margin-right: auto;
    }
    50% {
        margin-right: auto;
        margin-left: auto;
    }
    100% {
        margin-left: auto;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: iransans;
    overflow-x: hidden;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:background-color .5s linear;
    a {
        text-decoration: none;
    }
    user-select:none;
    -webkit-tap-highlight-color: transparent;
}

body.dark {
    background-color: var(--dark);
    a,p,h2 {
        color: #fff;
    }
    .taskbar {
        background-color: #2f3443;
        box-shadow: none !important;
    }
    .dark-mode {
        color: #fff;
    }
    .show-items {
        color: #fff;
    }
    .user-img {
        img {
            border-color: var(--dark);
        }
    }

}

.container {
    width: 80%;
    margin: 0 auto 0 auto;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    .site-logo {
        img {
            width: 250px;
        }
    }
    .user-img {
        display: flex;
        position: absolute;
        right: 10px;
        transform: translateY(70px);
        border-radius: 100%;
        img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 100%;
            border: 5px solid #fff;
            animation: userImage 2s ease;
            transition: border-color .25s linear;
        }
    }
}

.follow-dark-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    .user-followers {
        margin-right: auto;
        .counter {
            text-align: center;
            color: #fff;
            padding: 10px;
            border-radius: 30px;
            font-size: 15px;
            h4 {
                padding: 10px;
            }
        }
    }
    .dark-mode {
        background-color: var(--gray1);
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        cursor: pointer;
    }
}

.user-detail {
    display: flex;
    flex-direction: row;
    color: black;
    border-bottom: 1px solid gray;

    .des {
        margin-top: -10px;
    }
    .user-brand {
        display: flex;
        justify-content: space-between;
        align-items: center
    }
}


.social-media {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    a {
        display: flex;
        justify-items: center;
        color: #000;
        gap: 5px;
        span {
            margin: auto 0 auto 0;
        }
        .icon {
            width: 30px;
            height: 30px;
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 100%;
            i {
                display: flex;
                font-size: 15px;
            }
        }
    }
}

.taskbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 60%;
    height: 60px;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 25px;
    background-color: #fff;
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
    border-radius: 50px;

    .home {
        width: 80px;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        color: #fff;
        box-shadow: 0px 0px 5px rgb(0,110,255);
    }
    .home:active {
        transform: scale(.95);
    }
    i {
        font-size: 30px;
        display: flex;
    }
}

.items {
    display: flex;
    align-items: center;
    .qrcode-img {
        margin-right: auto;
        width: 100px;
        height: 100px;
        img {
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }
    }
}

@keyframes showIcons {
    0%{
        width: 0;
        visibility:hidden;
        opacity: 0;
    }
    100% {
        width: 100%;
        visibility : visible;
        opacity: 1;
        scale: 1.25;
    }
}

@keyframes hideIcons {
    0%{
        width: 100%;
        visibility : visible;
        opacity: 1;
    }
    100% {
        width: 0;
        visibility:hidden;
        opacity: 0;
        scale: 0;
    }
}

.contact-items {
    margin-right: auto;
    .contact {
        display: flex;
        align-items: center;
        .show-items {
            background-color: var(--gray1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 5px;
            border-radius: 5px;
            margin-top: 5px;
            cursor: pointer;
            margin-right: auto;
            i {
                font-size: 1.5rem;
            }
        }
        .contact-icons {
            position: fixed;
            right: 0;
            left: 0;
            padding: 10px;
            margin-right: auto !important;
            margin-left: auto !important;
            width: 70% !important;
            border-radius: 10px;
            list-style: none;
            margin-left: 5px;
            display: flex;
            flex-direction: column;
            visibility: hidden;
            animation: hideIcons .25s ease forwards;
            .btn-close {
                border: none;
                width: 30px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 100%;
                cursor: pointer;
            }
            .icons {
                display: flex;
                flex-wrap: wrap;
                gap: 20px;
                justify-content: center;
                a {
                    background-color: #fff;
                    border-radius: 100%;
                    height: 60px;
                    width: 60px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 10px;
                    i {
                        font-size: 2rem;
                    }
                }
            }
        }
        .contact-icons.active {
            animation: showIcons .25s ease forwards;
        }
    }
}
