/*отступы*/
.mb-1{
    margin-bottom: 10px;
}

.mb-2{
    margin-bottom: 20px;
}

.mt-1{
    margin-top: 10px;
}

.mt-2{
    margin-top: 20px;
}
/*объекты на главной*/
.card {
    width: 360px;
    margin: 10px;
}

.row {
    flex-wrap: wrap;
    justify-content: center;
}

.card .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card .image {
    position: relative;
}

.card .image > div {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 100px;
    background: #4d424291;
    color: white;
}

.album {
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 1050;
}

.album .images img {
    margin: 5px 0;
    max-width: 100%;
}

.album .window {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-sizing: border-box;
    background: var(--background-color-blank);
    width: 600px;
    max-width: 80%;
    min-height: 100px;
    border-radius: 0.375rem;
    box-shadow: 0 0 70px var(--dialog-shadow-color);
    transform: translate(0, 0);
    height: fit-content;
    right: 0;
    margin: auto;
    bottom: 0;
}

.album .album-header {
    padding: 1.5rem;
    margin: 0;
}

.album .album-content {
    right: auto;
    bottom: 1.5rem;
    padding: 1.5rem;
    min-height: 4rem;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: 70vh;
}

.album .album-content .maf{
    margin-bottom: 10px;
    display: grid;
}

.album .album-content .maf .name{
    font-weight: bold;
}

.album .album-content .maf .message{
    margin-left: 10px;
}

.album .background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: var(--dialog-background-color);
    opacity: 1;
    backdrop-filter: blur(0.25rem);
}

.album .album-footer {
    margin: 1rem 0 0;
    padding: 0 1.5rem 1.5rem 1.5rem;
}


.object{
    display: flex;
    margin: 20px 0 10px 0;
}

.object img{
    width: 100%;
}

.send_report{
    background-color: #f5f5f5;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
}

.send_report button{
    color: white;
}

.smafs{
    display: flex;
    flex-wrap: wrap;
}

.smaf{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 30%;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.smaf .img{
    width: 100%;
    position: relative;
}

.smaf .img .button{
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 100px;
    background: #4d424291;
    color: white;
    font-size: 12px;
}

.smaf .img img{
    object-fit: cover;
    height: 300px;
    width: 100%;
}

.smaf p{
    position: relative;
    top: 2px;
}

.smaf button{
    position: relative;
    bottom: 2px;
}

.smaf button.edit{
    background-color: rgb(219, 219, 219);
    color: black;
}

.report_smaf{
    margin: 20px 0 10px 0;
}

.report_smaf h2{
    margin-bottom: 20px;
}

.report_smaf textarea{
    width: 100%;
    height: 200px;
}

.report_smaf button{
    margin-bottom: 20px;
}

.report_smaf .images{
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.report_smaf .add-image span{
    color: #555555;
}

.report_smaf .load-img{
    position: relative;
    flex: 0 0 auto;
    display: block;
    margin-right: 16px;
    width: 64px;
    height: 64px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-position: 19px center;
    background-image: url('../img/add-image.png');
    background-repeat: no-repeat;
    background-size: 28px;
    background-color: rgba(41,43,83,.03);
}

.report_smaf .load-img img{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: auto;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    max-width: 100%;
}

.report_smaf button.del-image{
    width: 22px;
    height: 22px;
    top: 5px;
    right: 5px;
    display: inline-block;
    font-size: 0;
    line-height: 1;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    border-radius: 50%;
}

.report_smaf button.del-image::before{
    transition: background .3s ease 0s;
    background-color: grey;
    border-radius: 2px;
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%) rotate(45deg);
    transform: translate(-50%,-50%) rotate(45deg);
    width: 2px;
    height: 12px;
}

.report_smaf button.del-image::after{
    transition: background .3s ease 0s;
    background-color: grey;
    border-radius: 2px;
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%) rotate(45deg);
    transform: translate(-50%,-50%) rotate(45deg);
    width: 12px;
    height: 2px;
}

/*modal*/
.md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 2000;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-modal-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: auto;
    z-index: 2500;
    visibility: hidden;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.md-show {
    visibility: visible;
}

.md-show ~ .md-overlay {
    opacity: 1;
    visibility: visible;
}

.md-show .info {
    background: white;
    padding: 20px;
}

/* Content styles */
.md-content {
    color: black;
    background: white;
    position: relative;
    margin: 0 auto;
}

.md-content button {
    display: block;
    margin: 0 auto;
    outline: none;
    color: white;
}

.md-content .md-close {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: url('../img/close.png') no-repeat center;
    cursor: pointer;
    margin-top: 0;
}

.md-content input{
    width: 100%;
}

.content-block h3{
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 15px;
    font-size: inherit;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.object-search{
    display: flex;
    border-radius: 5px;
    padding: 0 10px;
    margin: 20px 0;
}
.object-search form{
    width: 100%;
}
.object-search form input[type=search]{
    width: 100%;
    border: 0;
    height: 40px;
    background-color: var(--white);
}

/*tab & mobile*/
@media screen and (max-width: 768px) {
    /*объекты на главной*/
    .album .album-content {
        max-height: 80vh;
    }

    .album .window {
        max-width: 100%;
        width: 100%;
        height: 100%;
    }

    .album .album-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        background: white;
        padding: 25px;
    }

    .album {
        padding: 1rem;
    }

    .objects{
        justify-content: center;
    }

    .object{
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .object h2{
        margin-top: 20px;
    }

    .smafs{
        padding: 5px;
    }

    .smaf{
        width: 100%;
    }

    .md-modal-msg{
        width: 95%;
    }

    .report_smaf{
        padding: 0 10px;
    }
}

.nav-auth-btns button{
    width: 48%;
}