* {
    box-sizing: border-box;
}

.row {
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap; /* IE10 */
    flex-wrap: wrap;
    margin: 0 -16px;
}

.col-20 {
    -ms-flex: 20%; /* IE10 */
    flex: 20%;
}

.col-30 {
    -ms-flex: 30%; /* IE10 */
    flex: 30%;
}

.col-40 {
    -ms-flex: 40%; /* IE10 */
    flex: 40%;
}

.col-50 {
    -ms-flex: 50%; /* IE10 */
    flex: 50%;
}

.col-60 {
    -ms-flex: 60%; /* IE10 */
    flex: 60%;
}

.col-70 {
    -ms-flex: 70%; /* IE10 */
    flex: 70%;
}

.col-100 {
    -ms-flex: 100%; /* IE10 */
    flex: 100%;
}

.col-20,
.col-30,
.col-40,
.col-50,
.col-60,
.col-100 {
    padding: 0 16px;
}

/*.container {
    background-color: #f2f2f2;
    padding: 5px 20px 15px 20px;
    border: 1px solid lightgrey;
    border-radius: 3px;
    max-width: 1000px;
    margin: auto;
}*/

input[type=text] {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type=number] {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type=date] {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type=checkbox] {
    height: 20px;
    width: 20px;
    margin: 0;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

textarea {
    height: 80px;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

label {
    margin-bottom: 10px;
    display: block;
}

.icon-container {
    margin-bottom: 20px;
    padding: 7px 0;
    font-size: 24px;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    margin: 10px 0;
    border: none;
    width: 40%;
    border-radius: 3px;
    cursor: pointer;
    font-size: 17px;
}

.btn-delete {
    background-color: firebrick;
    color: white;
    padding: 12px;
    margin: 10px 0;
    border: none;
    width: 40%;
    border-radius: 3px;
    cursor: pointer;
    font-size: 17px;
    text-align: center;
}

.btn-submit:hover {
    background-color: #45a049;
}

.btn-delete:hover {
    background-color: #45a049;
}

.btns {
    display: flex;
    flex-flow: row;
    justify-content: space-around;
}

a {
    color: #2196F3;
}

hr {
    border: 1px solid lightgrey;
}

span.price {
    float: right;
    color: grey;
}

.quantity {
    height: 19px;
    width: auto;
}

.quantit {
    display: flex;
    flex-flow: row;

}

.title {
    display: flex;
    justify-content: space-between;
    flex-flow: nowrap;
}

.spisok {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.row-spaced {
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    margin: 10px;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other (also change the direction - make the "cart" column go on top) */
@media (max-width: 750px) {
    .row {
        flex-direction: column;
    }

    .col-60 {
        margin-bottom: 20px;
    }

    .btns {
        flex-flow: column;
    }

    .btn-submit {
        width: 100%;
    }

    .btn-delete {
        width: 100%;
    }
}




h2, h3, h4{
    text-align: center;
    color: black;
}

h2{
    font-size: 28px;
    margin: auto;
    max-width: 1020px;
}

h3{
    font-size: 21px;
}

html{
    display: flex;
    flex: auto;
    width: 1200px;
    position: relative;
    left: 50%;
    margin-left: -600px;
}

.header{
    display: flex;
    top: auto;
    margin: 5px auto 0px;
    width: 500px;
    height: 130px;
}

footer{
    display: flex;
    font-size: 10px;
    color: #AFAFAF;
}

.container {
    display: grid;
    margin: auto;
    justify-content: center;
    /*position: center;*/
    top: auto;
    width: 97%;
    max-width: 800px;
    min-width: 400px;
}

body {
    display: flex;
    flex-direction: column;
    width: 98%;
    max-width: 98%;
    min-width: 720px;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: relative;
    background: #FFFFFF url(../img/fon_1.png);
    color: #000000;
    background-attachment: fixed;
    background-size: 100%;
    font-family: Arial, serif;
    font-size: 14px;
    padding: 8px;
}

.form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 16px #ccc;
    background-color: mintcream;
    font-family: sans-serif;
    letter-spacing: 1px;
    width: 980px;
}

.inblock{
    display: flex;
    flex-direction: column;
    margin: 5px;
    width: 97%;
    min-width: 320px;
}

.metka{
    display: flex;
    justify-content: space-between;
    margin: auto;
    width: 97%;
}

.pole{
    display: flex;
    width: 95%;
    flex-wrap: wrap;
    flex-direction: column;
    height: 40px;
}

.chkbox{
    display: flex;
    width: 20px;
    flex-wrap: wrap;
    flex-direction: column;
    height: 20px;
    margin: auto;
    align-content: space-evenly;
}

.polefile{
    display: inline-table;
    width: 95%;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    height: 40px;
}

.formlabel{
    display: flex;
    flex-direction: row;
    margin: 15px 10px 0 0;
    width: 98%;
}

.comm{
    display: flex;
    flex-direction: column;
    margin: auto;
    flex-basis: 90%;
}

.title{
    margin: 0 auto 15px;;
    width: 80%;
    text-align: center;
}

.snoska{
    display: flex;
    margin: 0 30px auto;
    width: 80%;
}

.select_input_fields{
    width: 100%;
    height: 32px;
    color: gray;
    /*background: linear-gradient;*/
}

.butt{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.vstavka{
    margin: auto;
    display: flex;
    width: 70%;
    height: 70px;
    border: #333333;
    padding: 3px;
    background-color: lightyellow;
    color: black;
    border-radius: 10px;
    box-shadow: 0 4px 16px #ccc;
    font-family: sans-serif;
    letter-spacing: 1px;
}

.vstavkaPartner{
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-evenly;
    width: 980px;
    height: auto;
    border: saddlebrown;
    padding: 7px;
    background-color: palegreen;
    color: black;
    border-radius: 10px;
    box-shadow: 0 4px 16px #ccc;
    font-family: sans-serif;
    letter-spacing: 1px;
}

.innervstavka{
    width: 80%;
    height: auto;
    margin: auto;
    text-align: center;
}

.partner{
    margin: 0 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-evenly;
    width: 60%;
    height: auto;
    border: #333333;
    padding: 5px;
    background-color: whitesmoke;
    color: black;
    border-radius: 10px;
    box-shadow: 0 4px 16px #ccc;
    font-family: sans-serif;
    letter-spacing: 1px;
}

.break-word {
    word-wrap: break-word;
}

.inpartner{
    width: 90%;
    height: 90%;
    margin: auto;
    text-align: left;
    font-size: 18px;
    padding-bottom: 1%;
}

li{
    margin-left: 30px;
}

.selector{
    display: flex;
    height: 30px;
    width: 100%;
}

/*ok и clear - стили для кнопок*/
.ok {
    color: black;
    background: palegreen;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid forestgreen;
}
.ok:hover {
    background: limegreen;
}

.clear {
    color: black;
    background: lightcoral;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid coral;
}
.clear:hover {
    background: red;
    color: white;
}

.filesize{
    color: red;
    font-size: 12px;
    font-style: italic;
}

img {
    width: 97%;
    height: 97%;
    min-width: 240px;
    min-height: 100px;
    margin: auto;
    padding: 3px;
}


/*
Блок для раскрывающегося списка со списком скоупов на главной странице приложения
 */
.details {
    position: relative;
    display: block;
    /*margin: 0 auto 10px;*/
    border-radius: 5px;
    transition: 0.3s;
    overflow: hidden;
    background-color: antiquewhite;
}

.details::after {
    position: absolute;
    right: 15px;
    top: 24px;
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 3px solid #000000;
    border-bottom: 3px solid #000000;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: .3s;
    background-color: lightgray;
}

.details[open]::after {
    transform: rotate(45deg);
}

.details[open] {
    padding-bottom: 55px;
}

.details[open] .details__title {
    margin-bottom: -2px;
}

.details__title {
    border: solid 2px black;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    transition: .3s;
    margin: 0;
    background-color: lightgray;
}

.details__title::-webkit-details-marker {
    display: none;
}

.details__content {
    padding: 12px 32px;
    font-size: 14px;
    margin-bottom: -50px;
    border: solid 2px black;
    font-weight: 500;
}

.details__content p:last-child {
    margin-bottom: 0;
}
.details__content p:first-child {
    margin-top: 0;
}
.details__content p {
    margin-top: 0;
    margin-bottom: 5px;
}



@media (max-width: 720px){
    h2{
        font-size: 18px;
    }

    html{
        display: flex;
        flex: auto;
        align-content: center;
        width: 680px;
        position: relative;
        left: 50%;
        margin-left: -340px;
    }

    .butt{
        display: flex;
        flex-direction: column;
        width: 220px;
        margin: auto;
    }

    .box-butt{
        padding: 0px 0px 10px;
    }

    body {
        display: flex;
        flex-direction: column;
        max-width: 97%;
        min-width: 400px;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .form{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 16px #ccc;
        font-family: sans-serif;
        letter-spacing: 1px;
        min-width: 360px;
        max-width: 640px;
    }

    .vstavka {
        margin: 0;
        display: flex;
        width: 97%;
        height: auto;
        font-size: 14px;
    }

    .partner {
        width: 100%;
    }

    .metka{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-between;
        margin: auto;
        width: 90%;
    }

    .header{
        display: flex;
        top: auto;
        margin: 5px auto 0px;
        width: 360px;
        height: 100px;
    }

    img{
        width: 97%;
    }

    .form label {
        display: inline-block;
        margin: 2px 0 2px 0;
        width: 97%;
    }

    .pole{
        display: contents;
    }
}

@media (max-width: 540px){
    h2{
        font-size: 16px;
    }
    html{
        display: flex;
        flex: auto;
        align-content: center;
        width: 500px;
        position: relative;
        left: 50%;
        margin-left: -250px;
    }

    .butt{
        display: flex;
        flex-direction: column;
        width: 220px;
        margin: auto;
    }

    .box-butt{
        padding: 0px 0px 10px;
    }

    body {
        display: flex;
        flex-direction: column;
        max-width: 97%;
        min-width: 360px;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .form{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 16px #ccc;
        font-family: sans-serif;
        letter-spacing: 1px;
        min-width: 340px;
        max-width: 480px;
    }

    .vstavka {
        margin: 0;
        display: flex;
        width: 97%;
        height: auto;
        font-size: 14px;
    }

    .partner {
        width: 100%;
    }

    .metka{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-between;
        margin: auto;
        width: 90%;
    }

    .header{
        display: flex;
        top: auto;
        margin: 5px auto 0px;
        width: 360px;
        height: 100px;
    }

    img{
        width: 97%;
    }

    .form label {
        display: inline-block;
        margin: 2px 0 2px 0;
        width: 97%;
    }

    .pole{
        display: contents;
    }
}

@media (max-width: 460px){
    h2{
        font-size: 16px;
    }

    html{
        display: flex;
        flex: auto;
        align-content: center;
        width: 440px;
        position: relative;
        left: 50%;
        margin-left: -220px;

    }

    .butt{
        display: flex;
        flex-direction: column;
        width: 220px;
        margin: auto;
    }

    .box-butt{
        padding: 0px 0px 10px;
    }

    body {
        display: flex;
        flex-direction: column;
        max-width: 97%;
        min-width: 320px;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .form{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 16px #ccc;
        font-family: sans-serif;
        letter-spacing: 1px;
        min-width: 300px;
        max-width: 400px;
    }

    .vstavka {
        margin: 0;
        display: flex;
        width: 97%;
        height: auto;
        font-size: 14px;
    }

    .partner {
        width: 100%;
    }

    .metka{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-between;
        margin: auto;
        width: 97%;
    }

    .header{
        display: flex;
        top: auto;
        margin: 5px auto 0px;
        width: 360px;
        height: 100px;
    }

    img{
        width: 97%;
    }

    .form label {
        display: inline-block;
        margin: 2px 0 2px 0;
        width: 97%;
    }

    .pole{
        display: contents;
    }
}