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: flex;
    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%;
}

.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: lightgray;
    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;
    font-family: Arial;
}

.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: lightsalmon;
    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;
}

.up {
    color: black;
    background: yellowgreen;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid greenyellow;
}
.up:hover {
    background: yellow;
}

.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: bisque;
}

.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: bisque;
}

.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;
}

.dropdown-menu{
    max-height: 300px;
    overflow: auto;
}



@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;
    }
}
