/* основные стили */

* {
    -webkit-appearance: none;
    -moz-appearance: none;
}

h3 {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    padding: 10px;
}

/* стили формы */
form {
    margin: 0 auto;
    font-size: 20px;
    min-height: 500px;
    font-style: italic;
}

.flex-container {
    display: flex;
    justify-content: space-evenly;
}

.fName {
    width: 500px;
    height: fit-content;
    margin-top: 30px;
    margin-left: 15px;
    position: relative;
}

.fName label {
    display: block;
    padding-left: 30px;
}

.fName input {
    width: 400px;
    height: 40px;
    margin-top: 10px;
    padding-left: 15px;
    display: block;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 20px;
    font-family: Tahoma, sans-serif;
}

input:focus {
    box-shadow: none;
    border: 5px solid #2f3640;
}

/*Стили для тогоб чтобы показывать пароль*/
.showPassword {
    position: absolute;
    top: 34px;
    right: 108px;
    display: inline-block;
    width: 30px;
    height: 30px;
    border: none;
    background-image: url("../img/eye.svg");
    background-position: 0 0;
    background-repeat: no-repeat;
    cursor: pointer;
}

.showPassword.view {
    background-image: url("../img/noEye.svg");
}

/* Выбор аватара */

.fileInput {
    margin-top: 12px;
}

.fileInput p {
    padding-bottom: 10px;
}

.fileInput input {
    display: none;
}

.fileInput label {
    width: 380px;
    height: 45px;
    padding-top: 12px;
    padding-left: 20px;
    cursor: pointer;
    display: inline-block;
    background-color: #2f3640;
    color: #f5f6fa;
    border-radius: 8px;
}

/*Отображение аватара*/
.imgPreview {
    margin-top: 30px;
}

.imageAva {
    display: block;
    width: 350px;
    height: 350px;
    margin: 0 25px;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

/*Добавление описания автора*/
.additional {
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
}

.about_me_header {
    width: 70%;
    margin: 10px auto;
}

textarea {
    display: block;
    width: 70%;
    height: 400px;
    margin: 10px auto;
    padding: 10px;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 1em;
    font-family: Tahoma sans-serif;
    background-color: white;
}


/* добавление слциальных сетей */
/* https://qna.habr.com/q/585750  +  и  ~  в css    */

.social-box {
    list-style-type: none;
}


.sc-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: .5em;
}

.sc-block input {
    display: inline-block;
    width: 500px;
    height: 40px;
    margin-right: 100px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 20px;
    font-family: Tahoma,sans-serif;
}

.sc-block input:focus {
    box-shadow: none;
    border: 5px solid #2f3640;
}

.sc-block label {
    padding-top: 10px;
    display: inline-block;
    margin-left: 100px;
}

/* Buttons */
.btn, .additionalBtn, .regBtn {
    width: 300px;
    height: 45px;
    display: block;
    font-size: 20px;
    padding: 8px 24px;
    border-radius: 8px;
    margin: 16px auto 0;
    border: none;
    background: #e74c3c;
    color: #f5f6fa;
    cursor: pointer;
}

@media (max-width: 900px) {
    * {
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    h3 {
        font-size: 1em;
    }

    form {
        width: 98%;
        margin: 0 auto;
        font-size: .8em;
        min-height: 500px;
        font-style: italic;
    }

    .flex-container {
        display: block;
    }

    .flex-wrapper {
        width: 100%;
    }

    .fName {
        width: 95%;
        height: 60px;
        margin: 20px auto 0;
        position: relative;
    }

    .fName label {
        display: block;
        padding-left: 2%;
    }

    .fName input {
        width: 95%;
        height: 25px;
        margin: 10px auto 0;
        padding-left: 10px;
        display: block;
        border: none;
        border-radius: 8px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
        font-size: .8em;
        font-family: Tahoma sans-serif;
    }

    input:focus {
        box-shadow: none;
        border: 2px solid #2f3640;
    }

    /*Стили для тогоб чтобы показывать пароль*/
    .showPassword {
        position: absolute;
        top: 25px;
        right: 3%;
        display: inline-block;
        width: 30px;
        height: 30px;
        border: none;
        background-image: url("../img/eye.svg");
        background-position: 0 0;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .showPassword.view {
        background-image: url("../img/noEye.svg");
    }

    /* Выбор аватара */

    .fileInput {
        width: 100%;
        margin-top: 12px;
    }

    .fileInput p {
        padding-bottom: 10px;
        font-size: 1em;
        text-align: center;
    }

    .fileInput input {
        display: none;
    }

    .fileInput label {
        display: block;
        width: 90%;
        margin: 0 auto;
        padding-left: 0;
        cursor: pointer;
        background-color: #2f3640;
        color: #f5f6fa;
        border-radius: 8px;
        text-align: center;
    }

    /*Отображение аватара*/
    .imgPreview {
        margin: 30px auto 0;
    }

    .imageAva {
        display: block;
        width: 60%;
        height: 60%;
        margin: 0 auto;
    }

    /*Добавление описания автора*/
    .additional {
        max-height: 0;
        overflow: hidden;
        transition: max-height .2s ease-out;
    }

    .about_me_header {
        width: 90%;
        margin: 10px auto;
        text-align: justify;
    }

    textarea {
        display: block;
        width: 90%;
        height: 250px;
        margin: 10px auto;
        padding: 10px;
        border: none;
        border-radius: 8px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
        font-size: 1em;
        font-family: Tahoma sans-serif;
        background-color: white;
    }

    /* добавление слциальных сетей */
    /* https://qna.habr.com/q/585750  +  и  ~  в css    */

    .social-box {
        width: 90%;
        list-style-type: none;
        margin: 0 auto;
    }


    .sc-block {
        width: 95%;
        display: block;
        margin: 0 auto;
        padding: 0 10px;
    }

    .sc-block label {
        display: inline-block;
        margin: 10px auto;
    }

    .sc-block input {
        display: block;
        width: 100%;
        height: 25px;
        margin: 0 auto;
        border-radius: 8px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
        font-size: .8em;
        font-family: Tahoma sans-serif;
    }

    .sc-block input:focus {
        box-shadow: none;
        border: 5px solid #2f3640;
    }
}
