@import "../../styles/variables";

.profile {
    padding-bottom: 0;

    .caption-page {
        padding: 10rem 0 5rem;
    }

    h5 {
        color: $color-mint;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    &-card {
        display: flex;
        flex-wrap: wrap;
        padding: 5rem 0 10rem;

        .avatar {
            width: 280px;
            margin-right: 5rem;
    
            img {
                width: 100%;
            }
        }

        .user-info {
            padding-left: 10rem;
            border-left: 1px solid $color-mint;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-grow: 1;

            .item {
                font-size: 1.8rem;
                color: $color-black;
                padding: 1rem 0;
                font-weight: $normal;

                span {
                    display: inline-block;
                }

                .cap {
                    width: 7rem;
                    color: $color-blue;
                }

                .info {
                    padding-left: 2rem;
                    font-weight: $bold
                }
            }
        }
    }

    @media screen and (max-width: $medium) {
        h5 {
            text-align: center;
        }
    }

    @media screen and (max-width: $small) {
        &-card {
            justify-content: center;

            .avatar {
                width: 180px;
                margin-right: 0;
                margin-bottom: 2rem;
            }

            .user-info {
                width: 100%;
                border-left: 0;
                padding-left: 0;
                padding-top: 3rem;
                border-top: 1px solid $color-mint;

                .item {
                    display: flex;
                    
                    span {
                        display: block;
                    }

                    .cap {
                        text-align: right;
                        padding-right: 0.5rem;
                        width: 35%;
                    }

                    .info  {
                        padding-left: 0.5rem;
                        width: 65%;
                    }
                }
            }
        }    
    }
}