﻿
.avatar_container {
    float: right;
}

.avatar {
    position: relative;
}

.avatar .btn {
    opacity: 0.5;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.avatar:hover .btn {
    opacity: 1;
}

.avatar .fileUpload {
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.avatar .fileUpload input {
    position: absolute;
    top: 0px;
    right: 0px;
    margin: 0px;
    padding: 0px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}

.avatar .btn_photo {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -57px;
    margin-top: -10px;
    -moz-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.avatar .btn_delete,
.avatar .btn_cancel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 117px;
    margin-left: -57px;
    margin-top: 40px;
    -moz-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.avatar .image {
    text-align: center;
}

.avatar img {
    width: auto !important;
    height: 170px !important;
}

.avatar .notice {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0px;
    padding: 5px 15px;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.3em;
    background: rgba(139, 27, 41, 0.52);
}

.avatar_delete_notice,
.avatar_invalid_notice {
    color: #FF0000;
    text-align: center;
}

.avatar_pending_notice {
    margin-bottom: -42px;
    text-align: center;
}

.avatar_delete_notice p,
.avatar_invalid_notice p,
.avatar_pending_notice p {
    display: inline-block;
    margin: 4px 0px 0px 0px;
    max-width: 170px;
    font-size: 0.85em;
    line-height: 1.4em;
}

@media screen and (max-width : 767px) {

    .avatar_container {
        float: none;
    }

    .avatar_pending_notice {
        margin-bottom: 0px;
    }

    .avatar {
        position: relative;
        width: 170px;
        margin: 15px auto;
    }

    .avatar .notice {
        text-align: center;
    }

    .avatar img {
        width: 100% !important;
        height: auto !important;
    }
}