/*основные цвета*/
:root{
    --c-blue: #43a1a7;;
    --c-red: #db4242;
    --c-dark-grey: #56666a;
    --c-light-grey: #a4b6ba;
}

*{
    margin: 0;
    padding: 0;
}

ul, li{
    padding: 0;
    list-style-type: none;
}

#content{
    overflow-x: hidden;
}

button,
button:active,
button:focus {
    outline: none;
    border:none
}

a,
a:hover,
a:active,
a:visited,
a:focus
{
    text-decoration: none;
    color: white;
    cursor: pointer;
}

img{
    width: 100%;
    height: 100%;
}

body{
    font-family: Roboto, serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    background-color: #cde6ed75;
    color: #1f1f55;
}

select{
    font-family: Roboto, serif !important;
}

select option {
    font-family: Roboto, serif !important;
}

.block{
    padding: 15px;
    width: 500px;
}

.block textarea{
    font-family: Roboto, serif !important;
    height: 100px !important;
    resize: none;
}

header{
    position: fixed;
    width: 100%;
    height: 60px;
    left: 0;
    top: 0;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 8px;
}

.load-img {
    position: relative;
    flex: 0 0 auto;
    display: inline-block;
    width: 100px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-position: 50% center;
    background-image: url('../img/add-image.png');
    background-repeat: no-repeat;
    background-size: 50px;
    background-color: rgba(41, 43, 83, .03);

    margin-right: 5px;
    margin-top: 5px;
}

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%;
}

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;
}

 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;
}

header img{
    width: 50px;
    margin-right: 10px;
}

header p{
    margin: 0 5px 0 0;
    width: 200px;
}

.main-page{
    margin-top: 80px;
}

.main-block{
    height: 300px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.main-block .image{
    height: 174px;
}

.main-block .image img{
    border-radius: 12px 12px 0 0;
}

.main-block .name{
    height: 126px;
    padding: 8px;
}

.main-block .name p {
    color: black;
    margin: 0;
}

.file{
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.file p{
    margin-bottom: 0;
    margin-right: 10px;
}

.file i{
    font-size: 20px;
    color: red;
}

#result-images{
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#result-images div{
    position: relative;
    display: inline-block;
    width: fit-content;
    margin-right: 5px;
    margin-top: 5px;
}

#result-images img{
    position: relative;
    width: 100px;
    height: 80px;
    background-size: cover;
    vertical-align: bottom;
    border-radius: 4px;
}


.footer{
    position: fixed;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 8px;
}

@media (max-width: 768px) {
    .block{
        width: 100%;
    }

    .main-img{
        height: 200px;
        object-fit: cover;
    }

    .btn{
        width: 100% !important;
    }

    header p {
        width: auto;
        font-size: 12px !important;
    }
}
