@font-face {
    font-family: KellySlab;  
    src: url(../fonts/KellySlab.ttf);
}

@font-face {
    font-family: MarckScript;  /* Для рукописного текста */
    src: url(../fonts/MarckScript.ttf);
}

@font-face {
    font-family: PTSerif-Regular;  /* Основной текст */
    src: url(../fonts/PTSerif-Regular.ttf);
}

@font-face {
    font-family: PTSerif-RegularItalic;  
    src: url(../fonts/PTSerif-RegularItalic.ttf);
}

@font-face {
    font-family: PTSerif-Bold;  
    src: url(../fonts/PTSerif-Bold.ttf);
}

@font-face {
    font-family: Gabriela;  
    src: url(../fonts/Gabriela.ttf);
}

@font-face {
    font-family: PlayRegular;  
    src: url(../fonts/Play-Regular.ttf);
}

@font-face {
    font-family: PlayBold;  
    src: url(../fonts/Play-Bold.ttf);
}


* {
    margin: 0;
    padding: 0;    
}

body{
    font-family: 'PTSerif-Regular', 'Arial', sans-serif;
    font-size: 18px;
    color: black;
    font-style: normal;
    background-image: url(../images/bgSmall.png);
}

/* Шапка */

.title {
    font-family: PlayBold, 'Arial', sans-serif;
    font-size: 60px;
    text-align: center;
    color: #d4d4d4;
}

.title-small {
    font-family: Gabriela, 'Arial', sans-serif;
    font-size: 20px;
    color: #2791d8;
    border-bottom: 2px solid rgb(15, 149, 158);
    padding: 5px 30px;
}

/* Тело */

.wrapper{
    width: 450px;
    margin: 13px auto;
}

.block {
    margin: 15px auto;
    background-image: url(../images/bgBlock.png);
    background-repeat: no-repeat;
    border: 4px double rgb(172, 172, 172);
}

.about_img {
    margin: 0 auto;
    width: 200px;
    padding: 10px 0 0 0;
}

.text-name {
    font-family: PTSerif-Bold, 'Arial', sans-serif;
    font-size: 22px;
    color: #d4d4d4; 
    margin: 1px 10px;
}

.text-answer {
    font-family: MarckScript, 'Arial', sans-serif; 
    font-size: 30px;
    color: #6498fa;
    text-decoration: none;
}

/* Блок Написать письмо */

.form {
    margin: 10px auto;
    width: 325px;
}

.form_ul {
    list-style-type: none;
}

.form_li {
    margin: 4px 0 4px 0;
}

.form_li-text {
    font-family: 'PTSerif-Regular', 'Arial', sans-serif;
    font-size: 21px;
    color: #d4d4d4;
    padding-bottom: 8px;
    display: inline-block;
}

#messange {
    padding: 8px;
    width: 300px;

    border: 1px solid rgb(255, 255, 255);
    box-shadow: 0 0 3px rgb(19, 19, 19), 0 10px 15px rgb(196, 175, 164) inset;
    border-radius: 2px;
    font-family: 'PTSerif-Regular', 'Arial', sans-serif;
}

.error {
    font-family: 'PTSerif-RegularItalic', 'Arial', sans-serif;
    font-size: 18px;
    color: #f16a6a;
}

.form-field {
    height: 15px;
    width: 200px;
    padding: 5px 8px;
    margin: 0 0 0 10px;

    border: 1px solid rgb(255, 255, 255);
    box-shadow: 0 0 3px rgb(19, 19, 19), 0 10px 15px rgb(196, 175, 164) inset;
    border-radius: 2px;
    font-family: 'PTSerif-Regular', 'Arial', sans-serif;
}

/* Button Style */
button.submit {
    background-color: #4e2b14;
    background: -webkit-linear-gradient(top, #582f13, #221106);
    background: -moz-linear-gradient(top, #582f13, #221106);
    background: -ms-linear-gradient(top, #582f13, #221106);
    background: -o-linear-gradient(top, #582f13, #221106);
    background: linear-gradient(top, #582f13, #221106);
    border: 1px solid #221106;
    border-bottom: 1px solid #221106;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    box-shadow: inset 0 1px 0 0 #221106;
    -webkit-box-shadow: 0 1px 0 0 #221106 inset;
    -moz-box-shadow: 0 1px 0 0 #221106 inset;
    -ms-box-shadow: 0 1px 0 0 #221106 inset;
    -o-box-shadow: 0 1px 0 0 #221106 inset;
    color: white;
    padding: 6px 20px;
    text-align: center;
    text-shadow: 0 -1px 0 #502001;
    margin: 0 auto;
    display: block;
    font-size: 18px;
    font-family: 'PTSerif-Bold', 'Arial', sans-serif;
}

button.submit:hover {
    opacity: .85;
    cursor: pointer;
}



/* Блок "Навыки" */

.block-title{
    font-family: PlayBold, 'Arial', sans-serif;
    font-size: 30px;
    text-align: center;
    color: #d4d4d4;
    border-bottom: 4px ridge rgb(202, 202, 202);
    margin-top: 10px;
    padding-bottom: 10px;
}

.skills-text {
    font-family: KellySlab, 'Arial', sans-serif;
    color: #d4d4d4;
    font-size: 20px;
    margin: 10px 0 3px 10px;
}

.skill-percentage{
    background: #262626;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #0fb3ff;
    border-radius: 6px;
    width: 50%;
    height: 15px;
    margin-left: 25px;
    margin-bottom: 10px;
}

.skill-level{
    background: #0fb3ff;    
    height: 5px;
    border-radius: 6px;
}

.html {
    width: 98%;
}

.css{
    width: 98%;
}

.javascript{
    width: 55%;
}

.php {
    width: 70%;
}

.csharpe{
    width: 30%;
}

.unity{
    width: 50%;
}

.cinema{
    width: 25%;
}

.python{
    width: 30%;
}




/* Блок Проекты */

.site {
    display: block;
    text-decoration: none;
    color: #d4d4d4;
    margin: 10px auto;
    width: 300px;
}

.site-images{
    border: 4px outset #532b0a;
}

.site-text{
    text-align: center;
}

#box {
    display: none; 
}





@media (min-width: 768px) {

    body{
        background-image: url(../images/bgMedium.png);
        background-repeat: no-repeat;
    }

    .wrapper{
        width: 768px;
    }

    .flex {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .about_img {
        margin: 10px 15px 10px 70px;
    }

    .about_text {
        margin: 50px 0 0 0;
    }

    .flex-block {
        width: 330px;
        margin: 20px 0;
    }

    .skill-percentage {
        width: 80%;
    }


}




@media (min-width: 1200px) {
    body{
        background-image: url(../images/bgBig.png);
        background-repeat: no-repeat;

    }
}
